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 which may lead to code revise. However you still want to keep your code same.
Deploy Django in sub-directory
If you are running Django, along with WordPress, on a VPS like me, you only need to update NginX & uWSGI configuration files.
NginX configuration file
Wrap it up
Here you go demo: https://www.vndeveloper.com/django-demo/
That’s it. There are only few things from configuration files. You may also want to check out Setup Django behind uWSGI and NGINX on CentOS 7 to understand how to configure at server side.