Django manage.py syncdb does nothing when used with sqlite3

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

Why is this happening and how can I solve this problem?

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

+4
source share
3 answers

sync db does not integrate schema changes after creating tables. You must delete the database manually and run syncdb again. See Box Information in this link.

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

+10
source

As always, syncdb does not migrate an existing schema.

+3
source

I think a solution can be found here: a good blog to start with Django: Getting started with the Django REST Framework (DRF) and AngularJS: http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part -1/

0
source

Source: https://habr.com/ru/post/1342517/


All Articles