diff --git a/first_django_app.md b/first_django_app.md index 4431a6c..3f7c9c0 100644 --- a/first_django_app.md +++ b/first_django_app.md @@ -139,4 +139,7 @@ Here `path()` function is passed **route** and **view**; two additional option a * `path()` argument **route**: a string that contains a URL pattern. When Django processing a request, it starts at the first pattern in `urlpatterns` and go down the list, comparing requested URL against each pattern * `path()` argument **view**: when Django finds a matching pattern, it calls specified view function (a `HttpRequest` obj as the 1st argument, and others captured values as keyword argument) * `path()` argument **kwargs**: passed in a dictionary to the target view -* `path()` argument **name**: naming URL, so we can refer to it elsewhere. \ No newline at end of file +* `path()` argument **name**: naming URL, so we can refer to it elsewhere. + +## Database setup + diff --git a/mysite/manage.py b/src/manage.py similarity index 100% rename from mysite/manage.py rename to src/manage.py diff --git a/mysite/mysite/__init__.py b/src/mysite/__init__.py similarity index 100% rename from mysite/mysite/__init__.py rename to src/mysite/__init__.py diff --git a/mysite/mysite/asgi.py b/src/mysite/asgi.py similarity index 100% rename from mysite/mysite/asgi.py rename to src/mysite/asgi.py diff --git a/mysite/mysite/settings.py b/src/mysite/settings.py similarity index 98% rename from mysite/mysite/settings.py rename to src/mysite/settings.py index 69b8914..59351f4 100644 --- a/mysite/mysite/settings.py +++ b/src/mysite/settings.py @@ -105,7 +105,7 @@ AUTH_PASSWORD_VALIDATORS = [ LANGUAGE_CODE = 'en-us' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Australia/Canberra' USE_I18N = True diff --git a/mysite/mysite/urls.py b/src/mysite/urls.py similarity index 100% rename from mysite/mysite/urls.py rename to src/mysite/urls.py diff --git a/mysite/mysite/wsgi.py b/src/mysite/wsgi.py similarity index 100% rename from mysite/mysite/wsgi.py rename to src/mysite/wsgi.py diff --git a/mysite/polls/__init__.py b/src/polls/__init__.py similarity index 100% rename from mysite/polls/__init__.py rename to src/polls/__init__.py diff --git a/mysite/polls/admin.py b/src/polls/admin.py similarity index 100% rename from mysite/polls/admin.py rename to src/polls/admin.py diff --git a/mysite/polls/apps.py b/src/polls/apps.py similarity index 100% rename from mysite/polls/apps.py rename to src/polls/apps.py diff --git a/mysite/polls/migrations/__init__.py b/src/polls/migrations/__init__.py similarity index 100% rename from mysite/polls/migrations/__init__.py rename to src/polls/migrations/__init__.py diff --git a/mysite/polls/models.py b/src/polls/models.py similarity index 100% rename from mysite/polls/models.py rename to src/polls/models.py diff --git a/mysite/polls/tests.py b/src/polls/tests.py similarity index 100% rename from mysite/polls/tests.py rename to src/polls/tests.py diff --git a/mysite/polls/urls.py b/src/polls/urls.py similarity index 100% rename from mysite/polls/urls.py rename to src/polls/urls.py diff --git a/mysite/polls/views.py b/src/polls/views.py similarity index 100% rename from mysite/polls/views.py rename to src/polls/views.py