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

Supported Version Django #689

Open
willianmascimiano opened this issue Sep 7, 2022 · 3 comments
Open

Supported Version Django #689

willianmascimiano opened this issue Sep 7, 2022 · 3 comments

Comments

@willianmascimiano
Copy link

What are the supported versions of django to use this library

@fegma59
Copy link

fegma59 commented Nov 4, 2022

Someone can send a answer?
this lib doesn't working in Django 4+???

@LeoBastos
Copy link

I managed to run with python 11 and django 4.1. Below are the files I modified:

PS: I HAVEN'T TESTED ALL THE FUNCTIONALITIES YET, I'VE JUST BEEN ABLE TO RUN AND CREATE THE SCHEMAS FOR MY TESTING LABORATORY.

path => venv > lib > site-packages > tenant_schemas > signals.py

BEFORE

from django.dispatch import Signal
post_schema_sync = django.dispatch.Signal(providing_args=['tenant'])
post_schema_sync.doc = """
Sent after a tenant has been saved, its schema created and synced
"""

AFTER

from django.dispatch import Signal
import django.dispatch

tenant = django.dispatch.Signal()
post_schema_sync = tenant
post_schema_sync.doc = """
Sent after a tenant has been saved, its schema created and synced
"""

Path => Settings.py (default Django)

Adding this imports bellow

import django
from django.utils.encoding import force_str
django.utils.encoding.force_text = force_str

google translate =)

@sandeepbol
Copy link
Contributor

Some additional changes are required for the custom Middleware code and running the test cases. If interested, please take a look at the following PR: #693

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

No branches or pull requests

4 participants