diff --git a/lostplaces/lostplaces/__init__.py b/lostplaces/lostplaces/__init__.py index e69de29..faa18be 100644 --- a/lostplaces/lostplaces/__init__.py +++ b/lostplaces/lostplaces/__init__.py @@ -0,0 +1,2 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- diff --git a/lostplaces/lostplaces/asgi.py b/lostplaces/lostplaces/asgi.py index 3bc3fc1..b15a66b 100644 --- a/lostplaces/lostplaces/asgi.py +++ b/lostplaces/lostplaces/asgi.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + """ ASGI config for lostplaces project. diff --git a/lostplaces/lostplaces/settings.py b/lostplaces/lostplaces/settings.py index 1d82e7b..43764db 100644 --- a/lostplaces/lostplaces/settings.py +++ b/lostplaces/lostplaces/settings.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + """ Django settings for lostplaces project. diff --git a/lostplaces/lostplaces/urls.py b/lostplaces/lostplaces/urls.py index 5f9f908..d4ff686 100644 --- a/lostplaces/lostplaces/urls.py +++ b/lostplaces/lostplaces/urls.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + """lostplaces URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: @@ -13,6 +16,7 @@ Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ + from django.contrib import admin from django.conf import settings from django.conf.urls.static import static diff --git a/lostplaces/lostplaces/wsgi.py b/lostplaces/lostplaces/wsgi.py index 04cb444..fe661f9 100644 --- a/lostplaces/lostplaces/wsgi.py +++ b/lostplaces/lostplaces/wsgi.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + """ WSGI config for lostplaces project. diff --git a/lostplaces/lostplaces_app/__init__.py b/lostplaces/lostplaces_app/__init__.py index e69de29..faa18be 100644 --- a/lostplaces/lostplaces_app/__init__.py +++ b/lostplaces/lostplaces_app/__init__.py @@ -0,0 +1,2 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- diff --git a/lostplaces/lostplaces_app/admin.py b/lostplaces/lostplaces_app/admin.py index f944604..e9d0a10 100644 --- a/lostplaces/lostplaces_app/admin.py +++ b/lostplaces/lostplaces_app/admin.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' Classes and modules for the administrative backend. ''' + from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin @@ -16,4 +21,4 @@ class ExplorerAdmin(UserAdmin): admin.site.register(Explorer, ExplorerAdmin) admin.site.register(Place) -admin.site.register(PlaceImage) \ No newline at end of file +admin.site.register(PlaceImage) diff --git a/lostplaces/lostplaces_app/forms.py b/lostplaces/lostplaces_app/forms.py index e81601c..5ae594c 100644 --- a/lostplaces/lostplaces_app/forms.py +++ b/lostplaces/lostplaces_app/forms.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' (web)forms that can be used elsewhere. ''' + from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import Explorer, Place, PlaceImage diff --git a/lostplaces/lostplaces_app/models.py b/lostplaces/lostplaces_app/models.py index 292d11d..43a69bd 100644 --- a/lostplaces/lostplaces_app/models.py +++ b/lostplaces/lostplaces_app/models.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' (Data)models which describe the structure of data to be saved into database. ''' + import os import uuid diff --git a/lostplaces/lostplaces_app/tests.py b/lostplaces/lostplaces_app/tests.py index 7ce503c..1a11e63 100644 --- a/lostplaces/lostplaces_app/tests.py +++ b/lostplaces/lostplaces_app/tests.py @@ -1,3 +1,8 @@ -from django.test import TestCase +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' Tests for the lostplaces_app. ''' + +rom django.test import TestCase # Create your tests here. diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 6b31ed5..b13a6e5 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +''' Django views. ''' + from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse_lazy from django.views.generic.edit import CreateView @@ -5,7 +10,6 @@ from django.views import View from django.http import Http404 from django.views.generic.edit import UpdateView - from .forms import ExplorerCreationForm, PlaceForm, PlaceImageCreateForm from .models import Place, PlaceImage diff --git a/lostplaces/manage.py b/lostplaces/manage.py index ea93453..cd4ee9b 100755 --- a/lostplaces/manage.py +++ b/lostplaces/manage.py @@ -1,9 +1,11 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + """Django's command-line utility for administrative tasks.""" + import os import sys - def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lostplaces.settings') try: @@ -16,6 +18,5 @@ def main(): ) from exc execute_from_command_line(sys.argv) - if __name__ == '__main__': main()