-
Notifications
You must be signed in to change notification settings - Fork 58
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
Django 4.0 Support #62
Comments
Would be great |
In Signals.py, you just need to change it to say: message_sent = Signal() I checked the rest of the code and do not believe it needed more than that to work. default_app_config = 'pinax.messages.apps.AppConfig' should be removed as it is redundant at this point in Django 4. Hopefully one of the Devs can push out this change quickly as it is a minute of time to make these changes. |
I forked the package and made the changes so that it is now Django 4.0 compatible. Please see the following repo if you need to use the pinax-messages package with Django 4.0 https://github.com/ICSGrade/ics-pinax-messages |
File "C:\Users\Lanre Adetoro\Desktop\Dev\Lanlod\landvenv\lib\site-packages\pinax\messages\urls.py", line 1, in @ICSGrade i got this error using your build |
Are you on Django 4.0? I’ll try and look at this later today and update the code. |
Yes I am. It might interest you to look at this thanks |
OK I believe this is working properly now.... Try to pip install --upgrade -e git+git://github.com/ICSGrade/ics-pinax-messages@c9bfa6f#egg=pinax-messages . If there are any more issues then please let me know and I can try and fix them. |
@ICSGrade
Any thoughts? |
For me it installed with |
#63 anyone interested? |
Currently there are two items in the pinax-messages that are depreciated in Django 4.0/4.1.
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'pinax.messages' defines default_app_config = 'pinax.messages.apps.AppConfig'. Django now detects this configuration automatically. You can remove default_app_config.
app_config = AppConfig.create(entry)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pinax/messages/signals.py:3: RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring.
message_sent = Signal(providing_args=["message", "thread", "reply"])
System check identified no issues (0 silenced).
Can someone update the code to make this package work with 4.0?
The text was updated successfully, but these errors were encountered: