Changes

Jump to: navigation, search

Gramps-Connect: Developer Introduction

55 bytes added, 06:09, 12 June 2014
Basic Django Structure: git
In working with Gramps' Django files, there are four files that you may find yourself editing:
# [http://svn.code.sfsourceforge.net/p/gramps/codesource/ci/master/trunktree/gramps/webapp/urls.py gramps/webapp/urls.py]# [http://svn.code.sfsourceforge.net/p/gramps/codesource/ci/master/trunktree/gramps/webapp/grampsdb/views.py gramps/webapp/grampsdb/views.py]# [http://svn.code.sfsourceforge.net/p/gramps/codesource/ci/master/trunktree/gramps/webapp/grampsdb/forms.py gramps/webapp/grampsdb/forms.py]# [http://svn.code.sfsourceforge.net/p/gramps/codesource/ci/master/trunktree/data/templates/ data/templates/]
The template files have .html extensions and are found in the templates directory.
You will also find yourself referencing the
[http://svn.code.sfsourceforge.net/p/gramps/codesource/ci/master/trunktree/gramps/webapp/grampsdb/models.py gramps/webapp/grampsdb/models.py] file, which defines the database structure. This file models the Gramps data as it exists in the desktop Gramps application and will not require alteration unless the database structure is changed. To access data from the database, you will often reference the models.py file and refer to the tables and fields it defines.
We will now go through each of these files, exploring the use and format of each.

Navigation menu