urlpatterns = patterns('picture.views',
# pictures - currently pictures are coupled with catalogue, hence the url is here
- url(r'^obraz/?$', 'picture_list_thumb', name='picture_list_thumb'),
+ url(r'^obraz/$', 'picture_list_thumb', name='picture_list_thumb'),
url(r'^obraz/(?P<slug>%s).html$' % SLUG, 'picture_viewer', name='picture_viewer'),
- url(r'^obraz/(?P<slug>%s)/?$' % SLUG, 'picture_detail'),
+ url(r'^obraz/(?P<slug>%s)/$' % SLUG, 'picture_detail'),
)
{% block content %}
<form action="{% url 'import_picture' %}" method="post" enctype="multipart/form-data">
+ {% csrf_token %}
<p>XML: <input type="file" id="id_picture_xml_file" name="picture_xml_file" /><br/>
{% trans "Image" %}: <input type="file" id="id_picture_image_file" name="picture_image_file" /><br/>
<input type="submit" value="{% trans "Import picture" %}"/></p>
{% if picture.image_file %}
<span><a href="{{ picture.image_file.url}}">JPG</a> {% trans "original" %}</span>
{% endif %}
- </div>-->
- </li>
+ </div>
+ </li>-->
</ul>
{% block book-box-extra-info %}{% endblock %}
{% block box-append %}
{% endblock %}
{% block right-column %}
{% endblock %}
- <div class="clearboth"/>
+ <div class="clearboth"></div>
</div>
</div>
PIPELINE_COMPILERS = (
'pyscss_compiler.PySCSSCompiler',
)
-PIPELINE_PYSCSS_BINARY = '/usr/bin/env /home/staging/wolnelektury.pl/ve/bin/pyscss'
+PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
PIPELINE_PYSCSS_ARGUMENTS = ''