Deploying django app singlepoint on domain singlepointfarmer.com getting : Bad Request (400)

August 27, 2017 777 views
Apache

Trying to deploy django app singlepoint on singlepointfarmer.com

<VirtualHost 166.62.39.74:80>
ServerName singlepointfarmer.com
ServerAlias www.singlepointfarmer.com
ServerAdmin tcsams@gmail.com
Alias /static /var/www/singlepoint/static
<Directory /var/www/singlepoint/static>
Require all granted
</Directory>

    <Directory /var/www/singlepoint/singlepoint>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess singlepoint  python-path=/var/www/singlepoint
WSGIProcessGroup  singlepoint
WSGIScriptAlias / /var/www/singlepoint/singlepoint/wsgi.py

</VirtualHost>

Result
http://www.singlepointfarmer.com
Bad Request (400)

Where is my boo-boo ? Please help - thanks

1 Answer

Hello,

I would recommend checking your error logs for some more information. But I believe that the mod_wsgi might be missing. I would recommend following the steps from this tutorial here:

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-centos-7

Regards,
Bobby

by Justin Ellingwood
Django is a powerful web framework that can help you get your Python application or website off the ground quickly. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web...
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!