def get_url_pattern(self): from django.conf.urls import patterns, include, url prefix = self.url_prefix urlpatterns = patterns( '', url(r'^%s/'%prefix, include('django.contrib.auth.urls')), ) pattern = urlpatterns + Resource.get_url_pattern(self) return pattern
def get_template_name(self, view, prefix=None): template = Resource.get_template_name(self, view, prefix=prefix) return template.replace(".html",".jinja")