forked from heroku-python/dj-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (45 loc) · 1.67 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
"""
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())
"""
from setuptools import setup
setup(
name='dj-static',
version='0.0.6',
url='https://github.com/kennethreitz/dj-static',
license='BSD',
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
description='Serve production static files with Django.',
long_description=__doc__,
py_modules=['dj_static'],
zip_safe=False,
install_requires=['static3'],
include_package_data=True,
platforms='any',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)