Django Flashcards
1
Q
How to verify Django version
A
Type the following from the Python interpreter:
“import django; print(django.get_version())”
2
Q
How to create a Django directory
A
cd to directory, type following command:
django-admin.py startproject mysite
3
Q
Describe the directory structure created by” django-admin.py startproject mysite” command
A
- 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