Django for Designers: Difference between revisions
Content added Content deleted
imported>Paulproteus (→Handling those URLs with some basic views: Add a "$" for a prompt) |
imported>Paulproteus (→Start your first app: Add it to INSTALLED_APPS) |
||
Line 258: | Line 258: | ||
tests.py |
tests.py |
||
views.py |
views.py |
||
</source> |
|||
Finally, we need to edit myproject/settings.py so that Django knows about our app. Open that file up, and look for INSTALLED_APPS. Add the following to the end of the sequence, on a line of its own: |
|||
<source lang="python"> |
|||
'bookmarks', |
|||
</source> |
|||
It will then look like this: |
|||
<source lang="python"> |
|||
INSTALLED_APPS = ( |
|||
'django.contrib.auth', |
|||
'django.contrib.contenttypes', |
|||
'django.contrib.sessions', |
|||
'django.contrib.sites', |
|||
'django.contrib.messages', |
|||
'django.contrib.staticfiles', |
|||
# Uncomment the next line to enable the admin: |
|||
# 'django.contrib.admin', |
|||
# Uncomment the next line to enable admin documentation: |
|||
# 'django.contrib.admindocs', |
|||
'bookmarks', |
|||
) |
|||
</source> |
</source> |
||