If you're curious enough, you might check out the Symfony version of this app.
- Django 1.2 or more recent
- Eventually, the
django-debug-toolbarif you plan to use the provided sample
settings_local.py.samplefile for a standard dev environment
Djortunes ship as a standalone application (located in the
django_fortunes directory), and a sample Django project is also provided as an example of use (in the
The better way to install dependencies (using a
virtualenv is highly encouraged) is by using the provided
pip requirements file:
$ pip install -r requirements.txt
You can adjust and override the project settings by configuring a custom settings file: a sample
settings_local.py.sample file is provided within the example project directory. You can safely rename it
settings_local.py and tweak its values.
Then, just run the
./manage.py runserver within the
$ cd django_fortunes_example $ ./manage.py runserver --settings=settings_local
Several settings are available in the
django_fortunes application, and you can override their defaults in your project's
settings.py configuration file:
# Maximum number of fortunes to be shown in lists FORTUNES_MAX_PER_PAGE = 10 # Maximum number of top fortune authors to display in the sidebar FORTUNES_MAX_TOP_CONTRIBUTORS = 5
This work is released under the terms of the MIT license.