Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Wordpress and Django together

I host my Django site Wantbox.com on Dreamhost. I'd like to use Wordpress for the Wantbox blog and locate it here: http://wantbox.com/blog/

How do I configure Django to lay off "/blog/" so Wordpress can do it's thing? Right now, I have a catch-all url pattern which sends anything not specified to the homepage and this catch-all is catching "/blog/" and doing just that.

Thanks for your help!

UPDATE: It's not necessary for Django data to be accessible by Wordpress or vica-versa. Also, I'm open to a Django-based blog solution, if it works as well as the tried-and-true Wordpress that I'm quite familiar with.

like image 959
mitchf Avatar asked Sep 18 '25 09:09

mitchf


1 Answers

I found via Google a similar SO question here. The answer is to create an .htaccess file in the root of your new blog folder. In my case, the blog root directory 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 handled by Wordpress. Very nice.

like image 193
mitchf Avatar answered Sep 21 '25 02:09

mitchf