sw-django-utils


Namesw-django-utils JSON
Version 0.0.38 PyPI version JSON
download
home_pagehttps://github.com/telminov/sw-django-utils
SummarySoft Way company django utils.
upload_time2017-06-22 12:38:39
maintainerNone
docs_urlNone
authorTelminov Sergey
requires_pythonNone
licenseThe MIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # sw-django-utils
Soft Way company django utils
## Installation
1. Either checkout ``sw-django-utils`` from GitHub, or install using pip:
```bash
pip install sw-django-utils
```
2. Add ``sw-django-utils`` to your ``INSTALLED_APPS``:
```python
INSTALLED_APPS += (
    'djutils',
)
```
## Using Sorting
In view:
```python
class Search(SortMixin, ListView):
    model = models.ExampleModel
    template_name = 'ExampleSearch.html'
    sort_params = ['example_field', 'date_start', 'date_end']
```
In template:
```html
{% load djutils %}
<table>
    <tr>
        <th>#</th>
        {% sort_th 'example_field' 'Example' %}
        {% sort_th 'date_start' 'Created' %}
        {% sort_th 'date_end' 'Expiring date' %}
    </tr>
    ...
</table>    
```

            

Raw data

            {
    "maintainer": null, 
    "docs_url": null, 
    "requires_python": null, 
    "maintainer_email": null, 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": null, 
    "upload_time": "2017-06-22 12:38:39", 
    "author": "Telminov Sergey", 
    "home_page": "https://github.com/telminov/sw-django-utils", 
    "github_user": "telminov", 
    "download_url": "https://pypi.python.org/packages/ec/fa/e43b93910edaa6d27735343e5f90e32e3c96648663728615e86e7bb966ab/sw-django-utils-0.0.38.tar.gz", 
    "platform": "UNKNOWN", 
    "version": "0.0.38", 
    "cheesecake_documentation_id": null, 
    "description": "# sw-django-utils\nSoft Way company django utils\n## Installation\n1. Either checkout ``sw-django-utils`` from GitHub, or install using pip:\n```bash\npip install sw-django-utils\n```\n2. Add ``sw-django-utils`` to your ``INSTALLED_APPS``:\n```python\nINSTALLED_APPS += (\n    'djutils',\n)\n```\n## Using Sorting\nIn view:\n```python\nclass Search(SortMixin, ListView):\n    model = models.ExampleModel\n    template_name = 'ExampleSearch.html'\n    sort_params = ['example_field', 'date_start', 'date_end']\n```\nIn template:\n```html\n{% load djutils %}\n<table>\n    <tr>\n        <th>#</th>\n        {% sort_th 'example_field' 'Example' %}\n        {% sort_th 'date_start' 'Created' %}\n        {% sort_th 'date_end' 'Expiring date' %}\n    </tr>\n    ...\n</table>    \n```\n", 
    "lcname": "sw-django-utils", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": false, 
    "name": "sw-django-utils", 
    "license": "The MIT License", 
    "travis_ci": false, 
    "github_project": "sw-django-utils", 
    "summary": "Soft Way company django utils.", 
    "split_keywords": [], 
    "author_email": "sergey@telminov.ru", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2017-06-22T12:38:39", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/ec/fa/e43b93910edaa6d27735343e5f90e32e3c96648663728615e86e7bb966ab/sw-django-utils-0.0.38.tar.gz", 
            "md5_digest": "06317aba716d5529b9583ecbee64349e", 
            "downloads": 0, 
            "filename": "sw-django-utils-0.0.38.tar.gz", 
            "packagetype": "sdist", 
            "path": "ec/fa/e43b93910edaa6d27735343e5f90e32e3c96648663728615e86e7bb966ab/sw-django-utils-0.0.38.tar.gz", 
            "size": 11453
        }, 
        {
            "has_sig": false, 
            "upload_time": "2017-06-22T12:38:41", 
            "comment_text": "", 
            "python_version": "2.7", 
            "url": "https://pypi.python.org/packages/14/b0/27c714709ab2a66c8dd8a0fc4d6f6911b3c266959055443c71c431244c8e/sw_django_utils-0.0.38-py2.7.egg", 
            "md5_digest": "1fcdb61b1552211b1f4bc9bc3f6147c1", 
            "downloads": 0, 
            "filename": "sw_django_utils-0.0.38-py2.7.egg", 
            "packagetype": "bdist_egg", 
            "path": "14/b0/27c714709ab2a66c8dd8a0fc4d6f6911b3c266959055443c71c431244c8e/sw_django_utils-0.0.38-py2.7.egg", 
            "size": 34169
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}