Skip to content

Instantly share code, notes, and snippets.

@sreevardhanreddi
Created August 25, 2018 12:43
Show Gist options
  • Save sreevardhanreddi/29deacf7bdfb77cc07f3790d784eff65 to your computer and use it in GitHub Desktop.
Save sreevardhanreddi/29deacf7bdfb77cc07f3790d784eff65 to your computer and use it in GitHub Desktop.
after activating virtual environment
to create project
django-admin startproject 'project_name'
to create an app or module in the project
cd into the project folder
python manage.py startapp 'app_name'
create a separate urls.py file, in each app
in project urls.py add an 'include' import statement
then add a path to url's list
path('app_name',include("app.urls"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment