Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.7 support #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Django 1.7 support #2

wants to merge 2 commits into from

Conversation

jaylett
Copy link
Owner

@jaylett jaylett commented Apr 12, 2015

  1. Use form.add_error()
  2. Change test runner to set up Django in the 1.7+ way.
  3. Drop use of @override_settings to change database since we don't actually need it and it emits warnings now.

Tested in postgresql, not yet on mysql.

We have to call django.setup() now.

Additionally, changing DATABASES using @override_settings generates a
warning; since we only test one database per process, simplify things
considerably by getting things right in settings.configure() to start
off with.
This makes us depend on Django >= 1.7, so note that in setup.py.
Bump version to v0.3; tested with postgresql but not mysql as yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant