django admin.py error
John Gordon
gordon at panix.com
Thu Sep 19 14:15:02 EDT 2013
In <mailman.154.1379606716.18130.python-list at python.org> Gary Roach <gary719_list1 at verizon.net> writes:
> Installation of the django admin.py package worked fine. But. when I
> tried to add my database to the admin page I get the following error:
> ImportError at /admin/
> cannot import name membership
> ['/home/gary/ProgramFiles/mysite/mysite',
> My admin.py file is:
> #Adding this app to the admin page.
> from django.contrib import admin
> from mysite.models import membership, address, status, audio, video,
> photos
Does /home/gary/ProgramFiles/mysite/mysite/models.py define an object
named 'membership'?
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list