django-south
South: run a migration for a column that is both unique and not null
Using South/Django, I am running into a problem where I\'m trying to add a UNIQUE and NOT NULL column for a model with existing rows in the database. South prompts me to specify a default for the colu[详细]
2023-03-31 22:39 分类:问答Dropping the 'table' for a model and recreating in a django south migration
I have a django model which is created using some custom sql. It\'s actually just a SQL view, it\'s not a real table. We are using django south to manage migrations. I have changed the view definition[详细]
2023-03-30 20:06 分类:问答Custom South migration with custom fields - Django
I am pretty new to Django and just got a job that involves maintaining and adding features to a site I did not design, so I am still kind of confused about the structure and what not of the project. T[详细]
2023-03-28 11:22 分类:问答In Django/South HOWTO create an instance of a model from a different app during DataMigration
I need to perform a datamigration of a model Answer in app Question. In that script there is a dependency such that I need to create an instance of a model Chapter which is in the app Journal. So, I c[详细]
2023-03-26 18:59 分类:问答Data Migration from ImageField to ImageField using South
I\'m trying for several hours now to do the silliest migration using South, but somehow, I\'ve been failing miserably.. I\'m trying to migrate to Sorl-Thumbnail.[详细]
2023-03-26 04:12 分类:问答In South, can I copy the value of an old column to a new one?
One of my Django models is a subclass and I want to change its superclass to one that is very similar 开发者_Go百科to the original one. In particular, the new superclass describes the same object and[详细]
2023-03-25 07:36 分类:问答Content translation in Django, compatible with South
I\'m looking for a solution to have translatable database fields in Django, and the solution needs to be compatible with South.[详细]
2023-03-24 11:16 分类:问答Django error when using South migration: Unknown column in 'field list'
I\'m running into a problem when using schemamigration to add a column to my database.The field in question, \'is_flagged\', is a boolean belonging to the Video model in my app \'upload\'.When running[详细]
2023-03-23 03:39 分类:问答How to find out what database (e.g. wether using mysql/pgsql/?) in a django south migration?
I\'m writing a migration using Django\'s South, and it can only work on MySQL databases. Is there anyway I can find out what database is being used (i.e. is this running on mysql or is it on postgres,[详细]
2023-03-20 21:20 分类:问答Django Boolean is "True" after migration and not selected in ModelForm
I am trying to add a row to my Model and have that option editable in a ModelForm in Django. I want the field to be True by default.Here\'s what I\'m adding to my model:[详细]
2023-03-20 18:56 分类:问答