django-graffiti

Django application for Graffiti
Download

django-graffiti Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Amirouche Boubekki
  • Publisher web site:
  • http://bitbucket.org/abki/

django-graffiti Tags


django-graffiti Description

django-graffiti is a Django app that integrates the graffiti library with Django.Installationcli ninja walkthrough:pip install django-graffitiIn your project settings provide the GRAFFITI_DATABASES setting dictionnary. For instance if you database is named in Rexster 'matrix', use neo4j and kept the default port setting, you must use:GRAFFITI_DATABASES = {'matrix': { 'url': 'http://localhost:8182/', 'db': 'neo4j',}}UsageTo declare models you must first import the django_graffiti module, in you models.py, the remaining imports should be done against graffiti library:from django_graffiti import graphfrom graffiti.properties import (String, Boolean, Integer)class Person(graph.matrix.Node): name = String() age = Integer() is_a_program = Boolean()class Knows(graph.matrix.Edge): passThere is nothing specific to Django Graffiti Models in terms of API so please refer to graffiti documentation.Product's homepage


django-graffiti Related Software