Django Flashcards

1
Q

How to verify Django version

A

Type the following from the Python interpreter:

“import django; print(django.get_version())”

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

How to create a Django directory

A

cd to directory, type following command:

django-admin.py startproject mysite

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

Describe the directory structure created by” django-admin.py startproject mysite” command

A
  1. a subdirectory with a subdirectory mysite/ and the file manage.py. in mysite/ subdirectory are the following files: __init__.py, settings.py, urls.py, and wsgi.py
How well did you know this?
1
Not at all
2
3
4
5
Perfectly