contacts
An example Django app for a demo/tutorial
Resources
- https://www.djangoproject.com/
- https://developer.mozilla.org/en-US/
- https://djangogirls.org/en/
- https://realpython.com/search?q=django
Notes
- created contacts directory to hold source code (did this via
git clone
) and randjango-admin startproject contacts .
from within it. I think if you leave off the.
you might get an extra level of directories - then ran
./manage.py startapp main
to create amain
directory for models views etc. Technically I could skip this step and add a models and views in where thesettings.py
file lives. - There are migrations in the Django codebase so you can run
./manage.py migrations
at this point to setup tables for sessions content types, etc. - add
'main'
to the list ofINSTALLED_APPS
insettings.py
- added
include
for main app tocontacts/urls.py
- make sure to add
./manage.py
to source control - added STATICFILES_DIRS to create a project-wide location for static files
- Downloaded latest JQuery code and placed in
static
directory.