开发者

How to use Wordpress and Django together

I host my Django site Wantbox.com on Dreamhost. I'd like to use Wordpress for the Wantb开发者_如何学运维ox 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜