Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 1.1
2 Name: dj-static
3 Version: 0.0.6
4 Summary: Serve production static files with Django.
5 Home-page: https://github.com/kennethreitz/dj-static
6 Author: Kenneth Reitz
7 Author-email: [email protected]
8 License: BSD
9 Description:
10 dj-static
11 ~~~~~~~~~
12
13 This is a simple Django middleware utility that allows you to properly
14 serve static assets from production with a WSGI server like Gunicorn.
15
16 Django `doesn't recommend <https://docs.djangoproject.com/en/1.5/howto/static-files/#admonition-serving-the-files>`_
17 the production use of its static file server for a number of reasons.
18 There exists, however, a lovely WSGI application aptly named `Static <http://lukearno.com/projects/static/>`_.
19
20 It is suitable for the production use of static file serving, unlike Django.
21
22 Usage
23 -----
24
25 Configure your static assets in ``settings.py``::
26
27 STATIC_ROOT = 'staticfiles'
28 STATIC_URL = '/static/'
29
30 Then, update your ``wsgi.py`` file to use dj-static::
31
32 from django.core.wsgi import get_wsgi_application
33 from dj_static import Cling
34
35 application = Cling(get_wsgi_application())
36
37
38 Platform: any
39 Classifier: Environment :: Web Environment
40 Classifier: Intended Audience :: Developers
41 Classifier: License :: OSI Approved :: BSD License
42 Classifier: Operating System :: OS Independent
43 Classifier: Programming Language :: Python
44 Classifier: Programming Language :: Python :: 3
45 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
46 Classifier: Topic :: Software Development :: Libraries :: Python Modules