Skip to main content

Django class based views for templates stored in a database.

Project description

https://badge.fury.io/py/django-database-views.svg https://travis-ci.org/a7madnassar/django-database-views.svg?branch=master https://coveralls.io/repos/github/a7madnassar/django-database-views/badge.svg?branch=master

Serve your single page Javascript applications from Django.

Documentation

The full documentation is at https://django-database-views.readthedocs.io.

Requirements

  • Django > 1.8
  • A database engine such as MySQL

Features

  • Easily serve your single page javascript applications from Django.
  • Optionally cache your templates for a configurable amount of time.
  • Works with ember-cli-deploy and more specifically with ember-cli-deploy-mysql.

Deploying Your Single Page Application

You can publish a new template to your database in any way you choose. We assume that you will use this to serve a Ember application, and the index template has been deployed to the database. The easiest way to deploy it is to use ember-cli-deploy-mysql.

If you are not using Ember you can still use this project to serve your application. You just have to properly deploy your template to your MySQL database. For template model field reference read the docs.

Running Tests

To run tests use the following commands:

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ py.test

Credits

Tools used in rendering this package:

History

0.1.0 (2017-03-10)

  • First release on PyPI.

Project details


Download files

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

Files for django-database-views, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_database_views-0.1.0-py2.py3-none-any.whl (7.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-database-views-0.1.0.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page