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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
zulp's avatar
21
zulp
asked 12 years ago

Comments

see more comments

1 Answer

0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

see more comments