diff --git a/dpaste/context_processors.py b/dpaste/context_processors.py index f4dbefa..98939ef 100644 --- a/dpaste/context_processors.py +++ b/dpaste/context_processors.py @@ -2,6 +2,7 @@ from django.conf import settings def dpaste_globals(request): return { + 'site_url': getattr(settings, 'DPASTE_BASE_URL', 'https://dpaste.de'), 'site_name': getattr(settings, 'DPASTE_SITE_NAME', 'dpaste.de'), 'jquery_url': getattr(settings, 'DPASTE_JQUERY_URL', 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'), diff --git a/dpaste/templates/dpaste/about.html b/dpaste/templates/dpaste/about.html index aee113d..e527a22 100644 --- a/dpaste/templates/dpaste/about.html +++ b/dpaste/templates/dpaste/about.html @@ -37,14 +37,14 @@ on this page. For a quick start here is a code example (Python 2.x):
{# Just put the script in dpaste and copy the source node #} -Save this script in /usr/local/bin/dpaste
and give it the executable bit: chmod +x /usr/local/bin/dpaste
.
Usage: cat foo.txt | dpaste
An alternative would be to just use curl
:
- alias dpaste="curl -F 'content=<-' https://dpaste.de/api/"
alias dpaste="curl -F 'content=<-' {{ site_url }}/api/"
Type the 4 letter code of your snippet in the field and submit. - Like this yellow one here: http://dpaste.de/SiZrT + Like this yellow one here: {{ site_url }}/SiZrT