On Sat, 2007-10-20 at 16:51 +0000, dbee wrote: > Can anyone explain this behaviour to me ? > > When I try to work with the admin panel on 'Myapp', i get this error > telling me that it can't find an entry in the 'Otherapp' table ? > > Myapp and Otherapp are two completely different applications. I used > some of the same code for both of them though - but I've searched > through all the files and there is no mention of 'Otherapp' in the > 'Myapp' django app tree :-(
It's going to be much easier to help with this kind of problem if you don't change the names. We have to mentally map "myapp" and "otherapp" to the real names that appear in the exception and since we don't know your code, mistakes will be made. > > ProgrammingError at /admin/auth/user/1/ > > ERROR: relation "flowerhour1_userprofile" does not exist SELECT > COUNT(*) FROM "flowerhour1_userprofile" WHERE > ("flowerhour1_userprofile"."user_id" = 1) > > Request Method: POST > > Request URL: http://tarait.com/admin/auth/user/1/ > > Exception Type: ProgrammingError > > Exception Value: ERROR: relation "flowerhour1_userprofile" does not > exist SELECT COUNT(*) FROM "flowerhour1_userprofile" WHERE > ("flowerhour1_userprofile"."user_id" = 1) > > Exception Location: /usr/lib/python2.3/site-packages/Django-0.95.1- > py2.3.egg/django/db/backends/util.py in execute, line 12 This only shows the last line of the traceback. Have a look at the cut-and-paste version of the traceback on the debug page (look for the line near the top that says "cut and paste version" and click on it -- it's a link, although it doesn't look like one). Where is this coming from in the admin? I suspect that will give a lot more information. You could also have a look at the local variables in the non-cut-and-paste view on the debug page. Go back to where it leaves the admin app and calls the db backend and see if any of the local variable contents give you some clues. It looks like it's trying to do something with user profiles. Are you using them at all in your code? Are you using a completely unmodified source version of Django 0.95-1, or have you made some local changes? Malcolm -- Atheism is a non-prophet organization. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---