django_lsd/README

31 lines
627 B
Text
Raw Normal View History

2013-11-02 16:24:11 +00:00
# django-lsd
integrate LSD into your django app
# settings.py
in settings set LSD_ITEM to your item model i.e.:
LDS_ITEM="item.models.Item"
and add "django_lsd" to INSTALLED_APPS
# add this to urls.py
import ox.django.api.urls
urlpatterns += patterns('',
(r'^api/?$', include(ox.django.api.urls)),
)
# custom models
If you set a custom model via LSD_ITEMS,
the referenced model needs the following rows:
sha1 = models.CharField(max_length=40, unique=True)
info_hash = models.CharField(max_length=40, unique=True, null=True)
data = ox.django.fields.DictField(default={}, editable=False)