Changes

Jump to: navigation, search

Gramps-Connect

637 bytes added, 08:24, 5 January 2017
no edit summary
{{out of dateman warn|This page is about the old deprecated gramps-connect based on Django|[https://github.com/gramps-project/django-webapp https://github.com/gramps-project/django-webapp]}} {{man note|The new gramps-connect based on tornado that only works with Gramps master(upcoming Gramps 5.0) can be found at|[https://github.com/gramps-project https://github.com/gramps-project]}}  
= Getting Started =
== Run your own Gramps-Connect in 30 seconds ==
=== Windows ===
1) Get Gramps from Trunk or Gramps 3.5
8) Point your webbrowser to http://127.0.0.1:8000
=== Linux and Mac ===
Get the latest version of Gramps (currently "trunk" or "branches/gramps35master" from SVNGit; see [http://gramps-project.org/wiki/index.php?title=Brief_introduction_to_SVN [Brief introduction to SVNGit]]). This will become an easy-to-install package once Gramps 3.5/4.0 are released. Trunk uses Gtk3; Gramps 3.5 uses Gtk2.
Below, it is assumed that you have the following installed:
* Gramps 3.5 or 4.0 1 (in examples below, installed in a folder called "trunk")* Django version 1.3 5 or greater
* Sqlite3
* cd trunk
* python3 setup./autogen.shpy build
you are then ready to make and run Gramps-Connect. These are the basic steps for running in a test development:
# cd trunk/srcgramps/webapp
# make
## this will build all tables, and populate with default information
# Point your browser to http://localhost:8000/ and begin using Gramps-Connect
== Django 1.4 ==
=== Django 1.4 ===
tannooba says:
# in settings.py, change TEMPLATE_CONTEXT_PROCESSORS from "django.core.context_processors.auth" to "django.contrib.auth.context_processors.auth".
# In settings.py, changed TEMPLATE_LOADERS to say "django.template.loaders.filesystem.Loader" instead of ...loaders.filesystem.Load_template_source.
 
=== Django 1.6 ===
 
* [http://sourceforge.net/p/gramps/source/merge-requests/12/ Git Merge Request #12: Gramps-connect: Django compatibility fixes (open)], ''This ought to make Gramps-connect compatible with Django 1.3 on up to Django 1.6.'' - Paul Kilgo 2014-06-16 ( [http://sourceforge.net/u/oneeyedparrot/gramps/ci/c6b0e5713bc5f0e5e84c62840efc00c3e7545f24/log/?path= Patches] )
= Options =
Please list any item that is not listed yet:
# {{bug|7005}} unable to import GRAMPS example DBs
# Not all items are private and living data protected. Need a security audit.
# Many of the secondary level of information (LDS, Location, etc) are accessible for viewing or edit
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'gramps.webapp.settings'os.environ['HOME'] = '/usr/local/wsgi/trunk'os.environ['GRAMPS_RESOURCES'] = '/usr/local/wsgi/trunk/'sys.path.append('/usr/local/wsgi/trunk/src')
import django.core.handlers.wsgi
Permissions:
* chmod a+rw trunk/srcgramps/webapp/sqlite.db * chmod a+xw trunk/srcgramps/webapp/
Additions to /etc/httpd/conf/httpd.conf, for example:

Navigation menu