First time here? Check out the FAQ!
0

try to add Robot.txt from admin

I get this error when trying to add robots from admin * to /*

MessageFailure at /admin/robots/rule/add/
You cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware
Request Method: POST
Request URL:    http://admin/robots/rule/add/
Django Version: 1.4.3
Exception Type: MessageFailure
Exception Value:    
You cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware
Exception Location: /usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/contrib/messages/api.py in add_message, line 22
Python Executable:  /usr/bin/python
Python Version: 2.6.6

How to solve this ?

zulp's avatar
21
zulp
asked 2013-02-18 09:39:39 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Try adding 'django.contrib.messages.middleware.MessageMiddleware', to your MIDDLEWARE_CLASSES setting.

Evgeny's avatar
13.2k
Evgeny
answered 2013-02-18 10:36:18 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments