I'm using the django app, django-schedule (http://github.com/thauber/
django-schedule) and am adding an additional table to map users to
calendars (see line 253 on dpaste). When I run syncdb it completely
ignores my table and doesn't through any errors. Can anyone shed any
light on way it might be being igored?
My models file is available here:
Thanks in advance
Wes
The most likely cause - a table of that name already exists. Django
uses the existence of the table as a mark for whether the table needs
to be created at all. If a table of the required name
(yourapp_calendarusers) already exists -- either because of a clash
with an existing project, or because you ran syncdb previously and
have an old version of the table -- Django won't create or update the
table.
Yours,
Russ Magee %-)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
are you able to import your model and views.py from the shell. Just check if
both these work - from yourproject.yourapp.views import * and import
yourproject.yourapp.views. There used to be a bug where syncdb failed silently
when the concerned views/models file had a failed import. I am not sure whether
the bug has been rectified. (bad internet so cannot check)
--
regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS
http://certificate.nrcfoss.au-kbc.org.in
--
> I'm using the django app, django-schedule (http://github.com/thauber/
> django-schedule) and am adding an additional table to map users to
> calendars (see line 253 on dpaste). When I run syncdb it completely
> ignores my table and doesn't through any errors. Can anyone shed any
> light on way it might be being igored?
Did you add the app to INSTALLED_APPS?
--
Dennis K.
They've gone to plaid!