Django Level One
Django Level One
● __init__.py
○ This is a blank Python
script that due to its
special name let’s
Python know that this
directory can be treated
as a package
Django
● settings.py
○ This is where you will
store all your project
settings
Django
● urls.py
○ This is a Python script
that will store all the
URL patterns for your
project. Basically the
different pages of your
web application.
Django
● wsgi.py
○ This is a Python script
that acts as the Web
Server Gateway
Interface. It will later on
help us deploy our web
app to production
Django
● manage.py
○ This is a Python script
that we will use a lot. It
will be associates with
many commands as we
build our web app!
Django
● __init__.py
○ This is a blank Python
script that due to its
special name let’s
Python know that this
directory can be treated
as a package
Django
● admin.py
○ You can register your
models here which
Django will then use
them with Django’s
admin interface.
Django
● apps.py
○ Here you can place
application specific
configurations
Django
● models.py
○ Here you store the
application’s data
models
Django
● tests.py
○ Here you can store test
functions to test your
code
Django
● views.py
○ This is where you have
functions that handle
requests and return
responses
Django
● Migrations folder
○ This directory stores
database specific
information as it relates
to the models
Django