example

fromPyLucid.system.BasePluginimportPyLucidBasePluginfromdjango.dbimportmodels#_____________________________________________________________________________# modelsclassArtist(models.Model):name=models.CharField(max_length=100)classMeta:app_label='PyLucidPlugins'# essentialclassAlbum(models.Model):artist=models.ForeignKey(Artist)name=models.CharField(max_length=100)classMeta:app_label='PyLucidPlugins'# essential# essential: a list of all plugin models:PLUGIN_MODELS=(Artist,Album)#_____________________________________________________________________________# pluginclassexample_plugin(PyLucidBasePlugin):defcreate(self):""" You can use the models as normal django ORM models! """artist=Artist(name="FooBar Artist")artist.save()album=Album(artist=artist,name="FooBar Album",)album.save()defdisplay(self):albums=Album.objects.all()...