OK Found it.

Used this

from autoslug.fields import AutoSlugField

and had one autoslug field.

Autoslug not on the pythonpath and syncdb failed silently.  Once I
took these out, normal service resumed.  Phew!

Phoebe.


On Jan 28, 9:56 am, phoebebright <[email protected]> wrote:
> It can see the app fine - the import views suggested above works fine,
> and if I put print statements in models.py, they are displayed when
> syncdb runs (4 times!).
>
> Checked all the folders for __init__ and all there.
>
> Am going to create a new app from scratch and put stuff in one small
> piece at a time.  Aghhh, don't you just love computers!
>
> Thanks for your suggestions, I'll keep them in a checklist for future
> reference.
>
> Phoebe
>
> On Jan 28, 12:46 am, mtnpaul <[email protected]> wrote:
>
>
>
> > In manage.py you could add
>
> > sys.path.insert(0, "/path/to/web")
>
> > Just before the  if __name__="__main__":   line
>
> > You will also need to handle this in your wsgi file for deployment.
>
> > Are you using "South"? If so, new tables for something you have
> > migrated will not be built by syncdb.
>
> > On Jan 27, 11:54 am, 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 tried running it with verbosity 2 and this folder is never
> > > referred to.
>
> > > Have included 'from web.models import *' in urls.py and admin.py for
> > > luck.
>
> > > 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?
>
> > > Here is my INSTALLED_APPS:
> > > INSTALLED_APPS = (
> > >     'django.contrib.auth',
> > >     'django.contrib.contenttypes',
> > >     'django.contrib.sessions',
> > >     'django.contrib.sites',
> > >     'django.contrib.admin',
> > >     'web',
> > >     'lifestream',
> > > )
>
> > > I have no idea what to try next!!

-- 
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