Created
August 25, 2018 12:43
-
-
Save sreevardhanreddi/29deacf7bdfb77cc07f3790d784eff65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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