[Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] mod_wsgi (pid=795): Target WSGI script '/home/yongzhen/workspace/www/iStore/ apache/django.wsgi' cannot be loaded as Python module. [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] mod_wsgi (pid=795): Exception occurred processing WSGI script '/home/yongzhen/ workspace/www/iStore/apache/django.wsgi'. [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] Traceback (most recent call last): [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] File "/home/ yongzhen/workspace/www/iStore/apache/django.wsgi", line 5, in <module> [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] wsgi_dir=os.path.abspath(os.path.dirname(_file_)) [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] NameError: name '_file_' is not defined
On 3月29日, 下午8时43分, [email protected] wrote: > Which error you have? > Envoyé par mon BlackBerry® smartphone de Tigo > > > > -----Original Message----- > From: yongzhen zhang <[email protected]> > > Sender: [email protected] > Date: Tue, 29 Mar 2011 05:41:40 > To: Django users<[email protected]> > Reply-To: [email protected] > Subject: develop to product > > HI, > I want to move development version to product version and i use Apache > with wsgi. > In apache2/sites-available folder, i made one istore instead the > default one. The content is: > NameVirtualHost *:80 > > <VirtualHost *:80> > ServerAdmin webmaster@localhost > > ServerNamewww.imaboy.cn > ServerAlias shop.imaboy.cn > Alias /static /home/yongzhen/workspace/www/iStore/static > > DocumentRoot /home/yongzhen/workspace/www/iStore > WSGIScriptAlias / /home/yongzhen/workspace/www/iStore/apache/ > django.wsgi > > ErrorLog /var/log/apache2/error.log > LogLevel warn > > CustomLog /var/log/apache2/access.log combined > </VirtualHost> > and in the sites-enabled folder i made the link to istore. > But the problem is when i restart apache2, there is some warning: > > * Restarting web server pache2 > [Tue Mar 29 15:38:21 2011] [warn] NameVirtualHost *:80 has no > VirtualHosts > ... waiting [Tue Mar 29 15:38:22 2011] [warn] NameVirtualHost *:80 > has no VirtualHosts > > After that the server for PHP does not work:http://www.imaboy.cn/ > Does anyone know how to fix it? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

