Error Importing Middleware Django.middleware.common
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImproperlyConfigured: Error importing middleware django.middleware.user up vote 0 down vote favorite I have just installed django-cms with pip install, and now, when I try to access the admin page, am getting the following error with no luck with using other solutions to this problem (many that involved changing path variable) for the past few hours Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/flup- 1.0.3.dev_20110405- py2.6.egg/flup/server/fcgi_base.py", line 574, in run protocolStatus, appStatus = self.server.handler(self) File "/usr/lib/python2.6/site-packages/flup-1.0.3.dev_20110405-py2.6.egg/flup/server/fcgi_base.py", line 1159, in handler result = self.application(environ, start_response) File "/home/mcgillme/lib/python2.6.6/site-packages/Django-1.4.10-py2.6.egg/django/core/handlers/wsgi.py", line 219, in __call__ self.load_middleware() File "/home/mcgillme/lib/python2.6.6/site-packages/Django-1.4.10-py2.6.egg/django/core/handlers/base.py", line 47, in load_middleware raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) ImproperlyConfigured: Error importing middleware django.middleware.page: "No module named page" Status: 500 Internal Server Error Content-Type: text/html I looked through other solutions, so I checked my cms installation - the folder middleware exists and contains an _init.py file. $PATH and $PYTHONPATH seem to include the cms as well, because, for example this works: Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cms >>> import django.middleware >>> import django.middleware.page Traceback (most recent call last): File "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting http://stackoverflow.com/questions/21107282/improperlyconfigured-error-importing-middleware-django-middleware-user ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: http://stackoverflow.com/questions/9355334/improperlyconfigured-error-importing-middleware-pp-middleware-no-module-named Sign up ImproperlyConfigured: Error importing middleware pp.middleware: “No module named pp.middleware” up vote 4 down vote favorite im new to django and python , im trying to do runserver on a piece of django code and im running into the following problems, Kinnovates-MacBook-Pro:platformsite Kinnovate$ python manage.py runserver Running in development mode. Running in development mode. Running in development mode. Running in development mode. Validating models... 0 errors found Django version 1.4b1, using settings 'platformsite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__ return self.application(environ, start_response) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__ self.load_middleware() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py", line 47, in load_
here for a quick overview of the site Help Center Detailed answers to any questions you http://stackoverflow.com/questions/34856078/improperlyconfigured-error-importing-middleware-indivo-server-indivo-middleware might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of error importing 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImproperlyConfigured: Error importing middleware indivo_server.indivo.middlewares.authentication: "cannot import name HTTPRequest up vote 0 down vote favorite I am building proof of concept with Indivohealth on ubuntu 14.10. I have installed both server and UI with Mysql. http://indivo.smartrx.in:8002 error importing middleware -- UI server url http://indivo.smartrx.in:8001 -- Indivo server url [ This shows internal server error and given below were the logs] [Mon Jan 18 12:48:23.888096 2016] [:error] [pid 28663] [client IP:39138] mod_wsgi (pid=28663): Exception occurred processing WSGI script '/var/www/html/sample/indivo_server/django.wsgi'. [Mon Jan 18 12:48:23.888199 2016] [:error] [pid 28663] [client IP:39138] Traceback (most recent call last): [Mon Jan 18 12:48:23.888253 2016] [:error] [pid 28663] [client IP:39138] File "/var/www/html/sample/indivo_server/django.wsgi", line 40, in __call__ [Mon Jan 18 12:48:23.888399 2016] [:error] [pid 28663] [client IP:39138] return self.application(environ, _start_response) [Mon Jan 18 12:48:23.888435 2016] [:error] [pid 28663] [client IP:39138] File "/var/www/html/sample/indivo_env/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__ [Mon Jan 18 12:48:23.888631 2016] [:error] [pid 28663] [client IP:39138] self.load_middleware() [Mon Jan 18 12:48:23.888673 2016] [:error] [pid 28663] [client IP:39138] File "/var/www/html/sample/indivo_env/lib/python2.7/site-packages/django/core/handlers/base.py", line 47, in load_middleware [Mon Jan 18 12:48:23.888950 2016] [:error] [pid 28663] [client IP:39138] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) [Mon Jan 18 12:48:23.888998 2016] [:error] [pid 28663] [client IP:39138] ImproperlyConfigured: Error importing middleware