What is created by startproject?

By passing the two arguments to django-admin.py, startproject, and chapter12 (the name of the project), a folder is created with a number of scripts and subfolders. The outer (root) folder is called chapter12, and it contains an important script called manage.py, and a folder also called chapter12, which is the project folder:

Inside the project folder are some important scripts, including settings.py and urls.py:

These files are default placeholders, waiting for us to configure our project and applications. We will edit setting.py and urls.py too, with the specifics of our project as we go along. The third file, wsgi.py, is used for production deployment of the web application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset