{% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <title>Django Stick Uploads Example</title>
</head>
<body>
    {% if messages %}
        {% for message in messages %}
            <div class="message {{ messsage.tags }}">{{ message }}</div>
        {% endfor %}
    {% endif %}
    <form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
        {% csrf_token %}
        {{ form }}
        <button type="submit">Submit</button>
    </form>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#id_upload').djangoUploader({
                "url": "{% url 'sticky-upload-default' %}"
            });
        });
    </script>
</body>
</html>
{% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <title>Django Stick Uploads Example</title>
</head>
<body>
    {% if messages %}
        {% for message in messages %}
            <div class="message {{ messsage.tags }}">{{ message }}</div>
        {% endfor %}
    {% endif %}
    <form action="." method="post" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
        {% csrf_token %}
        {{ form }}
        <button type="submit">Submit</button>
    </form>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="{% static 'stickyuploads/js/django-uploader.js' %}"></script>
</body>
</html>
Update example code which no longer needs to do the binding.
Update example code which no longer needs to do the binding.
