Part 3 - Exploring Django Project Structure

October 18th, 2020 2 min read

In this part of the series Django For Beginners we are going to explore project struture of a new Django project which we create in last part check it out here after installing Django.

The poject structure should look something like this,


 📂 myDjangoSite
	- 📂 myDjangoSite
		- 📄 __init__.py
		- 📄 asgi.py
		- 📄 settings.py
		- 📄 urls.py
		- 📄 wsgi.py
	- 📄 manage.py

As redicilious it may sound it is you have folder with same name that is myDjangoSite inside myDjangoSite. Let this be aside it is for a good think we will learn about it later,

  1. manage.py : It is entry point of our Django application, we should not touch this file. It is used by django.
  2. _init__.py : It is a empty file and is used to treat the directory as a package.
  3. asgi.py : It is used to manage asgi server, it is used at the time of deployment.
  4. wsgi.py : It is used to manage wsgi server, it is used at the time of deployment.
  5. settings.py : It is a file contaning all the settings of our Django application.
  6. urls.py : It is a file used to store url patterns for our Django application.

You may also like: