Removed Refrence to Django Rest Framework

This commit is contained in:
Sam Collins 2017-02-25 16:07:37 +00:00 committed by Oliver Marks
parent 9db20fb458
commit 7453c056ae
4 changed files with 39 additions and 2 deletions

View File

@ -32,6 +32,7 @@ urlpatterns = [
url(r'^contact/$', contact, name='contact'),
url(r'^api/v1/', include(router.urls, namespace='v1')),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^blog/$', blog, name='contact'),
url(r'^blog/rss/$', BlogFeed()),
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', blog, name='blog-item'),

View File

@ -44,8 +44,8 @@
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/">
<img src="/static/images/logo.svg" alt="Maidstone Hackspace Logo" id="navbar-logo">
<a class="navbar-brand" href="{% url "home" %}">
<img src="{% static "images/logo.svg" %}" alt="Maidstone Hackspace Logo" id="navbar-logo">
Maidstone Hackspace
</a>

View File

@ -0,0 +1,23 @@
{% extends "rest_framework/base.html" %}
{% load static %}
{% block title %}
Maidstone Hackspace API
{% endblock %}
{% block branding %}
<style>
#logo {
height: 100%;
display: inline-block;
vertical-align: top;
}
#logo:hover {
transform: rotate(360deg);
}
</style>
<a class="navbar-brand" href="{% url "home" %}">
<img src="{% static "images/logo.svg" %}" alt="Maidstone Hackspace Logo" id="logo">
Maidstone Hackspace API
</a>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "rest_framework/login.html" %}
{% load static %}
{% block title %}
Maidstone Hackspace API
{% endblock %}
{% block branding %}
<a href="{% url "home" %}" style="color: black; text-align: center">
<img src="{% static "images/logo.svg" %}" alt="Maidstone Hackspace Logo" class="center-block">
<h3>Maidstone Hackspace API</h3>
</a>
{% endblock %}