Thank you. When I run ./baserow shell_plus
I get this:
(venv) root@9a76e57d0608:/baserow/backend# ./baserow shell_plus
Traceback (most recent call last):
File "./baserow", line 5, in <module>
main()
File "/baserow/backend/src/baserow/manage.py", line 26, in main
if settings.DEBUG and os.environ.get("RUN_MAIN"):
File "/baserow/venv/lib/python3.7/site-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/baserow/venv/lib/python3.7/site-packages/django/conf/__init__.py", line 67, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
So I run this:
(venv) root@9a76e57d0608:/baserow/backend# export DJANGO_SETTINGS_MODULE='baserow.config.settings.base'
But I still get errors:
(venv) root@9a76e57d0608:/baserow/backend# ./baserow shell_plus
WARNING: Baserow is configured to use a BASEROW_PUBLIC_URL of http://localhost. If you attempt to access Baserow on any other hostname requests to the backend will fail as they will be from an unknown host. Please set BASEROW_PUBLIC_URL if you will be accessing Baserow from any other URL then http://localhost.
Traceback (most recent call last):
File "./baserow", line 5, in <module>
main()
File "/baserow/backend/src/baserow/manage.py", line 37, in main
execute_from_command_line(sys.argv)
File "/baserow/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/baserow/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
django.setup()
File "/baserow/venv/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/baserow/venv/lib/python3.7/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/baserow/backend/src/baserow/core/apps.py", line 57, in ready
from .job_types import DuplicateApplicationJobType
File "/baserow/backend/src/baserow/core/job_types.py", line 7, in <module>
from baserow.api.applications.serializers import ApplicationSerializer
File "/baserow/backend/src/baserow/api/applications/serializers.py", line 3, in <module>
from drf_spectacular.openapi import OpenApiTypes
File "/baserow/venv/lib/python3.7/site-packages/drf_spectacular/openapi.py", line 13, in <module>
from rest_framework.generics import CreateAPIView, GenericAPIView, ListCreateAPIView
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/generics.py", line 9, in <module>
from rest_framework import mixins, views
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/views.py", line 17, in <module>
from rest_framework.schemas import DefaultSchema
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/schemas/__init__.py", line 33, in <module>
authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES,
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/settings.py", line 225, in __getattr__
val = perform_import(val, attr)
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/settings.py", line 168, in perform_import
return [import_from_string(item, setting_name) for item in val]
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/settings.py", line 168, in <listcomp>
return [import_from_string(item, setting_name) for item in val]
File "/baserow/venv/lib/python3.7/site-packages/rest_framework/settings.py", line 177, in import_from_string
return import_string(val)
File "/baserow/venv/lib/python3.7/site-packages/django/utils/module_loading.py", line 17, in import_string
module = import_module(module_path)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/baserow/backend/src/baserow/api/authentication.py", line 6, in <module>
from rest_framework_jwt.authentication import (
File "/baserow/venv/lib/python3.7/site-packages/rest_framework_jwt/authentication.py", line 17, in <module>
from rest_framework_jwt.blacklist.exceptions import (
File "/baserow/venv/lib/python3.7/site-packages/rest_framework_jwt/blacklist/exceptions.py", line 5, in <module>
from rest_framework_jwt.compat import gettext_lazy as _
File "/baserow/venv/lib/python3.7/site-packages/rest_framework_jwt/compat.py", line 11, in <module>
from .settings import api_settings
File "/baserow/venv/lib/python3.7/site-packages/rest_framework_jwt/settings.py", line 14, in <module>
'JWT_SECRET_KEY': settings.SECRET_KEY,
File "/baserow/venv/lib/python3.7/site-packages/django/conf/__init__.py", line 90, in __getattr__
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
(venv) root@9a76e57d0608:/baserow/backend#