1
Fork 0
This commit is contained in:
Jake Howard 2015-11-23 18:50:14 +00:00
parent 4c409195a0
commit 75a98a2545
7 changed files with 5 additions and 17 deletions

View file

@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

View file

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View file

@ -6,8 +6,8 @@ class CustomHeaderBG():
class Template(TemplateView): class Template(TemplateView):
header_BG = "" header_BG = ""
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
context['header_BG'] = self.header_BG context['header_BG'] = self.header_BG
return context return context

View file

@ -1,3 +0,0 @@
# from django.test import TestCase
# Create your tests here.

View file

@ -12,7 +12,6 @@ class IndexView(TemplateView):
return context return context
class NoJavascriptView(TemplateView): class NoJavascriptView(TemplateView):
template_name = 'core/no-js.html' template_name = 'core/no-js.html'
@ -37,4 +36,4 @@ class AboutWebsiteView(CustomHeaderBG.Template):
class AboutIndexView(TemplateView): class AboutIndexView(TemplateView):
template_name = 'about/index.html' template_name = 'about/index.html'

View file

@ -10,9 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/ https://docs.djangoproject.com/en/1.8/ref/settings/
""" """
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import dj_database_url import dj_database_url, os
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View file

@ -7,4 +7,4 @@ urlpatterns = [
url(r'', include('project.pages.urls', namespace='pages')) url(r'', include('project.pages.urls', namespace='pages'))
] ]
handler404 = Custom404View handler404 = Custom404View