Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django manage.py syncdb doing nothing when used with sqlite3

I'm not sure if this is an issue specific to sqlite databases but after adding some properties I executed syncdb successfully but still the the columns were not added to the database and when I try the access the model in admin I get no such column error.

Why is this happening and how do I overcome this issue?

Details: Django 1.3, Python 2.6, OSX 10.6, PyCharm.

like image 519
sorin Avatar asked Dec 10 '22 10:12

sorin


1 Answers

sync db doesn't make integrate schema changes once the tables are created. You have to delete the database manually and do syncdb again. See the boxed information in this link

http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb

like image 58
tamizhgeek Avatar answered May 15 '23 05:05

tamizhgeek