-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SECRET_KEY setting must not be empty" #1
Comments
Hi, I'm also new to Django/Mezzanine and have also got the same error. This is what I did:
I would be super grateful if someone could let me know if I'm missing something here. Is this the proper way to install/run someone else's project? All the best, |
Soooo what so we do here? I would like to look at the templates however need to set KEY!! |
I got the same problem.. |
Same problem here. I see this is ongoing. Helllllpppp somebody. |
I just solved it.
|
Hi! During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Add |
On an additional note, for security purposes please don't use same secret keys as the ones you posted online! :) |
Hi guys [Mon Jun 25 10:55:11.611665 2018] [:error] [pid 25414] ImproperlyConfigured: The SECRET_KEY setting must not be empty. Thank you for your help |
in my case, I removed some unused import which helps me (Somehow I imported my db_route.py and there is some circle referencing in it. |
Hey there!
I just tried downloading and running this but was met with the below exception:
Traceback (most recent call last):
File "manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/Users/majora/venv/lib/python2.7/site-packages/django/core/management/init.py", line 338, in execute_from_command_line
utility.execute()
File "/Users/majora/venv/lib/python2.7/site-packages/django/core/management/init.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/majora/venv/lib/python2.7/site-packages/django/core/management/init.py", line 190, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Users/majora/venv/lib/python2.7/site-packages/django/core/management/init.py", line 40, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/majora/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 14, in
from django.db.migrations.executor import MigrationExecutor
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 6, in
from .loader import MigrationLoader
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/migrations/loader.py", line 10, in
from django.db.migrations.recorder import MigrationRecorder
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 9, in
class MigrationRecorder(object):
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 23, in MigrationRecorder
class Migration(models.Model):
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 24, in Migration
app = models.CharField(max_length=255)
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/models/fields/init.py", line 1081, in init
super(CharField, self).init(_args, *_kwargs)
File "/Users/majora/venv/lib/python2.7/site-packages/django/db/models/fields/init.py", line 161, in init
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File "/Users/majora/venv/lib/python2.7/site-packages/django/conf/init.py", line 48, in getattr
self._setup(name)
File "/Users/majora/venv/lib/python2.7/site-packages/django/conf/init.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/Users/majora/venv/lib/python2.7/site-packages/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.
Any thoughts of where this might be coming from? I'm very new to Mezzanine so would appreciate any help.
Cheers!
Rich
The text was updated successfully, but these errors were encountered: