Changed mysite name to src

master
Jason Zhu 2020-10-20 10:39:20 +11:00
parent 04449cfeec
commit 84a4af5b1f
15 changed files with 5 additions and 2 deletions

View File

@ -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 **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 **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 **kwargs**: passed in a dictionary to the target view
* `path()` argument **name**: naming URL, so we can refer to it elsewhere. * `path()` argument **name**: naming URL, so we can refer to it elsewhere.
## Database setup

View File

@ -105,7 +105,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' TIME_ZONE = 'Australia/Canberra'
USE_I18N = True USE_I18N = True