1.1. Ecommerce Folder
The ecommerce folder contains a variety of files which serve different purposes:
The
manage.py
file will manage and load all the configurations (located inside thesettings.py
file) of the websiteThe
__ init __.py
file only establishes the ecommerce folder as a module/project folder so the mage.py file can pull data from thereThe
wsgi.py
andasgi.py
files will only be used in the final deployment faseThe
urls.py
file configures the url of the website and what content it will load based on the urlLastly the
settings.py
file is where we will configure the settings of the website such as criptografy, debuging mode, installed apps etc
Inside the settings.py
file, we will go to the list INSTALLED_APPS and add an element called 'store' so the store files (which will be explained on the next page) will be recognized by django as a new app
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'store', #? Adding the 'store' app to the main configuration
]
Last updated