5 ms·
I with Django would add the south project to their core. It seems like an enormous oversight that you can't change data models after you sync them to the DB for
by skizm 12y ago
I with Django would add the south project to their core. It seems like an enormous oversight that you can't change data models after you sync them to the DB for the first time without deleting all the data or using a 3rd party app (south).
EDIT: I need to read things more carefully. My bad. Good job Django.
- simonpantzare 12y agoThat is one of the big things Django 1.7. "There's a new built-in schema-migration framework."
- tragic 12y agoSeriously. They even made a t-shirt[1] punning on it. [1] http://teespring.com/django17-v2 http://teespring.com/django17-v2
- revo13 12y agoAw man... Where can I get this now that the campaign has ended?
- tragic 12y agoAs I understand it, the smallest run they can do is 20. So if you can find 19 other people who missed out, they could run another campaign. I'd guess Russell Keith Magee or someone else from the DSF would be the one to bother about it.
- randlet 12y agoI bought one but ordered too small a size so I'd be in for purchasing another if someone were to make this happen. It's a nice shirt and I want one that fits!
- freakboy3742 12y agoI'll save you the suspense - we've run the campaign twice, and we're not going to run it again. Part of the sales gimmick was that it was the limited availability. But, fear not - given the success of the campaign this time, I think it's fair to say that when the time comes, there will be a Django 1.8 release shirt.
- rectangletangle 12y agoThere's a bunch of awesome new features in this release. The new `QuerySet.as_manager` method permits using the same code for both custom querysets and model managers. No more hideous code duplication. I don't know how this https://github.com/django/django/blob/stable/1.6.x/django/db/models/manager.py https://github.com/django/django/blob/stable/1.6.x/django/db..., ever meshed with Django's DRY philosophy. There's also the new `Prefetch` class, which allows for more sophisticated prefetch queries (more than just model.related.all()). Though the new migration framework is definitely the star of this release.
- gdulli 12y agoMigrations are one of the major additions with this release, and I believe it's based on South in some way.
- hanley 12y agoAndrew Godwin, the creator of South built the new migrations feature for Django 1.7. Here is a presentation he gave on the topic at PyCon US 2014: http://pyvideo.org/video/2630/designing-djangos-migrations http://pyvideo.org/video/2630/designing-djangos-migrations
- VuongN 12y agoActually, have you had a chance to read this: https://docs.djangoproject.com/en/dev/releases/1.7/#schema-migrations https://docs.djangoproject.com/en/dev/releases/1.7/#schema-m...