When entering Django 1.6.3 admin panel, I enter superuser's login and password and get the following message:

AttributeError at /admin/ 'Meta' object has no attribute 'object_name' Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.6.3 Exception Type: AttributeError Exception Value: 'Meta' object has no attribute 'object_name' Exception Location: /home/Project/myvenv/local/lib/python2.7/site-packages/django/contrib/admin/sites.py in index, line 353 Python Executable: /home/Project/myvenv/bin/python Python Version: 2.7.9 Python Path: ['/home/Project/mysite/mysite', '/home/Project/mysite', '/home/Project/myvenv/lib/python2.7', '/home/Project/myvenv/lib/python2.7/plat-x86_64-linux-gnu', '/home/Project/myvenv/lib/python2.7/lib-tk', '/home/Project/myvenv/lib/python2.7/lib-old', '/home/Project/myvenv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/Project/myvenv/local/lib/python2.7/site-packages', '/home/Project/myvenv/lib/python2.7/site-packages'] 

What is the problem?

    1 answer 1

    The problem is that in the Config class and in the child class Meta no object_name variable with the value Config . You can use the latest version of django-constance-updated or fix it manually.

    Manually will look like this:

    Run the file at: Lib/site-packages/constance/admin.py

    And add a variable in the class:

     class Config(object): class Meta(object): [здесь могут быть другие переменные] object_name = 'Config' # вставляем эту строку 

    Save the file and reboot the server.

    Source https://github.com/jazzband/django-constance/issues/69