Malcolm,

Thanks for your reply. Path does not include web:

 '/Users/phoebebr/Development/tinyhq',
 '/Users/phoebebr/Development/tinyhq/libs',
 '/Users/phoebebr/Development/tinyhq',
 '/Users/phoebebr/Development/tinyhq/libs',
 '/Users/phoebebr/Development/tinyhq',


but if I do import web I don't get any error.
Tried adding a path directly at the top of settings so I get

 '/Users/phoebebr/Development/tinyhq',
 '/Users/phoebebr/Development/tinyhq/web',
 '/Users/phoebebr/Development/tinyhq/libs',
 '/Users/phoebebr/Development/tinyhq',
 '/Users/phoebebr/Development/tinyhq/web',
 '/Users/phoebebr/Development/tinyhq/libs',
 '/Users/phoebebr/Development/tinyhq',

but symptoms remain the same.

What is going on?!


On Jan 27, 7:23 pm, Malcolm Box <[email protected]> wrote:
> On Wed, Jan 27, 2010 at 6:54 PM, phoebebright 
> <[email protected]>wrote:
>
>
>
>
>
> > I cannot find the reason why syncdb will not create tables from a
> > models.py.
>
> > It is quite happy to create the auth tables and ones from an external
> > app that is included in INSTALLED_APPS but it won't build the tables
> > from my 'web' folder.
>
> > I can put a print statement in the web.models.py and it appears.  It
> > is clearly parsing all the models, because if I put a foreignkey to a
> > model which doesn't exist, it complains until I fix the error, but it
> > won't build the tables.  I do a syncdb and nothing happens and nothing
> > is displayed.
>
> > Have included 'from web.models import *' in urls.py and admin.py for
> > luck.
>
> > This would explain the print statement appearing.
> > Have tried copying the web folder to another name and putting that
> > name in the INSTALLED_APPS.
>
> > The only other symptom is that if I do  'python manage.py sql web'  I
> > get the error
> > Error: App with label web could not be found. Are you sure your
> > INSTALLED_APPS setting is correct?
>
> What is your python path?  Do manage.py shell
>
> >>> import sys
> >>> sys.path
>
> Then try
>
> >>> import web
>
> My guess is that for some reason your python path doesn't include the web
> directory.
>
> The only other thing I can think of is some import error in your app that's
> silently failing on syncdb - the "import web" test above should spot that.
>
> Cheers,
>
> Malcolm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to