urls.py 726 B

1234567891011121314151617181920212223
  1. # coding=utf-8
  2. from django.conf.urls import include, url
  3. from django.contrib.auth.views import login, logout
  4. # noinspection PyUnresolvedReferences
  5. from testproject import views
  6. # noinspection PyUnresolvedReferences
  7. from testproject import models
  8. from rapid import register
  9. from rapid import permissions
  10. urlpatterns = [
  11. url(r'^/?$', views.blank),
  12. url(r'^login$', login),
  13. url(r'^logout$', logout, {'next_page': '/'}),
  14. url(r'^applications/', include('rapid.urls')),
  15. ]
  16. for m in (models.Test1, models.AltData1, models.AltData2):
  17. urlpatterns += register.crud(m, permissions.to_all(), permissions.to_all())
  18. urlpatterns += register.document_templates(models.Test1, permissions.to_all(), permissions.to_all())