Hi,
That line uses a relative import that shouldn't throw that error ("from
__future__ import absolute_import" is even included at the top of the
module to support previous versions going back to Python 2.5). Try running
from the command line with:
./manage.py runserver
after activating the virtualenv with:
source <path to Mayan>
And see if that throws more light in to the error.
--Roberto
On Monday, January 14, 2013 12:58:45 PM UTC-4, Pavan wrote:
>
> I am trying to deploy mayan-edms <http://www.mayan-edms.com/> a django
> web application on a RedHat5.6 server in production mode with apache
> webserver.
>
> I have setup the database and the used a virtual-env to setup the env
>
> This is my httpd.conf
>
> WSGIScriptAlias /mayan /var/www/mayan/mayan/wsgi/dispatch.wsgiWSGIPythonPath
> /var/www/mayan/mayan:/var/www/mayan/lib/python2.6/site-packages<Directory
> /var/www/mayan/mayan><Files wsgi.py>Order deny,allowAllow from all</Files>
> </Directory>
>
> I am getting a 500 error if I start apache with this conf. Could anyone
> tell me where it is getting misconfigured?
>
> This is the error
>
> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] mod_wsgi
> (pid=21715): Exception occurred processing WSGI script
> '/var/www/mayan/mayan/wsgi/dispatch.wsgi'.[Mon Jan 14 12:47:02 2013] [error]
> [client 130.229.146.48] Traceback (most recent call last):[Mon Jan 14
> 12:47:02 2013] [error] [client 130.229.146.48] File
> "/var/www/mayan/lib/python2.6/site-packages/django/core/handlers/wsgi.py",
> line 250, in __call__[Mon Jan 14 12:47:02 2013] [error] [client
> 130.229.146.48] self.load_middleware()[Mon Jan 14 12:47:02 2013] [error]
> [client 130.229.146.48] File
> "/var/www/mayan/lib/python2.6/site-packages/django/core/handlers/base.py",
> line 45, in load_middleware[Mon Jan 14 12:47:02 2013] [error] [client
> 130.229.146.48] mod = import_module(mw_module)[Mon Jan 14 12:47:02 2013]
> [error] [client 130.229.146.48] File
> "/var/www/mayan/lib/python2.6/site-packages/django/utils/importlib.py", line
> 35, in import_module[Mon Jan 14 12:47:02 2013] [error] [client
> 130.229.146.48] __import__(name)[Mon Jan 14 12:47:02 2013] [error]
> [client 130.229.146.48] File
> "/var/www/mayan/mayan/apps/common/__init__.py", line 17[Mon Jan 14 12:47:02
> 2013] [error] [client 130.229.146.48] from .conf.settings import
> (AUTO_CREATE_ADMIN, AUTO_ADMIN_USERNAME,[Mon Jan 14 12:47:02 2013] [error]
> [client 130.229.146.48] ^[Mon Jan 14 12:47:02 2013] [error] [client
> 130.229.146.48] SyntaxError: invalid syntax
>
>
--