#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post, Album, Link

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())
_api.register(Album())
_api.register(Link())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)

Add api url to album and link