Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for custom sessions #316

Open
marcosmoyano opened this issue Dec 9, 2024 · 0 comments · May be fixed by #317
Open

Add support for custom sessions #316

marcosmoyano opened this issue Dec 9, 2024 · 0 comments · May be fixed by #317

Comments

@marcosmoyano
Copy link

When trying to use an application such as django-user-sessions the project fails to load with a traceback that looks like this:

  File "/home/marcos/workspace/virtualenvs/test/lib/python3.12/site-packages/easyaudit/admin.py", line 11, in <module>
    from .admin_helpers import EasyAuditModelAdmin, prettify_json
  File "/home/marcos/workspace/virtualenvs/test/lib/python3.12/site-packages/easyaudit/admin_helpers.py", line 13, in <module>
    from .settings import READONLY_EVENTS, TRUNCATE_TABLE_SQL_STATEMENT
  File "/home/marcos/workspace/virtualenvs/test/lib/python3.12/site-packages/easyaudit/settings.py", line 8, in <module>
    from django.contrib.sessions.models import Session
  File "/home/marcos/workspace/virtualenvs/test/lib/python3.12/site-packages/django/contrib/sessions/models.py", line 8, in <module>
    class Session(AbstractBaseSession):
  File "/home/marcos/workspace/virtualenvs/test/lib/python3.12/site-packages/django/db/models/base.py", line 134, in __new__
    raise RuntimeError(
RuntimeError: Model class django.contrib.sessions.models.Session doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

Python version: 3.12.7
Django version: 5.0.6
django-easy-audit version: 1.3.7

marcosmoyano added a commit to marcosmoyano/django-easy-audit that referenced this issue Dec 9, 2024
@marcosmoyano marcosmoyano linked a pull request Dec 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant