i have the  following error, why? Please help me 
ImportError: Could not import settings 'kanre.settings' (Is it on sys.path? 
Is there an import error in the settings file?): No module named 
kanre.settings
ImportError: Could not import settings 'test.settings' (Is it on sys.path? 
Is there an import error in the settings file?): No module named 
test.settings

i' m using : CentOS Django Apache mod_wsgi
and this is my :
 vim /etc/httpd/conf.d/virtualhost.conf

NameVirtualHost *:80

<VirtualHost *:80>
    ServerName test/kanre
    WSGIScriptAlias /test/kanre /var/www/html/test/kanre/kanre/wsgi.py
    SetEnv DJANGO_SETTINGS_MODULE kanre.settings
    <Directory /var/www/html/test/kanre>
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName test
    WSGIScriptAlias /test /var/www/html/test/test/test/wsgi.py
    SetEnv DJANGO_SETTINGS_MODULE test.settings
    <Directory /var/www/html/test/test>
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

 and this is my:
vim /etc/httpd/conf.d/wsgi.conf
WSGIScriptAlias /test/kanre /var/www/html/test/kanre/kanre/wsgi.py

Alias /static/ "/test/kanre/kanre/static/"

WSGIScriptAlias /test /var/www/html/test/test/test/wsgi.py

Alias /static/ "/test/test/test/static/"




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82381a23-4bbe-4c66-919e-ed342af4e5b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to