#17540: Errors in 1.3 Writing your first Django app part 1 and 2 Ubuntu 11.10
-------------------------------+--------------------
Reporter: eric.fish@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
I recently tried to work through your tutorial for Django 1.3 on Ubuntu
11.10. The first error I found was in part 1 where the new app was added
to installed apps and there is a missing comma ',':
{{{
#!python
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'polls'
)
}}}
and should read:
{{{
#!python
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'polls',
)
}}}
The second error was in part 2 in the section "Make the poll app
modifiable in the admin". It has a misplaced 'models' in the first import
and reads:
{{{
#!python
from polls.models import Poll
from django.contrib import admin
admin.site.register(Poll)
}}}
and should read:
{{{
#!python
from models import Poll
from django.contrib import admin
admin.site.register(Poll)
}}}
I believe the second issue could be also fixed by describing the expected
project structure in the tutorial.
These errors were discovered when setting up a Django, mod_wsgi, apache
configuration on Ubuntu 11.10
--
Ticket URL: <https://code.djangoproject.com/ticket/17540>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.