dpaste/dpaste/urls
Juanjo Gutiérrez 5510329a99
add the posibility of specifying a url prefix (#143)
this commit implements a prefix for urls, which allows easily deploying
dpaste into a "subdirectory". It adds a url_prefix to be read by default
from the environment which makes it especially suitable for using for
docker containers. For example, running

docker run -e PREFIX_URL=dpaste/ -p 8000:8000 barttc/dpaste

will make dpaste available on

http://localhost:8000/dpaste/

instead of the default http://localhost:8000

This is specially useful if you want to proxy dpaste from another host
and let it live in a sub-url. Without this commit all urls would be
incorrectly generated in this case.
2022-05-27 20:17:08 -04:00
..
__init__.py add the posibility of specifying a url prefix (#143) 2022-05-27 20:17:08 -04:00
dpaste.py Cache Fixes, Django 4.0 Update 2021-12-13 11:00:40 +01:00
dpaste_api.py Code cleanup 2021-12-14 08:39:08 +01:00