Hey Team,
Please someone help.
I am still getting error ImportError: No module named django.core.wsgi
mentioned below is my latest vhost file in ubuntu.
<VirtualHost *:80>
WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
ServerName firstweb.com
ServerAlias www.firstweb.com
<Directory /var/www/firstweb/firstweb/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
CustomLog /var/log/apache2/firstweb-access.log combined
ErrorLog /var/log/apache2/firstweb-error.log
</VirtualHost>
Earlier I missed WSGIScriptAlias argument.
Regards,
Sarfaraz Ahmed
On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
-- Please someone help.
I am still getting error ImportError: No module named django.core.wsgi
mentioned below is my latest vhost file in ubuntu.
<VirtualHost *:80>
WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
ServerName firstweb.com
ServerAlias www.firstweb.com
<Directory /var/www/firstweb/firstweb/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
CustomLog /var/log/apache2/firstweb-access.log combined
ErrorLog /var/log/apache2/firstweb-error.log
</VirtualHost>
Earlier I missed WSGIScriptAlias argument.
Regards,
Sarfaraz Ahmed
On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
Hello Friends,
Please help me with this.
I am new to linux and I am attempting to deploy my trial app on AWS ubuntu server.
my vhost file looks like this
<VirtualHost *:80>
WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
WSGIPythonPath /var/www/firstweb
ServerName firstweb.com
ServerAlias www.firstweb.com
<Directory /var/www/django_project/firstweb>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
now when I add WSGIPythonPath.. my apache fails to restart.
If I remove that that I get following error when I try to access this from my computer.
ImportError: No module named django.core.wsgi
Now, I searched on the web and found following link
https://www.webforefront.com/django/ setupapachewebserverwsgi.html
which has some solution which I am not able to understand so far.
after wasting my time in attempting to deploy on windows server. everyone suggested me to deploy on linux.
I M NOT USING virualenv.
Thanks in advance.
Regards,
Sarfaraz Ahmed
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/94766b53-7500-4b9a-9a82-fc99f5af3e8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment