Commit graph

15 commits

Author SHA1 Message Date
Darren
51e9172479
Revert "Revert "add the posibility of specifying a url prefix"" (#206)
* Revert "Revert "add the posibility of specifying a url prefix (#143)" (#205)"

* mysql client
2022-05-29 13:56:56 -04:00
Darren
5ec8e0507e
Revert "add the posibility of specifying a url prefix (#143)" (#205)
This reverts commit 5510329a99.
2022-05-29 09:40:46 -04:00
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
Martin Mahner
49ca2d7631 Cache Fixes, Django 4.0 Update 2021-12-13 11:00:40 +01:00
Martin Mahner
e54790c8f9 Quote cleanup, fStrings and Deprecation fixes. 2019-12-07 07:20:52 +01:00
Martin Mahner
34b970cf5d New AppConfig settings APPLICATION_NAME and EXTRA_HEAD_HTML 2019-12-05 11:36:24 +01:00
Martin Mahner
d2a704c075 Code Updates for Django 1.8+ 2016-03-23 14:02:19 +01:00
Martin Mahner
ea27bf9e0f Language support! 2014-10-28 11:22:43 +01:00
Martin Mahner
fb5bef707f Moved about page to 'paste' to fix 3rd party integration. 2013-11-29 18:46:11 +01:00
Martin Mahner
14d014bcba Fixed urlpattern warning. 2013-11-24 19:46:47 +01:00
Martin Mahner
368c8101ce Now that there is no admin anymore I need a quick way to check the total snippet count, to see if something goes wrong or I'm DOSed. 2013-03-22 19:33:11 +01:00
Martin Mahner
1e0b32b7d1 Removed Django admin. It was never useful anyway. 2013-03-21 19:40:48 +01:00
Martin Mahner
4183c58cdd Upgraded to Django 1.5. Fixed urls and paths 2013-03-19 14:46:06 +01:00
Martin Mahner
11b582cc6c Custom error views to load dpaste error templates. 2013-03-19 14:18:43 +01:00
Martin Mahner
9593853696 Splittet urlpatterns into several files. Will make it much easier to implement this as an app into an existing project. 2013-03-19 14:06:26 +01:00