Error Importing Middleware Cms.middleware.media
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 - th
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 Error http://stackoverflow.com/questions/21107282/improperlyconfigured-error-importing-middleware-django-middleware-user importing middleware cms.middleware.multilingual: “No module named multilingual” up vote 1 down vote favorite Whenever i runserver and go the admin page in my browser i get: A server error occurred. Please contact the administrator. and in Titanium Studio i see: Traceback (most recent call last): File "C:\Python27\lib\wsgiref\handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py", line 72, in call return self.application(environ, start_response) http://stackoverflow.com/questions/16358304/error-importing-middleware-cms-middleware-multilingual-no-module-named-multili File "C:\Python27\lib\site-packages\django\core\handlers\wsgi.py", line 236, in call self.load_middleware() File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 53, in load_middleware raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) ImproperlyConfigured: Error importing middleware cms.middleware.multilingual: "No module named multilingual" [03/May/2013 12:42:06] "GET /favicon.ico/ HTTP/1.1" 500 59 I have installed multilingual and have django_multilingual-0.1.0-py2.7.egg in my site-packages folder. If i print sys.path I have C:\\Python27\\lib\\site-packages\\django_multilingual-0.1.0-py2.7.egg in it. I have cms.middleware.multilingual.MultilingualURLMiddleware in my MIDDLEWARE_CLASSES. django-cms django-multilingual share|improve this question edited May 7 '13 at 22:13 Timmy O'Mahony 32.2k687123 asked May 3 '13 at 11:52 user2346691 62 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote Depending on you Django-cms version you may be approaching it the wrong way. They changed how internationalization is done in 2.4. Have a look at this page. This is the newest method. What you are attempting is from earlier versions, like this page, and that may be correct as long as your version is not the latest. share|improve this answer answered May 4 '13 at 14:59 TheHerk 343311 Many thanks, you were right. I was trying to do internationalization from CMS 2.3 with the latest version
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 http://stackoverflow.com/questions/4911289/improperlyconfigured-error-importing-middleware-django-middleware-common-no-m 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.common: “No module named _md5” up vote 2 down vote favorite I am running Apache2 on error importing Ubuntu 9 with python 2.6.2 installed. I get the following error when I try to access a page on my django application: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))ImproperlyConfigured: Error importing middleware django.middleware.common: "No module named _md5" Here is my wsgi file: import os, sys sys.path.append('/etc/apache2/sites-available/') os.environ['DJANGO_SETTINGS_MODULE'] = 'dynamicuddi.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() From what I've read I think it's a python path problem error importing middleware but I haven't seen an actual solution to this that has worked. Any ideas? Thanks in advance. python django apache ubuntu mod-wsgi share|improve this question asked Feb 6 '11 at 3:11 Przemek 189515 do you use virtualenv? –Carles Barrobés Feb 6 '11 at 16:30 No it's all running on its own box. –Przemek Feb 6 '11 at 17:51 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote Try to append to python path you project directory and parent one sys.path.append('path_to_dynamicuddi_project') sys.path.append('path_to_dynamicuddi_parent_dir') share|improve this answer answered Feb 6 '11 at 3:36 rootart 43424 Where would I put this? In my settings.py file? or in my .bashrc file? –Przemek Feb 6 '11 at 3:58 This is an import problem for a global package, not his project (as the exception comes from django.middleware.common –Yuji 'Tomita' Tomita Feb 6 '11 at 5:10 So I have to add this to .bashrc? but for which user; root? I'm guessing apache runs under root and I would have to add this to the root user? –Przemek Feb 6 '11 at 21:54 add a comment| up vote 1 down vote I don't think this is a pathing issue, like the one here. I think it's finding the django.middleware.common module ju