dj-static


Namedj-static JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/kennethreitz/dj-static
SummaryServe production static files with Django.
upload_time2014-07-11 17:14:41
maintainerNone
docs_urlNone
authorKenneth Reitz
requires_pythonNone
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            dj-static
~~~~~~~~~

This is a simple Django middleware utility that allows you to properly
serve static assets from production with a WSGI server like Gunicorn.

Django `doesn't recommend <https://docs.djangoproject.com/en/1.5/howto/static-files/#admonition-serving-the-files>`_
the production use of its static file server for a number of reasons.
There exists, however, a lovely WSGI application aptly named `Static <http://lukearno.com/projects/static/>`_.

It is suitable for the production use of static file serving, unlike Django.

Usage
-----

Configure your static assets in ``settings.py``::

   STATIC_ROOT = 'staticfiles'
   STATIC_URL = '/static/'

Then, update your ``wsgi.py`` file to use dj-static::

    from django.core.wsgi import get_wsgi_application
    from dj_static import Cling

    application = Cling(get_wsgi_application())
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kennethreitz/dj-static",
    "name": "dj-static",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Kenneth Reitz",
    "author_email": "me@kennethreitz.com",
    "download_url": "https://files.pythonhosted.org/packages/2b/8f/77a4b8ec50c821193bf9682c7896f12fd0418eb3711a7d66796ede59c23b/dj-static-0.0.6.tar.gz",
    "platform": "any",
    "description": "dj-static\n~~~~~~~~~\n\nThis is a simple Django middleware utility that allows you to properly\nserve static assets from production with a WSGI server like Gunicorn.\n\nDjango `doesn't recommend <https://docs.djangoproject.com/en/1.5/howto/static-files/#admonition-serving-the-files>`_\nthe production use of its static file server for a number of reasons.\nThere exists, however, a lovely WSGI application aptly named `Static <http://lukearno.com/projects/static/>`_.\n\nIt is suitable for the production use of static file serving, unlike Django.\n\nUsage\n-----\n\nConfigure your static assets in ``settings.py``::\n\n   STATIC_ROOT = 'staticfiles'\n   STATIC_URL = '/static/'\n\nThen, update your ``wsgi.py`` file to use dj-static::\n\n    from django.core.wsgi import get_wsgi_application\n    from dj_static import Cling\n\n    application = Cling(get_wsgi_application())",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Serve production static files with Django.",
    "version": "0.0.6",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/kennethreitz/dj-static"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b8f77a4b8ec50c821193bf9682c7896f12fd0418eb3711a7d66796ede59c23b",
                "md5": "078c4d5a455b7811173ffdb0cb33ed0f",
                "sha256": "032ec1c532617922e6e3e956d504a6fb1acce4fc1c7c94612d0fda21828ce8ef"
            },
            "downloads": -1,
            "filename": "dj-static-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "078c4d5a455b7811173ffdb0cb33ed0f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3368,
            "upload_time": "2014-07-11T17:14:41",
            "upload_time_iso_8601": "2014-07-11T17:14:41.094889Z",
            "url": "https://files.pythonhosted.org/packages/2b/8f/77a4b8ec50c821193bf9682c7896f12fd0418eb3711a7d66796ede59c23b/dj-static-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2014-07-11 17:14:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kennethreitz",
    "github_project": "dj-static",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dj-static"
}
        
Elapsed time: 0.43192s