On 18/07/10 20:58, Andreas Pfrengle wrote:

> This should import a database-based timer I've written. In fact, code
> from django_timer seems to be imported, since 'test' is printed when I
> execute "manage.py syncdb" - however, the database table is not
> created. Why? What would I need to change to make it work (except copy-
> paste the code into my models.py)?
> 

This might be the info you're missing:
http://docs.djangoproject.com/en/dev/ref/models/options/#app-label

"If a model exists outside of the standard models.py (for instance, if
the app’s models are in submodules of myapp.models), the model must
define which app it is part of"

If your models.py gets very big (one of mine is reaching that point, why
this is fresh in my mind) then there's some chance it's just time to
make several separate django apps, but if you split it up without doing
that, you have to be aware of the above.

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