7👍
✅
running syncdb
will not make changes to tables for any models already in the database (even if you have changed them).
for managing changes to models, consider south
1👍
Syncdb will create tables that don’t exist, but not modify existing tables. So it’s fairly safe to run in production. But it’s not a reliable way to maintain a database schema. Look at the South package for a way to reliably maintain changes to your database schema between development and production. Should be part of django standard, IMHO.
- [Django]-Django Count lines in a Subquery
- [Django]-Celery raise error while passing my queryset obj as parameter
- [Django]-Forward declaration – no admin page in django?
- [Django]-Xapian search terms which exceed the 245 character length: InvalidArgumentError: Term too long (> 245)
- [Django]-Django ValueError: Field 'id' expected a number but got 'S'
Source:stackexchange.com