Integrate Django into a static html website

Not so long ago I had to add some dynamic stuff to a static website, but I didn’t wanted to rewrite the whole website just because three or four pages and also didn’t wanted to use PHP (because nowadays I prefer to work with Django an Python over PHP and some framework, in other words, personal taste). This describes how I managed to mix the dynamic and static parts easily

I configured the server to use django into a directory , lets cal it webapp
so any request to /webapp/ will be answered by my django app
then used mod_rewrite to have some pages outside the /webapp/ directory served by my app
did you ever found a better way to do this?

Leave a Reply

Your email address will not be published. Required fields are marked *