On Thu, Sep 23, 2010 at 8:33 PM, Ivan <icvitko...@gmail.com> wrote:

> Hi all,
> I'm trying to build a Django project by working through the handbook
> but I'm having some problems accessing the database by referencing the
> model I've created from it (by inspectdb). When attemping to do some
> "Basic Data Access" (Chapter 5) I can't import the models I've made
> (from [app name].models import [model name]), with the console
> erroring 'ImportError: cannot import name [model name]'. I checked the
> models.py inspectdb made with 'python manage.py validate' and 'python
> manage.py syncdb' exits with 'No fixtures found'. I would appreciate
> any help I can get. Thanks
>
> Here is my models.py from my app:
> http://pastebin.ca/1947921
>
> And here is my settings.py
> http://pastebin.ca/1947922
>
>
Pastebin is not responding at present, so I cannot see what you have
provided. However as a general rule you are more likely to get helpful
responses if you show exactly what you have entered, and exactly what you
get in response. Do not replace key bits with [app name] and [model name],
and do cut/paste the actual output you get into the email and include it.
Having to guess what you might have really entered and how that might have
differed from what would work makes it a lot harder to try to help.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to