Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54430
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <gary719_list1@verizon.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'error:': 0.07; 'membership,': 0.09; 'method:': 0.09; 'properly.': 0.09; 'skip:/ 10': 0.09; 'python': 0.11; 'django': 0.11; '#adding': 0.16; '1.5.2': 0.16; '2.7.3': 0.16; 'admin.py': 0.16; 'fine.': 0.16; 'importerror': 0.16; 'path:': 0.16; 'received:206.46': 0.16; 'received:206.46.173': 0.16; 'skip:[ 40': 0.16; 'subject:django': 0.16; 'to:name:python list': 0.16; 'url:8000': 0.16; 'exception': 0.16; 'app': 0.19; "skip:' 30": 0.19; 'seems': 0.21; 'import': 0.22; 'admin': 0.22; 'installation': 0.23; 'header:User-Agent:1': 0.23; 'source': 0.25; 'installed': 0.27; 'tried': 0.27; 'appreciated.': 0.29; 'membership': 0.31; 'page.': 0.31; 'gary': 0.31; "skip:' 40": 0.31; 'url:127': 0.31; 'file': 0.32; 'worked': 0.33; 'url:non- standard http port': 0.33; "can't": 0.35; 'problem.': 0.35; 'add': 0.35; 'version:': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'location:': 0.61; 'skip:a 30': 0.61; 'name': 0.63; 'received:206': 0.63; 'sincerely': 0.63; 'url:0': 0.67; 'video,': 0.68; 'address,': 0.75; 'received:192.168.1.7': 0.84; 'url:admin': 0.84; 'photos': 0.93 |
| Date | Thu, 19 Sep 2013 09:04:57 -0700 |
| From | Gary Roach <gary719_list1@verizon.net> |
| User-Agent | Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130828 Icedove/17.0.8 |
| MIME-version | 1.0 |
| To | Python List <python-list@python.org> |
| Subject | django admin.py error |
| Content-type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-transfer-encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.154.1379606716.18130.python-list@python.org> (permalink) |
| Lines | 58 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1379606717 news.xs4all.nl 15913 [2001:888:2000:d::a6]:52343 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:54430 |
Show key headers only | View raw
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 Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.5.2 Exception Type: ImportError Exception Value: cannot import name membership Exception Location: /home/gary/ProgramFiles/mysite/mysite/admin.py in <module>, line 4 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/home/gary/ProgramFiles/mysite/mysite', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] 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 admin.site.register(membership) admin.site.register(address) admin.site.register(status) admin.site.register(audio) admin.site.register(video) admin.site.register(photos) I can't seem to locate the source of the problem. Everything seems to be installed properly. Any help will be sincerely appreciated. Gary R
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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