Wildcard in urls

6 views
Skip to first unread message

andre...@streamon.fm

unread,
Mar 28, 2016, 6:31:18 PM3/28/16
to Tastypie
Hi,

I am looking for a solution to accept wildcard urls like this:


I'm using the following in urls.py:

v1_api = Api(api_name='v1')

v1_api.register(UserResource())

v1_api.register(SettingsResource())


urlpatterns = [

    url(r'^(.*)/api/', include(v1_api.urls)),



Unfortunately resource_uris is returning empty.


Any ideas?


Thanks,

Andrew


Seán Hayes

unread,
Apr 7, 2016, 7:16:12 PM4/7/16
to Tastypie
I'm not sure what `resource_uris` refers to.

I'd need to see your resource names, and the rest of your url conf too.
Reply all
Reply to author
Forward
0 new messages