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

Classmethod error #5

Open
jarrodlatshaw opened this issue May 22, 2022 · 2 comments
Open

Classmethod error #5

jarrodlatshaw opened this issue May 22, 2022 · 2 comments

Comments

@jarrodlatshaw
Copy link

When publishing an article I receive the following: "never_cache didn't receive an HttpRequest. If you are decorating a classmethod, be sure to use @method_decorator." Looking through the code there are static decorators. Am I missing something here? Is this user error? Anyone else getting this?

@garrrikkotua
Copy link
Owner

@jarrodlatshaw which Django version are you using? I guess something newer than 3.1.3?

@garrrikkotua
Copy link
Owner

The project is a bit old, so the Django version is not newest - I guess the problem might be there.

The best option is to use version specified in requirements (3.1.3). But, if you already have a newer version of Django, the best option would be to use virtual env. So before making pip install -r requirements.txt, you should python3 -m venv venv, then cd venv and activate your virtual environment (depends on OS how to do it). Finally, after virtual env is activated, you can make pip install -r requirements.txt

Hope it helps!

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