Removed Refrence to Django Rest Framework
This commit is contained in:
parent
9db20fb458
commit
7453c056ae
|
@ -32,6 +32,7 @@ urlpatterns = [
|
||||||
url(r'^contact/$', contact, name='contact'),
|
url(r'^contact/$', contact, name='contact'),
|
||||||
|
|
||||||
url(r'^api/v1/', include(router.urls, namespace='v1')),
|
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/$', blog, name='contact'),
|
||||||
url(r'^blog/rss/$', BlogFeed()),
|
url(r'^blog/rss/$', BlogFeed()),
|
||||||
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', blog, name='blog-item'),
|
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', blog, name='blog-item'),
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
aria-label="Toggle navigation">
|
aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="/">
|
<a class="navbar-brand" href="{% url "home" %}">
|
||||||
<img src="/static/images/logo.svg" alt="Maidstone Hackspace Logo" id="navbar-logo">
|
<img src="{% static "images/logo.svg" %}" alt="Maidstone Hackspace Logo" id="navbar-logo">
|
||||||
Maidstone Hackspace
|
Maidstone Hackspace
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
|
@ -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 %}
|
|
@ -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 %}
|
Loading…
Reference in New Issue