Difference between revisions of "Django"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
django-admin startproject projectname | django-admin startproject projectname | ||
* this will create the projectname within the main directory | |||
* cd into directory | |||
python manage.py runserver | |||
* To specify a different port | |||
python manage.py runserver 8080 | |||
===[[Programming| Category]]=== | ===[[Programming| Category]]=== |
Revision as of 17:02, 26 April 2023
Create a new project
- First create a main dir django etc..
- cd into directory
django-admin startproject projectname
- this will create the projectname within the main directory
- cd into directory
python manage.py runserver
- To specify a different port
python manage.py runserver 8080