Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
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.

32 lines
1.0 KiB

  1. from django.conf.urls.defaults import *
  2. # Uncomment the next two lines to enable the admin:
  3. from django.contrib import admin
  4. admin.autodiscover()
  5. from django.conf import settings
  6. urlpatterns = patterns('',
  7. # Example:
  8. # (r'^mumble_django/', include('mumble_django.foo.urls')),
  9. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  10. # to INSTALLED_APPS to enable admin documentation:
  11. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  12. (r'^accounts/profile/', 'views.profile' ),
  13. (r'^accounts/', include('registration.urls')),
  14. (r'^mumble/', include('mumble.urls')),
  15. # Uncomment the next line to enable the admin:
  16. (r'^admin/(.*)', admin.site.root),
  17. )
  18. # Development stuff
  19. if settings.DEBUG:
  20. urlpatterns += patterns('',
  21. (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True} ),
  22. (r'^/?$', 'django.views.generic.simple.redirect_to', { 'url': '/mumble/' } ),
  23. )