NameError "SignUpAdmin"

23 views
Skip to first unread message

Eddie29

unread,
Jan 2, 2014, 10:02:30 PM1/2/14
to django...@googlegroups.com
Hi Guys,
I am really new to Django and Python. I have recently started learning them from a course on Udemy and I got stuck on the first example, making a web app. I'm not sure what I have done wrong but when I run my Django server it comes up with a NameError. I think the app is supposed to handle user data, such as first name,last name and email.
Thanks in advance :)


models.py
admin.py

Thomas Lockhart

unread,
Jan 2, 2014, 10:44:01 PM1/2/14
to django...@googlegroups.com
I'm not familiar with the course, and haven't tried to set up your
project to test.

But I can recommend that you start with the Django tutorial in the
Django docs (whichever doc version matches the version of Django you are
using). You might then find it easier to spot small problems in other
projects such as when you go back to your course.

hth

- Tom

> Thanks in advance :)
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/468b9c2b-5ff6-412a-bc4f-e3c26aa3ddaf%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Daniel Roseman

unread,
Jan 3, 2014, 4:53:57 AM1/3/14
to django...@googlegroups.com
It would have been better to post the code in your message rather than attaching it - it's only a few lines.

You have an indentation error in admin.py - the `admin.site.register` line should be all the way to the left.
--
DR. 

Eddie29

unread,
Jan 3, 2014, 11:16:39 PM1/3/14
to django...@googlegroups.com
Thank you so much! I will post regular code in future for simple fixes. 
Thanks again,
Eddie :)
Reply all
Reply to author
Forward
0 new messages