Attach files to Django models
Project description
Paperclip
Add attachments to Django models, used MapEntity.
INSTALL
pip install paperclip
USAGE
Add paperclip to INSTALLED_APPS
Include urls
urlpatterns = patterns( '', ... url(r'^paperclip/', include('paperclip.urls')), ... )
Include scripts in template
- ::
<script src=”{% static “paperclip/bootstrap-confirm.js” %}” type=”text/javascript”></script> <script src=”{% static “paperclip/spin.min.js” %}” type=”text/javascript”></script> <script src=”{% static “paperclip/paperclip.js” %}” type=”text/javascript”></script>
If you use bootstrap 3, please include paperclip/bootstrap-3-confirm.js instead of paperclip/bootstrap-confirm.js.
Include list and form in template
{% include 'paperclip/attachment_list.html' with attachment_form_next=object.get_detail_url %}
LICENSE
LGPL
CHANGELOG
0.2.3 (2014-12-15)
Handle swappable User model
Embed spinner, bootstrap-confirm and add a bootstrap-3-confirm
Remove crispy_forms dependency
0.2.2 (2014-11-14)
Fix permission check for attachments
0.2.0 (2014-11-12)
Allow to override file types from request.
0.1.3 (2014-11-07)
Fix packaging of locale files
0.1.2 (2014-11-07)
Fix upload regular expressions for author and legend
0.1.1 (2014-11-03)
Fix missing SVG media in package
0.1.0 (2014-10-23)
Initial working version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file paperclip-0.2.3.tar.gz
.
File metadata
- Download URL: paperclip-0.2.3.tar.gz
- Upload date:
- Size: 60.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d166a07cb3634bbe408fcf764c637e8f4b513968c713e04d17f8a6b39449f7fb |
|
MD5 | 1854ccf24895c34f1d2f2fe1ccd7ae20 |
|
BLAKE2b-256 | 84cb372a6fe1e0e126b81ea303648ce0fc771e2a2a82ec5f298928f2e3cf11e7 |