Difference between revisions of "Create a new project"

From rbachwiki
Jump to navigation Jump to search
(Created page with "* 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")
 
Line 13: Line 13:


  python manage.py runserver 8080
  python manage.py runserver 8080
===[[Django| Category]]

Revision as of 19:51, 26 April 2023

  • 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

=== Category