Hei
Saan em. virheen, kun muokkasin settings.py:ta.
Eilen toimi vielä aivan hyvin ja tänään lisäsin tiedoston loppuun asetuksia, jonka jälkeen valittaa tätä.
Vaikka poistan uudet asetukset, niin silti valittaa.
Alkaa muistuttamaan pitkälti Drupalia kaikkine välimuistiihmetyksineen tai ole ainakaan yhtään sen vakaampaa kehittämistä.
Voihan se toki olla tekijässäkin vika, mutta aika erikoisia ovat nämä virheet...
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 61, in execute
super().execute(*args, **options)
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/base.py", line 335, in execute
output = self.handle(*args, **options)
File "/home/admin/.local/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 70, in handle
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 106, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/var/www/html/kk-app/kk_project/kk_project/settings.py", line 14, in <module>
from leaflet import LEAFLET_CONFIG
File "/home/admin/.local/lib/python3.5/site-packages/leaflet/__init__.py", line 32, in <module>
LEAFLET_CONFIG = getattr(settings, 'LEAFLET_CONFIG', {})
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/home/admin/.local/lib/python3.5/site-packages/django/conf/__init__.py", line 125, in __init__
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.