Skip to main content

Add kittens to your django project! This app collects kittens from the /r/aww/ subreddit and displays them to users, who can then upvote or downvote them. It also provides a “top kittens page”

This project was created to demonstrate how to package a django app for distribution. It accompanies the presentation given at this Code & Supply: Django PGH Meetup.

Installation and Configuration

Installing django-kittens is as simple as:

pip install django-kittens

It can be included in any Django app by adding 'django-kittens' to you INSTALLED_APPS setting.

This application can be further configured by adding some entries into your django settings module.

REDDIT_USER_AGENT = 'packaging-kittens'
KITTEN_FRESHNESS = 100
KITTEN_HOMEPAGE = '/'

The config item REDDIT_USER_AGENT tells the reddit-api who is making requests. Set this to something unique for your app. If left at the default setting, your rate limit will be shared with any other project that includes this app with the default setting.

The KITTEN_FRESHNESS setting controls what proportion of kittens will be new, and can be set to any positive integer. A low freshness level will tend to show the same collection of kittens over time, while a high freshness level will constantly show new kittens.

The setting KITTEN_HOMEPAGE is the url that the “home” link on the kittens pages will link to.

Contributing

This project is not being actively developed. But, I’m happy to look at pull requests.

License

All code is licensed under the MIT license. See attached LICENSE.txt.

Release files for django-kittens 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-kittens 0.1.4
File Size Uploaded
django-kittens-0.1.4.tar.gz 6.1 kB Details

Release files / django-kittens-0.1.4.tar.gz

Download URL django-kittens-0.1.4.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
928e571b97dfcbbb0bea52f9b6c5cbc7c43880e37e1f8bcfed02803224824dc9
BLAKE2b-256 checksum
How to use checksums
e571a49bcbf2e1f304d935025894dc7eebaa5dcbac7566a8525c57d9648e3ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page