Hi all,
I'm working on an application where we want the following to happen:
1. The administrators upload zip archives containing web content (whole static websites) through admin interface
2. The archive is unzipped in the background to a random directory
3. The static content is served at a url that looks like http://<host>/site/<pk>/, with the index.html at the root, all the paths to css and js files, etc.
I know how to configure the route, but I was wondering what to put in the view. I have tried with STATIC_{ROOT,URL} and MEDIA_{ROOT,URL} but I feel it's not the right way.
In summary : is there a way to put something like `return serve_this_static_directory()` in the view? or is there any workaround there?
Thanks for your answers
Yann