Coder Social home page Coder Social logo

Comments (6)

noxxer avatar noxxer commented on June 3, 2024

right now with version 1.10.4 no fails.

from django-prometheus.

zailaib avatar zailaib commented on June 3, 2024

Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Unhandled exception in thread started by <function wrapper at 0x7f9229f95410>
Traceback (most recent call last):
File "/ve/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/ve/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 142, in inner_run
handler = self.get_handler(*args, **options)
File "/ve/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler
handler = super(Command, self).get_handler(*args, **options)
File "/ve/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 64, in get_handler
return get_internal_wsgi_application()
File "/ve/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 49, in get_internal_wsgi_application
return import_string(app_path)
File "/ve/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 20, in import_string
module = import_module(module_path)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/mysite/mysite/wsgi.py", line 16, in
application = get_wsgi_application()
File "/ve/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
return WSGIHandler()
File "/ve/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 153, in init
self.load_middleware()
File "/ve/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in load_middleware
mw_instance = middleware(handler)
TypeError: object() takes no parameters

from django-prometheus.

paurullan avatar paurullan commented on June 3, 2024

TypeError: object() takes no parameters

It seems to be a compatibility issue. I am working on it and will make a pull request if I make it.

from django-prometheus.

paurullan avatar paurullan commented on June 3, 2024

It was easier than expected: just adding the MiddlewareMixin seems to work.

I made a pull request but as you can see the patch is easy.
#30

from django-prometheus.

paurullan avatar paurullan commented on June 3, 2024

But making it to work on old Djangos seems not to be so straighforward. I will look into it but do not know how easy will be.

from django-prometheus.

korfuri avatar korfuri commented on June 3, 2024

This should all be fixed thanks to #30 and #38. Thanks for the report and contributions everyone!

from django-prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.