It works!

Thank you very much!

Il giorno sabato 11 agosto 2012 20:25:14 UTC+2, Alexis Roda ha scritto:
>
> Al 11/08/12 15:57, En/na Jojo ha escrit: 
> > Hi, I'm developing my first web application with Django. The model is 
> > growing up quite fast and I started to split the code in different files 
> > I putted under models directory with its __init__.py file. Everything 
> > works fine, but syncdb doesn't recognize new models, and consequently 
> > doesn't create new tables. 
>
> You should import the models from __init__.py and add to every model 
>
> class Meta : 
>      app_label = "your_app_label" 
>
>
> https://docs.djangoproject.com/en/1.4/ref/models/options/#app-label 
> https://docs.djangoproject.com/en/1.4/topics/db/models/#meta-options 
>
>
> HTH 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/WXXYU_VT730J.
To post to this group, send email to django-users@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