Django Flashcards
Learn/Understand Django
1
Q
Start new project
(Assuming pipenv already installed)
Dont forget period in step 4
A
- Create new diectory
- $ pipenv install django==2.1
- $ pipenv shell
- $ django-admin startproject projectname .
- $ python manage.py startapp pages
2
Q
New App
A
- python manage.py startapp books
- Go to project/settings.py
- Enter ‘books.apps.BooksConfig’ under INSTALLED APPS =
3
Q
Needed for each page
A
Model, view, url, and template needed for each page
4
Q
$ tree
A
Too see directory structure