plus-me / backend

The REST API and admin Interface
1 stars 2 forks source link

fixes non working security check #15

Closed ri0t closed 3 years ago

github-actions[bot] commented 3 years ago

Django Security Check identified issues: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(args, *options) File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/check.py", line 63, in handle self.check( File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.9/site-packages/django/core/checks/translation.py", line 43, in check_settinglanguages for tag, in settings.LANGUAGES if not isinstance(tag, str) or not language_code_re.match(tag) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/github/workspace/manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 367, in run_from_argv connections.close_all() File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 208, in close_all for alias in self: File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 73, in iter return iter(self.settings) File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 45, in settings self._settings = self.configure_settings(self._settings) File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 144, in configure_settings databases = super().configure_settings(databases) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 50, in configure_settings settings = getattr(django_settings, self.settings_name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import * ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

github-actions[bot] commented 3 years ago

Django Security Check identified issues: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(args, *options) File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/check.py", line 63, in handle self.check( File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.9/site-packages/django/core/checks/translation.py", line 43, in check_settinglanguages for tag, in settings.LANGUAGES if not isinstance(tag, str) or not language_code_re.match(tag) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/github/workspace/manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 367, in run_from_argv connections.close_all() File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 208, in close_all for alias in self: File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 73, in iter return iter(self.settings) File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 45, in settings self._settings = self.configure_settings(self._settings) File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 144, in configure_settings databases = super().configure_settings(databases) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 50, in configure_settings settings = getattr(django_settings, self.settings_name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import * ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

github-actions[bot] commented 3 years ago

Django Security Check identified issues: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(args, *options) File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/check.py", line 63, in handle self.check( File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.9/site-packages/django/core/checks/translation.py", line 43, in check_settinglanguages for tag, in settings.LANGUAGES if not isinstance(tag, str) or not language_code_re.match(tag) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/github/workspace/manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 367, in run_from_argv connections.close_all() File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 208, in close_all for alias in self: File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 73, in iter return iter(self.settings) File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 45, in settings self._settings = self.configure_settings(self._settings) File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 144, in configure_settings databases = super().configure_settings(databases) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 50, in configure_settings settings = getattr(django_settings, self.settings_name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import * ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

ri0t commented 3 years ago

weil die checks nicht mit der geupdateten version laufen, merge ich das mal :cry:

github-actions[bot] commented 3 years ago

Django Security Check identified issues: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(args, *options) File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/check.py", line 63, in handle self.check( File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.9/site-packages/django/core/checks/translation.py", line 43, in check_settinglanguages for tag, in settings.LANGUAGES if not isinstance(tag, str) or not language_code_re.match(tag) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import ModuleNotFoundError: No module named 'wepublic_backend.settings_local'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/github/workspace/manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 367, in run_from_argv connections.close_all() File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 208, in close_all for alias in self: File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 73, in iter return iter(self.settings) File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 45, in settings self._settings = self.configure_settings(self._settings) File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 144, in configure_settings databases = super().configure_settings(databases) File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 50, in configure_settings settings = getattr(django_settings, self.settings_name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/github/workspace/wepublic_backend/settings.py", line 222, in from wepublic_backend.settings_local import * ModuleNotFoundError: No module named 'wepublic_backend.settings_local'