Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

task WI-46: Setup CMS using django-csp - merge main 2023 11 13 #745

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Nov 13, 2023

Overview

Status

Warning
TypeError: issubclass() arg 1 must be a class

I fear django-csp 3.7 (latest) is incompatible with Django 4. Maybe a main branch commit is compatible.

core_cms                | [DJANGO] INFO 2023-11-13 16:28:00,399 UTC autoreload django.utils.autoreload.run_with_reloader:668: Watching for file changes with StatReloader
core_cms                | Exception in thread django-main-thread:
core_cms                | Traceback (most recent call last):
core_cms                |   File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
core_cms                |     self.run()
core_cms                |   File "/usr/local/lib/python3.8/threading.py", line 870, in run
core_cms                |     self._target(*self._args, **self._kwargs)
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
core_cms                |     fn(*args, **kwargs)
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
core_cms                |     autoreload.raise_last_exception()
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
core_cms                |     raise _exception[1]
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 394, in execute
core_cms                |     autoreload.check_errors(django.setup)()
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
core_cms                |     fn(*args, **kwargs)
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
core_cms                |     apps.populate(settings.INSTALLED_APPS)
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate
core_cms                |     app_config = AppConfig.create(entry)
core_cms                |   File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 197, in create
core_cms                |     if not issubclass(app_config_class, AppConfig):
core_cms                | TypeError: issubclass() arg 1 must be a class

@wesleyboar wesleyboar changed the title Task/wi 46 csp http header merge main 2023 11 13 Task/wi 46 csp http header - merge main 2023 11 13 Nov 13, 2023
@wesleyboar wesleyboar changed the title Task/wi 46 csp http header - merge main 2023 11 13 task WI-46: Setup CMS using django-csp - merge main 2023 11 13 Nov 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants