PEP8
This commit is contained in:
parent
4c409195a0
commit
75a98a2545
7 changed files with 5 additions and 17 deletions
|
@ -1,3 +0,0 @@
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
|
|
@ -1,3 +0,0 @@
|
||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
|
@ -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'
|
||||||
|
|
|
@ -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__)))
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue