Ask Your Question
0

try to add Robot.txt from admin

asked 2013-02-18 09:39:39 -0600

zulp gravatar image

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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-18 10:36:18 -0600

Evgeny gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-02-18 09:39:39 -0600

Seen: 237 times

Last updated: Feb 18 '13