django-libs


Namedjango-libs JSON
Version 2.0.3 PyPI version JSON
download
home_pagehttps://github.com/bitmazk/django-libs
SummaryA collection of things that we re-use in every Django project, such as custom middlewares, templates, templatetags, test mixins etc...
upload_time2020-03-17 15:26:47
maintainer
docs_urlNone
authorMartin Brochhaus
requires_python
licenseThe MIT License
keywords django common reusable kickstart
VCS
bugtrack_url
requirements django
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bitmazk/django-libs",
    "name": "django-libs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,common,reusable,kickstart",
    "author": "Martin Brochhaus",
    "author_email": "mbrochh@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0b/97/1e193831953a6e61baf7a8b283765882a98d6723cfced18852384e2f26de/django-libs-2.0.3.tar.gz",
    "platform": "OS Independent",
    "description": "Django Libs\n===========\n\nThis project aims to provide commonly used building blocks for Django projects\nand applications.\n\n**Current features**:\n\n* TestCase mixins to ease the process of testing views via ``self.client.get``\n* A JSONResponseMixin\n* New generic class based view DetailViewWithPostAction which is able to\n  handle custom post actions.\n* Template filter to provide field's verbose names\n* Template tag for displaying the currently selected main navigation item\n* Custom test_email_backend that sends emails to your own address no matter\n  who the recepient is\n* Functions to test callable or non-callable views\n* Dummy views to test your 404 and 500 templates\n* RapidPrototypingView to render any template even when it has no view hooked\n  up in ``urls.py``.\n* AjaxRedirectMiddleware for jQuery AJAX calls that return 301 redirects\n* AjaxResponseMixin for views that can return their normal template or a\n  partial template when it is an ajax call\n* AccessMixin which allows to use views with the ``login_required`` decorator\n  based on a setting.\n* A context processor to add your analytics tracking code to your template\n  context.\n* A decorator ``lockfile`` for wrapping ``handle`` methods of admin commands\n  so that they never run twice at the same time.\n* A ``getCookie`` js function that can be used to retrieve the csrf token\n  for AJAX POST requests.\n* A templatetag ``call`` which allows to call any method with params.\n* Utilities for loading classes from a string like ``myproject.models.Foobar``.\n* Form, which add field labels as placeholder attributes.\n* Function to convert html code into formatted plain text.\n* Amazon S3 storage + django-compressor support files.\n* An AJAX View to display paginated comments for every possible object.\n* Tools to improve django-hvad\n\nInstallation\n------------\n\nTo get the latest stable release from PyPi::\n\n    $ pip install django-libs\n\nTo get the latest commit from GitHub::\n\n    $ pip install -e git://github.com/bitmazk/django-libs.git#egg=django_libs\n\nUsage\n-----\n\nSee the docs folder for descriptions of the different tools this project\nprovides.\n\nOr read the docs here: http://django-libs.readthedocs.org/en/latest/\n\nContribute\n----------\n\nIf you want to contribute to this project, please perform the following steps::\n\n    # Fork this repository\n    # Clone your fork\n    $ mkvirtualenv -p python2.7 django-libs\n    $ pip install -r requirements.txt\n\n    $ git co -b feature_branch master\n    # Implement your feature and tests\n    $ git add . && git commit\n    $ git push -u origin feature_branch\n    # Send us a pull request for your feature branch",
    "bugtrack_url": null,
    "license": "The MIT License",
    "summary": "A collection of things that we re-use in every Django project, such as custom middlewares, templates, templatetags, test mixins etc...",
    "version": "2.0.3",
    "split_keywords": [
        "django",
        "common",
        "reusable",
        "kickstart"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "1b24bd66702694197eb036b484518a83",
                "sha256": "e8dd873abaa07152d690310ab62cf941c1d7d752abfdf4a4bbc3d973bcf2c858"
            },
            "downloads": -1,
            "filename": "django-libs-2.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1b24bd66702694197eb036b484518a83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 126778,
            "upload_time": "2020-03-17T15:26:47",
            "upload_time_iso_8601": "2020-03-17T15:26:47.916194Z",
            "url": "https://files.pythonhosted.org/packages/0b/97/1e193831953a6e61baf7a8b283765882a98d6723cfced18852384e2f26de/django-libs-2.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-03-17 15:26:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "bitmazk",
    "github_project": "django-libs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "django",
            "specs": []
        }
    ],
    "test_requirements": [
        {
            "name": "fabric3",
            "specs": []
        },
        {
            "name": "flake8",
            "specs": []
        },
        {
            "name": "coverage",
            "specs": []
        },
        {
            "name": "django-mailer",
            "specs": []
        },
        {
            "name": "django-parler",
            "specs": []
        },
        {
            "name": "factory-boy",
            "specs": []
        },
        {
            "name": "mixer",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "django-libs"
}
        
Elapsed time: 0.03147s