26
loading...
This website collects cookies to deliver better user experience
DISCLAIMER: The Django version I used to generate the project is 2.2. These settings may or may not exist in future/previous versions of Django.
project name
is created. The 3 files which are found in the folder are settings.py
, urls.py
and wsgi.py
. urls.py
configures our project urls, and wsgi.py
configures Django’s primary deployment platform, WSGI, which is used to deploy our project live.settings.py
file, which is used for configuring all settings of our project. Here is a detailed explanation of what each line in settings.py
does for our project.manage.py
file exists. The manage.py is integral in creating new apps, running server, running django shell etc.urls.py
.'en-us'
.'UTC'
.False
, Django will make some optimizations so as not to load the translation machinery.True
, Django will display numbers and dates using the format of the current locale.True
, Django will use timezone-aware datetimes internally../manage.py collectstatic
will collect static files for deployment. So we have to only serve this folder while deploying.URL
of which the static files in STATIC_ROOT
directory are served.