mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Merge branch 'master' of github.com:bartTC/dpaste
This commit is contained in:
commit
8142f3476b
3 changed files with 7 additions and 11 deletions
|
@ -29,8 +29,6 @@ class NakedHtmlFormatter(HtmlFormatter):
|
|||
|
||||
def pygmentize(code_string, lexer_name=LEXER_DEFAULT):
|
||||
lexer_name = LEXER_LIST_NAME.get(lexer_name, None)
|
||||
|
||||
print lexer_name
|
||||
try:
|
||||
if lexer_name:
|
||||
lexer = get_lexer_by_name(lexer_name)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{% extends "dpaste/base.html" %}
|
||||
|
||||
{% block headline %}
|
||||
<h1>404 Not found</h1>
|
||||
{% endblock %}
|
||||
{% block title %}404 Not found{% endblock %}
|
||||
{% block headline %}404 Not found{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block page %}
|
||||
<p>Snippet you have searched is not available (anymore).</p>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{% extends "dpaste/base.html" %}
|
||||
|
||||
{% block headline %}
|
||||
<h1>500 Internal Server Error</h1>
|
||||
{% endblock %}
|
||||
{% block title %}500 Internal Server Error{% endblock %}
|
||||
{% block headline %}500 Internal Server Error{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Sorry, there was an error with your request. My fault!</p>
|
||||
{% block page %}
|
||||
<p>Sorry, there was an error with your request. The server notified the admin via email.</p>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue