Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Exclude south from example settings for Django 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcd committed Jan 30, 2015
1 parent a06b039 commit 2b52eb2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions forms_builder/example_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@
'forms_builder.forms',
)

try:
import south
except ImportError:
pass
else:
INSTALLED_APPS += ("south",)
from django import VERSION
if VERSION < (1, 7):
try:
import south
except ImportError:
pass
else:
INSTALLED_APPS += ("south",)

FORMS_BUILDER_EXTRA_FIELDS = (
(100, "django.forms.BooleanField", "My cool checkbox"),
Expand Down

0 comments on commit 2b52eb2

Please sign in to comment.