September 2019
Beginner to intermediate
494 pages
13h
English
For now, we can briefly consider the settings.py file and look through all the various settings that we currently have, for example, as follows:
# SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = ...# SECURITY WARNING: don't run with debug turned on in production!DEBUG = True
The information included in these lines should be changed when we are at the production stage of our site. However, we can leave it as is for now.
# Database# https://docs.djangoproject.com/en/2.2/ref/settings/#databasesDATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), ...Read now
Unlock full access