Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
247 views

Django Notes

To set up a Django project, one installs Django using pip, runs django-admin startproject to create a project folder with manage.py, then uses django-admin startapp to create apps within the project. They configure the project's settings file to include the new apps and use manage.py runserver to test the server at the address shown in the browser.

Uploaded by

Rishabh Rathore
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
247 views

Django Notes

To set up a Django project, one installs Django using pip, runs django-admin startproject to create a project folder with manage.py, then uses django-admin startapp to create apps within the project. They configure the project's settings file to include the new apps and use manage.py runserver to test the server at the address shown in the browser.

Uploaded by

Rishabh Rathore
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Django steps

1. Go to command line
2. Set path to script folder
3. Pip install django
4. To check version- django-admin –version
5. django-admin startproject projname
6. Folder projname will be made in specified path with proj folder and manage.py file
7. To see run dir
8. to test server – python manage.py runserver
9. check in browser with the address shown on command line
10. Change directory to proj name
11. Python manage.py startapp subproj
12. Check in location with folder subproj
13. Go to sub proj url file and write following code

14. Go to view file of sub proj and write following code

15. Go to the setting file of proj folder and write


Include your app where other apps are installed
16. Runsserver by python manage.py runserver command

You might also like