Skip to content
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

The SECRET_KEY setting must not be empty 这个问题怎么解决的 #17

Open
cain123 opened this issue Aug 22, 2018 · 0 comments
Open

Comments

@cain123
Copy link

cain123 commented Aug 22, 2018

{"error":"IndexAlreadyExistsException[[readthedocs] already exists]","status":400}+ cd /app/readthedocs

  • ln -s ../manage.py .
  • PYTHON=/venv/bin/python
  • /venv/bin/python manage.py syncdb --noinput
    Traceback (most recent call last):
    File "manage.py", line 11, in
    execute_from_command_line(sys.argv)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line
    utility.execute()
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 185, in fetch_command
    settings.INSTALLED_APPS
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 55, in getattr
    self._setup(name)
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 120, in init
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
    django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
  • /venv/bin/python manage.py migrate
    Traceback (most recent call last):
    File "manage.py", line 11, in
    execute_from_command_line(sys.argv)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line
    utility.execute()
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 195, in fetch_command
    klass = load_command_class(app_name, subcommand)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 39, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
    File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
    import(name)
    File "/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 16, in
    from django.db.migrations.autodetector import MigrationAutodetector
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/autodetector.py", line 14, in
    from django.db.migrations.questioner import MigrationQuestioner
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/questioner.py", line 12, in
    from .loader import MigrationLoader
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 10, in
    from django.db.migrations.recorder import MigrationRecorder
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 12, in
    class MigrationRecorder(object):
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 26, in MigrationRecorder
    class Migration(models.Model):
    File "/venv/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 27, in Migration
    app = models.CharField(max_length=255)
    File "/venv/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 1072, in init
    super(CharField, self).init(*args, **kwargs)
    File "/venv/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 166, in init
    self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 55, in getattr
    self._setup(name)
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
    File "/venv/local/lib/python2.7/site-packages/django/conf/init.py", line 120, in init
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
    django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant