Django Javascript object model. Extracts javascript objects from Django models.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 48 commits ahead, 6 commits behind PuzzleDev:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jom
jomtest
.gitignore
.project
.pydevproject
README.md
prepareenv.sh
requirements.txt
setup.py

README.md

django-jom

django-jom (Django Javascript Object Model) is a Django based library to extract Javascript objects from data models.

The base idea

django-jom is a Django/Javascript implementation of the SSMVC pattern. Interactive, rich and mobile web applications are based on the MVC pattern in which models contains the data on which the application is built. However mobile and Javascript clients are forced to replicate the MVC pattern in order to operate. The SSMVC pattern avoid code duplication by automatically extracting and synchronizing the front-end models with back-end.

How to add django-jom to your django project

First download and install django-jom as you would do for any other git-hosted django app.

Then create a jom descriptor for each model that you would like to export and run export_jom to generate the javascript code.

The jom generation path can be configured by adding JOM_ROOT to your settings file.

How to contribute

Please feel free to improve django-jom and submit a pull request.

Related information

django-jom is developed and maintained by PuzzleDev.

django-jom is based on the SSMVC pattern which was originally designed by Michele Sama (@msama) and Franco Raimondi (@fraimondi).