diff --git a/dpaste/views.py b/dpaste/views.py index ff71c89..11d05ea 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -209,10 +209,10 @@ def snippet_gist(request, snippet_id): # pragma: no cover """ snippet = get_object_or_404(Snippet, secret_id=snippet_id) data = { - 'description': 'the description for this gist', + 'description': getattr(settings, 'DPASTE_DEFAULT_GIST_DESCRIPTION', 'the description for this gist'), 'public': False, 'files': { - 'dpaste.de_snippet.py': { + getattr(settings, 'DPASTE_DEFAULT_GIST_NAME', 'dpaste.de_snippet.py'): { 'content': snippet.content, } }