Hello everybody! I just started to learn Django this 2021 and still learning the basis.
I already have a Wordpress site and want to make a Django app in the same hosting and domain (keeping the Wordpress site). What should I do for avoiding that the urls don’t conflict?
Thanks in advance!
Hopefully you’ve got sufficient control over the web server sitting in front of the Wordpress site to be able to direct requests to two different places based on the URL. If so, then you can identify which URL your Django app sits under, and direct everything at that URL and below to Django.
(For example, you might want to define your urls such that http://example.com/wp/… is everything associated with WordPress and http://example.com/dj/… is your Django installation.)
The precise method for doing this is going to depend upon what web server (nginx, apache, lightspeed, etc) and Django wsgi container (uwsgi, gunicorn, etc) you’re going to use.
So many thanks Ken! My web server is Apache, I have to check the Django wsgi container and then try the way you say