
To take a look at the directories and files that Django has added to our project we will need a text editor. If you do not have one yet I suggest that you use sublime text 3 you can download it from there website at https://www.sublimetext.com/3. 1. Now that you have a text editor use the text editor to open the directory at cms level. Let's take a look at all your files. 2. First File we see is manage.py - This is a command line helper tool. When we enter commands into the terminal python uses manage.py to interoperate our commands then it will use our commands to perform task that we need. This is a pretty cool little file and we will never edit this file. 3. Next, open your cms directory. This directory contains the main files for your Django project. Let's take briefly about each file contained in this directory. 4. __init__.py - This is an empty file that tells python to treat the cms directory as a Python module. 5. settings.py - Settings and configuration of our project. Django has included some default settings to get us up and running but we will be making changes to this file shortly and I will explain all the setting included in this file as we go. 6. urls.py - this file contains all URL patterns that we will use in our project and these patterns are mapped to a view in our project. More on this in a little bit. 7. wsgi.py - This file is used to allow a server communicate with a web application like our Django project. If you would like to know more about wsgi go ahead and google it.
Take A Look At What Django Built For Us - YouTube |
18 Likes | 18 Dislikes |
3,460 views views | 14,790 followers |
Education | Upload TimePublished on 10 Oct 2016 |
python tutorials point,python tutorials pdf,python tutorials point pdf,python tutorials for beginners,python tutorials advanced,python tutorials video,python tutorials best,python tutorials opencv,python tutorials django,python tutorials basic,python tutorials gui,python tutorialspoint list,python tutorialspoint regex,python tutorialspoint tkinter,python tutorials for beginners pdf,python tutorials youtube,python tutorials online,python tutorials w3schools,tutorialspoint python class,tutorials python 3
Không có nhận xét nào:
Đăng nhận xét