I edited the settings.py to look like this:
try:
from local_settings import *
except ImportError:
print "local_settings is not imported."
I am not getting errors when importing settings.py in python shell (python
manage.py shell):
>>> import settings
>>> import local_settings
>>>
On Monday, May 26, 2014 5:14:47 PM UTC-5, Stephen McDonald wrote:
>
> if you have SECRET_KEY defined in local_settings.py, you might find that
> local_settings.py actually isn't being imported. You could verify this by
> editing settings.py towards the end where it imports local_settings.py, to
> allow it to throw an error if the import fails, which would show what the
> real error is.
>
>
>
> On Tue, May 27, 2014 at 4:30 AM, val_erie <[email protected] <javascript:>
> > wrote:
>
>> Hi,
>>
>> I have Mezzanine 3.1.4 installed in virtualenv and I would like to run it
>> using Apache2 and mod_wsgi.
>> I followed
>> https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/#how-to-use-django-with-apache-and-mod-wsgito
>> configure apache. I do have SECRET_KEY in local_settings.py, but I am
>> getting this error when try to run mezzanine through apache:
>> ImproperlyConfigured: The SECRET_KEY setting must not be empty.
>>
>> Any help is greatly appreciated.
>> Valerie
>>
>> --
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Stephen McDonald
> http://jupo.org
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.