Question

I am trying to implement the message middleware in my Django App engine project but its giving the an error message like:

ImproperlyConfigured: Error importing middleware mediautils.middleware: "No module named messages"

I have followed the link http://djangoadvent.com/1.2/messages-rest-us/ to implement it. Is it not possible to use this middleware with Google App engine? and if so, is there any alternative to get the same functionality with Google app engine and Django?

What are the changes required to make it run on google app engine?

Please suggest.

Thanks in advance.

Was it helpful?

Solution 2

Well I used the following code to implement the same functionality:

from django.contrib.auth.models import Message
Message(user=request.user, message="Date Updated Successfully").put()

though

request.user.message_set.create(message= "Data Updated Successfully")

was not working.

OTHER TIPS

The latest Django included in GAE is 1.1; the new messaging framework was added in 1.2.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top