Tell about curl.
This commit is contained in:
parent
3c94782adf
commit
40075e04e1
|
@ -70,7 +70,8 @@
|
|||
{% csrf_token %}
|
||||
<button class="btn" type="submit">{% trans 'Paste' %}</button>
|
||||
<input type="hidden" id="max_characters" value="{{ max_characters }}">
|
||||
</form>
|
||||
</form>
|
||||
<div class="alert alert-info" role="alert">You can also use: <pre>curl {{ absolute_index_url }} -Ffile=@hello.py</pre></div>
|
||||
{% endblock %}
|
||||
{% block javascript %}
|
||||
{% if PASTE.show_char_left %}
|
||||
|
|
|
@ -41,6 +41,7 @@ def index(request):
|
|||
'private': settings.PASTE['private_by_default'],
|
||||
'lifetime': settings.PASTE['default_lifetime'],
|
||||
'language': 14})
|
||||
data['absolute_index_url'] = request.build_absolute_uri(reverse('index'))
|
||||
return render(request, 'paste/index.html', data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue