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

Add django 1.8 support #165

Closed
wants to merge 10 commits into from
Closed

Add django 1.8 support #165

wants to merge 10 commits into from

Conversation

dracos
Copy link
Member

@dracos dracos commented Feb 11, 2015

And tidy up bits for some future proofing.

We allow 1.8 to fail as it's not currently out.
One gotcha - if we've been called via deal_with_POST (for very long
URLs), then move POST into GET before handling the request.
urlpatterns as a list has worked since 1.4.
This allows the same templates to work in anything from 1.4 upwards.
Use Django's render() shortcut rather than our own; create a
render_to_string patch that uses request/context appropriately; stub out
Context() when not needed; add TEMPLATES setting.
@mhl
Copy link
Contributor

mhl commented Feb 12, 2015

Incidentally, why are you preferring get_version() (returning a string) to VERSION (being a tuple)? It seems like that latter ought to be more robust (although presumably it'll be a while until Django 1.10, so I guess it's not an immediate concern - just curious.)

@mhl
Copy link
Contributor

mhl commented Feb 12, 2015

I've added a few comments or questions, but otherwise this looks good to me.

@dracos
Copy link
Member Author

dracos commented Feb 12, 2015

"why are you preferring get_version()" – get_version is all that's mentioned in the documentation, so I assumed was preferable, it's a PEP386 compliant string, and Django will be going from 1.9 to 2.0 so should be okay for a while :)

This was added in Django 1.7 in order to invalidate sessions on password
change.
Remove Django/South from packages files, and put requirements in
setup.py rather than reqirements.txt.
@dracos
Copy link
Member Author

dracos commented Feb 12, 2015

Merged in fc7f2eb with Version 1.3 commit added on top separately to fix typos.

@dracos dracos closed this Feb 12, 2015
@dracos dracos deleted the add-django-1.8-testing branch December 22, 2015 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants