-
Notifications
You must be signed in to change notification settings - Fork 6
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
TypeError: ModelTrackerMiddleware() takes no arguments #4
Comments
When do you get the error? During running the server or when you try accessing a view? Can you share the MIDDLEWARE setting? |
I get it when accessing the server, the page doesn't matter. Middleware setting? I added 'ModelTracker.middleware.ModelTrackerMiddleware', to my settings.py |
I checked and it is working fine. Which version of the django-model-tracker are you using? |
Version 2.0.3 By the way, I am more looking for a way to log to the db, I don't need any views or urls. Could I simply not include the urls? |
For urls . Yes you can do that I'll try a new project tomorrow and let you know |
Hello,
and let me know if it fixed the issue so I can release it. |
Haven't tested all the way but looks good so far. |
Hi,
trying to get the middleware to work, I am getting the following error:
Traceback (most recent call last):
wsgi.py, line 16, in
application = get_wsgi_application()
env/lib/python3.8/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
return WSGIHandler()
env/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 118, in init
self.load_middleware()
env/lib/python3.8/site-packages/django/core/handlers/base.py", line 61, in load_middleware
mw_instance = middleware(adapted_handler)
TypeError: ModelTrackerMiddleware() takes no arguments
Using Django 4.2.3 and python 3.8.10
The text was updated successfully, but these errors were encountered: