Django Flashcards

Learn/Understand Django

1
Q

Start new project
(Assuming pipenv already installed)
Dont forget period in step 4

A
  1. Create new diectory
  2. $ pipenv install django==2.1
  3. $ pipenv shell
  4. $ django-admin startproject projectname .
  5. $ python manage.py startapp pages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

New App

A
  1. python manage.py startapp books
  2. Go to project/settings.py
  3. Enter ‘books.apps.BooksConfig’ under INSTALLED APPS =
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Needed for each page

A

Model, view, url, and template needed for each page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

$ tree

A

Too see directory structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly