Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54433

Re: django admin.py error

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: django admin.py error
Date 2013-09-19 18:15 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <l1fev6$k1v$1@reader1.panix.com> (permalink)
References <mailman.154.1379606716.18130.python-list@python.org>

Show all headers | View raw


In <mailman.154.1379606716.18130.python-list@python.org> Gary Roach <gary719_list1@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@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

django admin.py error Gary Roach <gary719_list1@verizon.net> - 2013-09-19 09:04 -0700
  Re: django admin.py error John Gordon <gordon@panix.com> - 2013-09-19 18:15 +0000
    Re: django admin.py error Gary Roach <gary719_list1@verizon.net> - 2013-09-19 11:49 -0700
      Re: django admin.py error John Gordon <gordon@panix.com> - 2013-09-19 18:56 +0000
        Re: django admin.py error (solved) Gary Roach <gary719_list1@verizon.net> - 2013-09-19 12:33 -0700

csiph-web