Ideas for easier migration from South to Django 1.7+

2016-02-12 Thread Stefan Foulis
Hi everyone I'm looking for a way to do a semi-automatic migration of databases from Django 1.6 with South to Django 1.7+ migrations. We have thousands of sites, each using many re-usable apps with many migrations. I'm looking for a way to make this transition as painless as possible. I've not

Re: __unicode__ rather than __str__ in Part 2 of 'Writing you first Django app"?

2016-02-12 Thread JHeasly
Hi Simon — I was pretty sure I was missing something obvious. Thanks for pointing it out. — John -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+

How does one initialise a test database exactly as one wishes?

2016-02-12 Thread Vinay Sajip
I have a project (using Django 1.8) where I want to initialise a test database with some fixture data obtained from doing a manage.py dumpdata from a development instance of the database (with an identical schema to the test database). The fixture data contains *everything* in the source databa

Django is creating duplicate queries for prefetch_related

2016-02-12 Thread Dheerendra Rathor
Hello, Recently I was monitoring db queries created by Django and a particular block was behaving unusual. Here is the code block: from django.db import connection, reset_queries reset_queries() group = get_object_or_404( Group.objects.select_related('course')