Re: Table in models.py not being created during syncdb
Have you added schedule to installed application list ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Oct 9, 2013 at 4:11 PM, Edward Lazarenko wrote: > Can you tell what did you exactly do, to make it work? > > On Wednesday, March 31, 2010 10:16:11 PM UTC+5, wchildsuk wrote: >> >> Hi, >> >> 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: >> >> http://dpaste.com/178158/ >> >> Thanks in advance >> >> Wes > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0573be21-ab52-44ec-a005-e8efb3ea09bd%40googlegroups.com. > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADTRxJPhp9r39dk%3D%2Bnc6Ai515c5x5eK7DjRWT1QbboZqVUp%3D4w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Table in models.py not being created during syncdb
Can you tell what did you exactly do, to make it work? On Wednesday, March 31, 2010 10:16:11 PM UTC+5, wchildsuk wrote: > > Hi, > > 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: > > http://dpaste.com/178158/ > > Thanks in advance > > Wes > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0573be21-ab52-44ec-a005-e8efb3ea09bd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Table in models.py not being created during syncdb
Yep definitely in installed_apps. After several hours of playing I've changed my method of implementation to work around this issue. Thanks for everyone's help on this issue, really appreciated. Wes On 3 April 2010 18:16, Dennis Kaarsemaker wrote: > On wo, 2010-03-31 at 10:16 -0700, wchildsuk wrote: > > > 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! > > -- > 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. > > -- 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.
Re: Table in models.py not being created during syncdb
On wo, 2010-03-31 at 10:16 -0700, wchildsuk wrote: > 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! -- 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.
Re: Table in models.py not being created during syncdb
Thanks but still no luck, it imports fine as expected. Also tried splitting it out to a separate models file but it failed to even pick that. Any other ideas? On 1 April 2010 08:35, Kenneth Gonsalves wrote: > On Thursday 01 Apr 2010 1:00:00 pm Wesley Childs wrote: > > I removed the sqlite db file, changed the table name to something more > > random and I still hit the same problem. > > > > 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 > > -- > 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. > > -- 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.
Re: Table in models.py not being created during syncdb
On Thursday 01 Apr 2010 1:00:00 pm Wesley Childs wrote: > I removed the sqlite db file, changed the table name to something more > random and I still hit the same problem. > 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 -- 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.
Re: Table in models.py not being created during syncdb
Hi, Thanks for the advice. I removed the sqlite db file, changed the table name to something more random and I still hit the same problem. Do you have any other ideas? Thanks Wes On 1 April 2010 00:42, Russell Keith-Magee wrote: > On Thu, Apr 1, 2010 at 1:16 AM, wchildsuk wrote: > > Hi, > > > > 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? > > 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-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. > > -- 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.
Re: Table in models.py not being created during syncdb
On Thu, Apr 1, 2010 at 1:16 AM, wchildsuk wrote: > Hi, > > 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? 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-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.
Table in models.py not being created during syncdb
Hi, 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: http://dpaste.com/178158/ Thanks in advance Wes -- 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.