django-libs-2.0.3
2.0.3
2.0.2
2.0.1
2.0.0
1.9
1.8
1.7
1.67.9
1.67.8
1.67.7
1.67.6
1.67.5
1.67.4
1.67.3
1.67.2
1.67.13
1.67.12
1.67.11
1.67.10
1.67.1
1.66.9
1.66.8
1.66.7
1.66.6
1.66.5
1.66.4
1.66.3
1.66.2
1.66.15
1.66.14
1.66.13
1.66.12
1.66.11
1.66.10
1.66.1
1.66.0
1.65.7
1.65.6
1.65.5
1.65.4
1.65.3
1.65.2
1.65.1
1.65
1.64.9
1.64.8
1.64.7
1.64.6
1.64.5
1.64.4
1.64.3
1.64.2
1.64.10
1.64.1
1.64
1.63.0
1.62.3
1.62.2
1.62.1
1.62
1.61.5
1.61.4
1.61.3
1.61.2
1.61.1
1.61.0
1.60.0
1.6
1.59.6
1.59.5
1.59.4
1.59.3
1.59.2
1.59.1
1.59
1.58.5
1.58.4
1.58.3
1.58.2
1.58.1
1.58
1.57.1
1.57
1.56
1.55
1.54
1.53
1.52
1.51
1.50
1.5
1.49.1
1.49
1.48.1
1.48
1.47.1
1.47
1.46.6
1.46.5
1.46.4
1.46.3
1.46.2
1.46.1
1.46
1.45
1.44
1.43
1.42.3
1.42.2
1.42.1
1.42
1.41
1.40
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4
1.39
1.38
1.37
1.36.1
1.36
1.35.2
1.35.1
1.35
1.34
1.33
1.32
1.31
1.30
1.3
1.29
1.28
1.27.1
1.27
1.26
1.25
1.24
1.23
1.22
1.21.1
1.21
1.20
1.2
1.19
1.18
1.17
1.16
1.15
1.14
1.13
1.12
1.11
1.10
1.1
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.17
0.16
0.15
0.14.1
0.14
0.13
0.12
0.11
0.10
0.1
توضیحات
A collection of things that we re-use in every Django project, such as custom middlewares, templates, templatetags, test mixins etc...
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-libs-2.0.3 |
| نام | django-libs |
| نسخه کتابخانه | 2.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Martin Brochhaus |
| ایمیل نویسنده | mbrochh@gmail.com |
| آدرس صفحه اصلی | https://github.com/bitmazk/django-libs |
| آدرس اینترنتی | https://pypi.org/project/django-libs/ |
| مجوز | The MIT License |
Django Libs
===========
This project aims to provide commonly used building blocks for Django projects
and applications.
**Current features**:
* TestCase mixins to ease the process of testing views via ``self.client.get``
* A JSONResponseMixin
* New generic class based view DetailViewWithPostAction which is able to
handle custom post actions.
* Template filter to provide field's verbose names
* Template tag for displaying the currently selected main navigation item
* Custom test_email_backend that sends emails to your own address no matter
who the recepient is
* Functions to test callable or non-callable views
* Dummy views to test your 404 and 500 templates
* RapidPrototypingView to render any template even when it has no view hooked
up in ``urls.py``.
* AjaxRedirectMiddleware for jQuery AJAX calls that return 301 redirects
* AjaxResponseMixin for views that can return their normal template or a
partial template when it is an ajax call
* AccessMixin which allows to use views with the ``login_required`` decorator
based on a setting.
* A context processor to add your analytics tracking code to your template
context.
* A decorator ``lockfile`` for wrapping ``handle`` methods of admin commands
so that they never run twice at the same time.
* A ``getCookie`` js function that can be used to retrieve the csrf token
for AJAX POST requests.
* A templatetag ``call`` which allows to call any method with params.
* Utilities for loading classes from a string like ``myproject.models.Foobar``.
* Form, which add field labels as placeholder attributes.
* Function to convert html code into formatted plain text.
* Amazon S3 storage + django-compressor support files.
* An AJAX View to display paginated comments for every possible object.
* Tools to improve django-hvad
Installation
------------
To get the latest stable release from PyPi::
$ pip install django-libs
To get the latest commit from GitHub::
$ pip install -e git://github.com/bitmazk/django-libs.git#egg=django_libs
Usage
-----
See the docs folder for descriptions of the different tools this project
provides.
Or read the docs here: http://django-libs.readthedocs.org/en/latest/
Contribute
----------
If you want to contribute to this project, please perform the following steps::
# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-libs
$ pip install -r requirements.txt
$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch
نحوه نصب
نصب پکیج whl django-libs-2.0.3:
pip install django-libs-2.0.3.whl
نصب پکیج tar.gz django-libs-2.0.3:
pip install django-libs-2.0.3.tar.gz