{% load staticfiles %} {% block title %}{% endblock %} {% if dummy_gallery %} {% include "user_media/partials/image_upload.html" with c_type=gallery_ctype object=dummy_gallery %} {% include "user_media/partials/image_upload_scripts.html" %} {% else %} Add a gallery to the database first. {% endif %}