No description
Find a file
2013-11-02 20:29:45 +01:00
django_lsd django_lsd 2013-11-02 20:29:45 +01:00
.gitignore django_lsd 2013-11-02 20:29:45 +01:00
README django_lsd 2013-11-02 20:29:45 +01:00
setup.py django_lsd 2013-11-02 20:29:45 +01: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)