I have a Django app running on Heroku, and I’d like to add a WordPress blog to it. After some background reading, it seems like the accepted solution for Rails is:
- Deploy a separate Heroku WordPress app solely for your blog
- Use rack-reverse-proxy to redirect
mydomain.com/blog
tomyblog.herokuapp.com
However I have not found an equivalent reverse proxy middleware solution for Django. Does one exist? If not, how would I go about rolling my own?
You don’t need a reverse proxy just to do a redirect. Just use a view.
Create a view:
Attach view to a url in your urls.py file: