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

Does not run under Django 4.0.x #3

Open
nephros opened this issue Mar 1, 2022 · 2 comments
Open

Does not run under Django 4.0.x #3

nephros opened this issue Mar 1, 2022 · 2 comments

Comments

@nephros
Copy link
Contributor

nephros commented Mar 1, 2022

  File "/home/www/test/htdocs/pm2/example/demo/apps.py", line 2, in <module>
    from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3.9/site-packages/django/utils/translation/__init__.py)

Reason: ugettext_lazy is deprecated in newer django versions.
Apparently can be fixed by using gettext_lazy but haven't tried.

See also:

@CODeRUS
Copy link
Owner

CODeRUS commented Mar 1, 2022

thats true, patchmanager catalog is using Django 2.1.5 version
if you want to keep it running on latest version you have to modify code.

@nephros
Copy link
Contributor Author

nephros commented Mar 1, 2022

Yeah, it's not immediately necessary to change it, just wanted to document what could be done.

Django 3.x works too btw.

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

2 participants