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 the settings.py file) of the website

  • The __ init __.py file only establishes the ecommerce folder as a module/project folder so the mage.py file can pull data from there

  • The wsgi.pyand asgi.pyfiles will only be used in the final deployment fase

  • The urls.py file configures the url of the website and what content it will load based on the url

  • Lastly the settings.pyfile 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

settings.py
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