Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Make views.login compatible with django 1.4 by updating messaging#7

Open
ichuang wants to merge 4 commits intocastlabs:masterfrom
mitocw:master
Open

Make views.login compatible with django 1.4 by updating messaging#7
ichuang wants to merge 4 commits intocastlabs:masterfrom
mitocw:master

Conversation

@ichuang
Copy link

@ichuang ichuang commented Jul 14, 2013

The Message model (in django.contrib.auth), its related manager in the User model (user.message_set), and the associated methods (user.message_set.create() and user.get_and_delete_messages()), which have been deprecated since the 1.2 release, have been removed from Django 1.4.

This PR updates the views.login call to use the messages framework instead of the Message model.

See https://docs.djangoproject.com/en/1.3/internals/deprecation/ and https://docs.djangoproject.com/en/1.3/ref/contrib/messages/

ichuang and others added 4 commits July 14, 2013 18:45
This fixes issues with Django 1.5. django.http.get_host() was replaced with request.get_host()
This fixes issues with Django 1.5. django.http.get_host()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants