Category: Django

  • Deploy Django in Sub-Directory behind uWSGI and NGINX on CentOS 7

    Deploy Django in Sub-Directory behind uWSGI and NGINX on CentOS 7

    It took me awhile to deploy Django in sub-directory. Actually, I move it from sub-domain to sub-directory. I hope this post will save you some hours searching the Internet. Prerequisite or situation You are running Django in sub-domain, another domain and you want to move it to a sub-directory. You’re properly having issue with urlpatterns […]

  • Django with MariaDB Troubleshoot

    Django with MariaDB Troubleshoot

    If you are struggling with below error while deploying Django on VPS, this post may help and save you hours for MariaDB Troubleshoot. Did you install mysqlclient or MySQL-python? OSError: mysql_config not found ModuleNotFoundError: No module named ‘ConfigParser’ This is my 2nd times try out Django with MariaDB. The 1st one went smoothly. Couple of […]

  • Setup Django behind uWSGI and NGINX on CentOS 7

    Setup Django behind uWSGI and NGINX on CentOS 7

    Setting up a web server for Django could be challenging and headache. Let’s try to make it simple: Django behind uWSGI and NGINX on CentOS 7 from scratch. At the end, our complete stack of components will look like this: the web client <-> the web server <-> the socket <-> uwsgi <-> Django 1. Install […]