I found the error. The application wasn't in the INSTALLED_APP in the 
settings file! 


On Thursday, May 9, 2013 2:13:19 PM UTC+2, Mike Dewhirst wrote:
>
> On 9/05/2013 10:04pm, crosa wrote: 
> > Hi guys, 
> > 
> > I'm testing django in order to build a little application. This 
> > application will have several models, so I've decided to split up them, 
> > in order to do this more readable (Any other form to do this?) 
> > When I run python manage.py syncdb, the models tables have not been 
> > created, and I don't know why! 
>
> Check this ... 
>
> https://docs.djangoproject.com/en/dev/ref/models/options/#app-label 
>
> > 
> > I have tried to use south for the migration too, and when I run this: 
> > python manage.py schemamigration testapp --initial 
> > This error appears. 
> > ImproperlyConfigured: App with label testapp could not be found 
> > 
> > I think it's something related with the models split up, but I don't 
> > know what 
> > 
> > Here we are the testproject tree (attached). 
> > 
> > ├── [-rwxr-xr-x  250 May  9 13:14]  manage.py 
> > ├── [drwxr-xr-x 4.0K May  9 13:51]  templates 
> > │   ├── [-rw-r--r--  111 May  9 13:50]  view1.html 
> > │   ├── [-rw-r--r--  111 May  9 13:50]  view2.html 
> > │   └── [-rw-r--r--  111 May  9 13:51]  view3.html 
> > └── [drwxr-xr-x 4.0K May  9 13:54]  testapp 
> >      ├── [-rw-r--r--  406 May  9 13:23]  admin.py 
> >      ├── [-rw-r--r--   27 May  9 13:23]  forms.py 
> >      ├── [-rw-r--r--    0 May  9 13:10]  __init__.py 
> >      ├── [drwxr-xr-x 4.0K May  9 13:32]  models 
> >      │   ├── [-rw-r--r--  133 May  9 13:32]  __init__.py 
> >      │   ├── [-rw-r--r--  588 May  9 13:30]  model1.py 
> >      │   ├── [-rw-r--r--  921 May  9 13:31]  model2.py 
> >      │   └── [-rw-r--r--  588 May  9 13:32]  model3.py 
> >      ├── [-rw-r--r-- 5.4K May  9 13:24]  settings.py 
> >      ├── [-rw-r--r--  39K May  9 13:48]  sqlite.db 
> >      ├── [-rw-r--r--  774 May  9 13:52]  urls.py 
> >      ├── [-rw-r--r--  746 May  9 13:48]  views.py 
> >      └── [-rw-r--r-- 1.4K May  9 13:17]  wsgi.py 
> > 
> > Thanks in advance! 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Django users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to django-users...@googlegroups.com <javascript:>. 
> > To post to this group, send email to 
> > django...@googlegroups.com<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/django-users?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>

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


Reply via email to