Install

Install with Pipenv.

$ pipenv install django django-applepodcast

After creating a project, add podcast to INSTALLED_APPS in settings.py.

INSTALLED_APPS = [
    # ...
    'podcast',
]

Because the app is primarily model driven, you will want to expose the URL of the show’s feed for submission to Apple Podcasts. Add the URL conf to urls.py.

from django.urls import include, path

urlpatterns = [
    # ...
    path('podcast/', include('podcast.urls')),
]

If you’re on Django 1.11, 1.10, or 1.9, use the older, regex-based syntax instead.

from django.conf.urls import include, url

urlpatterns = [
    # ...
    url(r'^podcast/', include('podcast.urls')),
]

If you’re on Django 1.8, you will additionally need to add the namespace keyword argument to the include() method manually because the convenient app_name attribute in urls.py wasn’t added until Django 1.9.

from django.conf.urls import include, url

urlpatterns = [
    # ...
    url(r'^podcast/', include('podcast.urls', namespace='podcast')),
]

Add the models to your project by migrating the database.

$ pipenv run python manage.py migrate

Add the default Apple Podcasts categories by loading the fixtures.

$ pipenv run python manage.py loaddata podcast_category.json