building the docs

100 views
Skip to first unread message

Federico Bruni

unread,
Mar 7, 2014, 12:03:38 PM3/7/14
to mezzani...@googlegroups.com
I've tried building the docs but I'm getting this error:

$ sphinx-build -b html docs docs/build
Running Sphinx v1.2
/usr/local/lib/python2.7/dist-packages/mezzanine/utils/conf.py:51: UserWarning: You haven't defined the ALLOWED_HOSTS settings, which Django 1.5 requires. Will fall back to the domains configured as sites.
  warn("You haven't defined the ALLOWED_HOSTS settings, which "
/usr/local/lib/python2.7/dist-packages/mezzanine/utils/conf.py:59: UserWarning: TIME_ZONE setting is not set, using closest match: Europe/Rome
  warn("TIME_ZONE setting is not set, using closest match: %s" % tz)

Exception occurred:
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 151, in __init__
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
ImproperlyConfigured: The SECRET_KEY setting must not be empty.
The full traceback has been saved in /tmp/sphinx-err-sEgI9d.log, if you want to report the issue to the developers

Find attached the full log.

sphinx-err-sEgI9d.log

Ken Bolton

unread,
Mar 7, 2014, 12:12:47 PM3/7/14
to mezzanine-users
Hi Federico,

ALLOWED_HOSTS, TIME_ZONE, and SECRET_KEY do not have values. Make sure you have those set in your settings.py or local_settings.py.

Backing up a moment, we see that Mezzanine is installed in /usr/local/lib/python2.7/dist-packages/. I urge you to follow the recommendations of http://effectivedjango.com/tutorial/getting-started.html and install Django, Mezzanine, and other applications in a virtualenv (http://www.virtualenv.org/en/latest/).

hth,
ken


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Federico Bruni

unread,
Mar 7, 2014, 12:38:33 PM3/7/14
to mezzani...@googlegroups.com

Hi Ken

I thought that building the docs was indipendent from starting a mezzanine project. That's why I'm not using a virtualenv in this case.
My goal is being able to test a doc patch about deployment, in case I manage to write something reasonable.

You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/Q7rneOzrv8o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.

Stephen McDonald

unread,
Mar 7, 2014, 4:02:20 PM3/7/14
to mezzani...@googlegroups.com
Django gets loaded so that we can retrieve all of Mezzanine's settings (mezzanine.conf), which each contain names and descriptions - these are then used to generate the settings docs here: http://mezzanine.jupo.org/docs/configuration.html

You can't load Django without SECRET_KEY defined.
Stephen McDonald
http://jupo.org

Federico Bruni

unread,
Mar 10, 2014, 3:59:17 AM3/10/14
to mezzani...@googlegroups.com
Ok, I'm using a virtualenv where I've installed mezzanine and sphinx.
The SECRET_KEY value is in an environment variable within the virtualenv.

I'm getting the same error message, see log attached


sphinx-err-hLiCrz.log

James Lewis

unread,
Sep 3, 2015, 11:22:01 PM9/3/15
to Mezzanine Users, st...@jupo.org
Hi I am getting the same error on webfaction:


File "/home/jameslewis/lib/python2.7/django/conf/__init__.py", line 44, in _setup

self._wrapped = Settings(settings_module)

File "/home/jameslewis/lib/python2.7/django/conf/__init__.py", line 113, in __init__



raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")

django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.

 


But the thing is I have the secret key in both settings.py and local_settings.py what could this be?


Thanks :-)

Reply all
Reply to author
Forward
0 new messages