1. Fabien Schwebel
  2. django-misery


Fabien Schwebel  committed bcba357

switched to setuptools; README updated

  • Participants
  • Parent commits c4c9283
  • Branches master

Comments (0)

Files changed (3)


View file
  • Ignore whitespace
+include MANIFEST README.md LICENSE setup.py
 recursive-include django_misery *

File README.md

View file
  • Ignore whitespace
 ## Installation & configuration
-To install the app, add `django_misery` to your INSTALLED_APPS setting, and `django_misery.middleware.miserize` to you MIDDLEWARE_CLASSES.
+To install the app, you can use PIP: `pip install django-misery`; then add `django_misery` to your INSTALLED_APPS setting, and `django_misery.middleware.miserize` to you MIDDLEWARE_CLASSES.
 The following settings can be personnalized:
 * `MISERY_404_PROBABILITY`: I'm gonna let you guess for this one (default: 10)
 * `MISERY_WHITE_SCREEN_PROBABILITY`: same for a nice, 100% pure white (not a single subpixel in the viewport will be off, I promise) (default: 20)
 * `MISERY_ASP_ERROR_PROBABILITY`: a free bonus for the ASP lovers (and I'm sure they are plenty around here), the template renders just great. Oh and: to make it even more beautiful, it's in French (default: 20). Have a quick look:
 ![ASP error overview](http://img11.hostingpics.net/pics/560987ASPerror.png)
 By default, the miserable users have therefore approximately a 50-50 chance to see the real page. They won't stay long, I promise.

File setup.py

View file
  • Ignore whitespace
 #!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
 import os
 def read(fname):
     keywords = "django misery hellban slowban",
     url = "https://bitbucket.org/fschwebel/django-misery/",
+    include_package_data=True,
         "Development Status :: 3 - Alpha",