Hi,

I need some help on part2 of the Django tutorial, I know python is particular 
about spaces and the fieldsets composition;


Class PollAdmin(admin.ModelAdmin):
fieldsets = [
(None,               {'fields': ['question']}),
('Date information', {'fields': ['pub_date']}),
]

admin.site.register(Poll, PollAdmin)

And the subsequent similar composition gave me syntax error, the traceback said 
something about "None", Please help me to get past this stage

David








________________________________
From: James Bennett <[email protected]>
To: [email protected]
Sent: Tue, July 6, 2010 5:03:50 PM
Subject: Re: Tutorial Help

On Tue, Jul 6, 2010 at 10:56 AM, Bradley Hintze
<[email protected]> wrote:
> Error: No module named pollsdjango.contrib.admin

Look at your INSTALLED_APPS setting. You're missing a comma between
the polls app and the admin app.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.


      

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to