From 75a98a254589eeefeb4aa15588ec345fc208af84 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 23 Nov 2015 18:50:14 +0000 Subject: [PATCH] PEP8 --- project/common/models.py | 3 --- project/common/tests.py | 3 --- project/common/views.py | 4 ++-- project/pages/tests.py | 3 --- project/pages/views.py | 3 +-- project/settings.py | 4 +--- project/urls.py | 2 +- 7 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 project/common/models.py delete mode 100644 project/common/tests.py delete mode 100644 project/pages/tests.py diff --git a/project/common/models.py b/project/common/models.py deleted file mode 100644 index 71a8362..0000000 --- a/project/common/models.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. diff --git a/project/common/tests.py b/project/common/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/project/common/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/project/common/views.py b/project/common/views.py index be82893..b382523 100644 --- a/project/common/views.py +++ b/project/common/views.py @@ -6,8 +6,8 @@ class CustomHeaderBG(): class Template(TemplateView): header_BG = "" - + def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['header_BG'] = self.header_BG - return context \ No newline at end of file + return context diff --git a/project/pages/tests.py b/project/pages/tests.py deleted file mode 100644 index a79ca8b..0000000 --- a/project/pages/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/project/pages/views.py b/project/pages/views.py index 0376086..da8d0f9 100644 --- a/project/pages/views.py +++ b/project/pages/views.py @@ -12,7 +12,6 @@ class IndexView(TemplateView): return context - class NoJavascriptView(TemplateView): template_name = 'core/no-js.html' @@ -37,4 +36,4 @@ class AboutWebsiteView(CustomHeaderBG.Template): class AboutIndexView(TemplateView): - template_name = 'about/index.html' \ No newline at end of file + template_name = 'about/index.html' diff --git a/project/settings.py b/project/settings.py index f1ab0b8..52e1643 100644 --- a/project/settings.py +++ b/project/settings.py @@ -10,9 +10,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) -import dj_database_url -import os -import sys +import dj_database_url, os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/project/urls.py b/project/urls.py index 7344d71..cf16cdb 100644 --- a/project/urls.py +++ b/project/urls.py @@ -7,4 +7,4 @@ urlpatterns = [ url(r'', include('project.pages.urls', namespace='pages')) ] -handler404 = Custom404View \ No newline at end of file +handler404 = Custom404View