Django class based views for templates stored in a database.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-database-views-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8b310ce53796523dc9edc268ebd254ffb245c5b7c9a6d3f79f2764dbf96b14d |
|
MD5 | 983219ead2f10b5311143f6251a24a61 |
|
BLAKE2b-256 | ba2e566d3ad13391b43530a6c5b5e74fca82d1f526ab30d273186a1c0b17ab84 |
Hashes for django_database_views-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57c736163e4c9823edb85f10589650e23d9356a1feb5fac56e258a98d4e1f6c8 |
|
MD5 | f8fb54f1dfc544cfccc67110d068d72d |
|
BLAKE2b-256 | 9ef68d2d414b871d5c72cf86f8ab1c0a7fe531fd466727b8e0f8a3c8598d9be8 |