You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.py 494B

1234567891011121314151617181920
  1. from django.conf.urls import url
  2. from oscar.core.application import Application
  3. from oscar.core.loading import get_class
  4. class ReportsApplication(Application):
  5. name = None
  6. default_permissions = ['is_staff', ]
  7. index_view = get_class('dashboard.reports.views', 'IndexView')
  8. def get_urls(self):
  9. urls = [
  10. url(r'^$', self.index_view.as_view(), name='reports-index'),
  11. ]
  12. return self.post_process_urls(urls)
  13. application = ReportsApplication()