How to use Wordpress and Django together

I host Django Wantbox.com on Dreamhost. I would like to use Wordpress for the Wantbox blog and find it here: http://wantbox.com/blog/

How do I configure Django to fire "/ blog /" so Wordpress can do this? Right now I have a url-all url template that sends everything that is not listed on the main page, and this catch-all catches "/ blog /" and does just that.

Thank you for your help!

UPDATE: Django data does not require access to Wordpress or vica-versa. In addition, I am open to a Django-based solution if it works as well as the proven Wordpress, which I am familiar with.

+3
source share
1 answer

I found via Google a similar SO question here . The answer is to create a .htaccess file in the root of your new blog folder. In my case, the root directory of the blog is here: ~ / wantbox.com / public / blog /

My .htaccess file in this directory has one line:

PassengerEnabled off

Now the URL pattern http://wantbox.com/blog/ is ignored by Django and processed by Wordpress. Very nice.

+5
source

Source: https://habr.com/ru/post/1795951/


All Articles