Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

A very thin Django app for rendering TVML templates.

Project Description

A very thin Django app for rendering TVML templates

Includes an example Django project and Apple TV app.


Installing is easy with pip:

pip install django-tvml


from tvml.views import TVMLDetailView, TVMLListView
from .models import Collection, Video

class HomeView(TVMLListView):

    model = Collection
    template_name = 'example_app/home.xml'

    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        return context

class VideoDetailView(TVMLDetailView):

    model = Video
    template_name = 'example_app/detail.xml'

    def get_context_data(self, **kwargs):
        context = super(VideoDetailView, self).get_context_data(**kwargs)
        context['title'] = self.object.title
        return context

from django.conf.urls import url

from tvml.views import TVMLAlertView

urlpatterns = [

    url(r'^alert/$', TVMLAlertView.as_view(), {
        'title': 'An Alert',
        'description': 'Florem ipsum crocus summer snowflake',
        'background_image': '/static/resources/images/background/bg_dark.jpg',
        'buttons': [
                'title': 'OK',
                'highlight': True,

                'title': 'CANCEL',
                'title': 'DISABLED',
                'disabled': True,
    }, name='alert'),


0.1.0 (2016-09-12)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-tvml-0.1.1.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 Source Oct 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting