Skip to content

Commit 214e432

Browse files
committed
Merge remote branch 'upstream/master'
2 parents 3cc36c0 + 9341af1 commit 214e432

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
db
12
/media
2-
/db
33
/bin
44
/include
55
/lib
66
/local
77
/share
8+
/env
89
/venv
9-
db
10-
*.pyc
10+
*.pyc

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a small example on how to setup Sebastian Tschan's jQuery File Upload in
77

88
Here, you'll find a minimal Django project with a minimal app. You can run the example standalone by cloning the repository, running the migrations and starting the server.
99

10-
I want to give a thank to Sebastian Tschan, the original author, and Jørgen Bergquist for helping me over the first hurdles.
10+
I want to give a thank to [Sebastian Tschan](https://github.com/blueimp), the original author, [Etay Cohen-Solal](https://github.com/et-cs), for the latest major update, and [Jørgen Bergquist](https://github.com/bergquis) for helping me over the first hurdles.
1111

1212
Features
1313
========

fileupload/templates/base.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="description" content="File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.">
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1111
<!-- Bootstrap CSS Toolkit styles -->
12-
-<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.min.css">
12+
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.min.css">
1313
<!-- Generic page styles -->
1414
<link rel="stylesheet" href="{{ STATIC_URL }}css/style.css">
1515
<!-- Bootstrap styles for responsive website layout, supporting different screen sizes -->
@@ -53,4 +53,4 @@ <h1>No content set</h1>
5353

5454
{% endblock %}
5555
</body>
56-
</html>
56+
</html>

fileupload/templates/fileupload/picture_form.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ <h2 class="lead">Basic Plus UI version</h2>
4545
<!-- The table listing the files available for upload/download -->
4646
<table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
4747
</form>
48+
<div class="fileupload-content">
49+
<table class="files"></table>
50+
<div class="fileupload-progressbar"></div>
51+
</div>
4852
</div>
4953
<!-- The blueimp Gallery widget -->
5054
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
@@ -81,4 +85,4 @@ <h3 class="title"></h3>
8185
<!--[if gte IE 8]>
8286
<script src="{{ STATIC_URL }}js/cors/jquery.xdr-transport.js"></script>
8387
<![endif]-->
84-
{% endblock %}
88+
{% endblock %}

fileupload/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.conf.urls.defaults import patterns, url
1+
from django.conf.urls import patterns, url
22
from fileupload.views import PictureCreateView, PictureDeleteView
33

44
urlpatterns = patterns('',

fileupload/views.py

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def form_valid(self, form):
4141
response['Content-Disposition'] = 'inline; filename=files.json'
4242
return response
4343

44+
def get_context_data(self, **kwargs):
45+
context = super(PictureCreateView, self).get_context_data(**kwargs)
46+
context['pictures'] = Picture.objects.all()
47+
return context
48+
4449

4550
class PictureDeleteView(DeleteView):
4651
model = Picture

0 commit comments

Comments
 (0)