Operating System
Windows 11 Pro 23H2
Package Version
No response
Python Version
3.12
Description
Hi,
I encountered an issue while following the installation steps in the README.md. I attempted the installation using both Docker and Hatch, but I received the following error each time:
`Traceback (most recent call last):
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\environ\environ.py", line 388, in get_value
value = self.ENVIRON[var_name]
~~~~~~~~~~~~^^^^^^^^^^
File "", line 685, in getitem
KeyError: 'DJANGO_SECRET_KEY'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "path_to_project\manage.py", line 10, in
execute_from_command_line(sys.argv)
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\core\management_init_.py", line 442, in execute_from_command_line
utility.execute()
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\core\management_init_.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\core\management\base.py", line 459, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\core\management\base.py", line 104, in wrapper
saved_locale = translation.get_language()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\utils\translation_init_.py", line 211, in get_language
return trans.get_language()
^^^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\utils\translation_init.py", line 66, in getattr
if settings.USE_I18N:
^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\conf_init_.py", line 89, in getattr
self.setup(name)
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\conf_init.py", line 76, in setup
self.wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\django\conf_init.py", line 190, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "path_to_python\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames removed
File "path_to_project\config\settings.py", line 30, in
SECRET_KEY = env("DJANGO_SECRET_KEY")
^^^^^^^^^^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\environ\environ.py", line 199, in call
return self.get_value(
^^^^^^^^^^^^^^^
File "path_to_hatch\env\virtual\matorral\oa8CtWIB\local\Lib\site-packages\environ\environ.py", line 392, in get_value
raise ImproperlyConfigured(error_msg) from exc
django.core.exceptions.ImproperlyConfigured: Set the DJANGO_SECRET_KEY environment variable
`