From 7453c056aec1884e79385c987bcf0293ca28fd18 Mon Sep 17 00:00:00 2001 From: Sam Collins Date: Sat, 25 Feb 2017 16:07:37 +0000 Subject: [PATCH] Removed Refrence to Django Rest Framework --- config/urls.py | 1 + mhackspace/templates/base.html | 4 ++-- mhackspace/templates/rest_framework/api.html | 23 +++++++++++++++++++ .../templates/rest_framework/login.html | 13 +++++++++++ 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 mhackspace/templates/rest_framework/api.html create mode 100644 mhackspace/templates/rest_framework/login.html diff --git a/config/urls.py b/config/urls.py index c132e6e..2649b41 100644 --- a/config/urls.py +++ b/config/urls.py @@ -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[0-9A-Za-z_\-]+)/$', blog, name='blog-item'), diff --git a/mhackspace/templates/base.html b/mhackspace/templates/base.html index 453a142..11f0cf9 100644 --- a/mhackspace/templates/base.html +++ b/mhackspace/templates/base.html @@ -44,8 +44,8 @@ aria-label="Toggle navigation"> - - + + Maidstone Hackspace diff --git a/mhackspace/templates/rest_framework/api.html b/mhackspace/templates/rest_framework/api.html new file mode 100644 index 0000000..3af4514 --- /dev/null +++ b/mhackspace/templates/rest_framework/api.html @@ -0,0 +1,23 @@ +{% extends "rest_framework/base.html" %} +{% load static %} + +{% block title %} + Maidstone Hackspace API +{% endblock %} + +{% block branding %} + + + + Maidstone Hackspace API + +{% endblock %} diff --git a/mhackspace/templates/rest_framework/login.html b/mhackspace/templates/rest_framework/login.html new file mode 100644 index 0000000..1e67288 --- /dev/null +++ b/mhackspace/templates/rest_framework/login.html @@ -0,0 +1,13 @@ +{% extends "rest_framework/login.html" %} +{% load static %} + +{% block title %} + Maidstone Hackspace API +{% endblock %} + +{% block branding %} + + Maidstone Hackspace Logo +

Maidstone Hackspace API

+
+{% endblock %}