November 2015
Beginner to intermediate
840 pages
26h 30m
English
contact AppWe could build our contact page wherever we want, but the functionality doesn’t belong in either organizer or blog. We therefore opt to create a new app, as shown in Example 11.1.
Example 11.1: Shell Code
$ ./manage.py startapp contact
This code creates all the files we expect—but we don’t need several of them. We can immediately delete admin.py and models.py. This app is simply a webpage with a form: there’s no need to use any data models! By the same token, we don’t need any migrations, so we can delete that directory as well. (If you look at the code on Github at commit 3a35644b28,1 you’ll observe that I never even commit these files—I delete them right away).
1. https://dju.link/3a35644b28
We need to tell our ...
Read now
Unlock full access