[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed to test packages with Django 1.7



On 23 July 2014 16:46, Raphael Hertzog <hertzog@debian.org> wrote:
- the settings needs to include South only in Django < 1.7, you can do
  this for example:

  import django
  if django.VERSION < (1, 7):
      INSTALLED_APPS += ('south',)

Even better (hope I get this right):

=== cut ===
import sys
import django
if sys.version_info < (3, 0) and django.VERSION < (1, 7):
    INSTALLED_APPS += ('south',)
=== cut ===

As south is not available for Python 3.
--
Brian May <brian@microcomaustralia.com.au>

Reply to: