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.

58 lines
1.9 KiB

  1. # -*- coding: utf-8 -*-
  2. # kate: space-indent on; indent-width 4; replace-tabs on;
  3. """
  4. * Copyright © 2009-2010, Michael "Svedrin" Ziegler <diese-addy@funzt-halt.net>
  5. *
  6. * Mumble-Django is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This package is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. """
  16. from django.conf.urls.defaults import patterns, include
  17. # Uncomment the next two lines to enable the admin:
  18. from django.contrib import admin
  19. admin.autodiscover()
  20. from django.conf import settings
  21. handler404 = 'django.views.defaults.page_not_found'
  22. handler500 = 'django.views.defaults.server_error'
  23. urlpatterns = patterns('',
  24. (r'^/?$', 'mumble.views.redir' ),
  25. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  26. # to INSTALLED_APPS to enable admin documentation:
  27. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  28. (r'^accounts/profile/', 'views.profile' ),
  29. (r'^accounts/imprint/', 'views.imprint' ),
  30. (r'^accounts/', include('registration.urls') ),
  31. (r'^mumble/', include('mumble.urls')),
  32. # Uncomment the next line to enable the admin:
  33. (r'^admin/', admin.site.urls),
  34. )
  35. if "rosetta" in settings.INSTALLED_APPS:
  36. urlpatterns += patterns( '',
  37. ( r'rosetta/', include( 'rosetta.urls' ) )
  38. )
  39. # Development stuff
  40. if settings.DEBUG or True:
  41. urlpatterns += patterns('',
  42. (r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
  43. 'django.views.static.serve',
  44. {'document_root': settings.MEDIA_ROOT, 'show_indexes': True} ),
  45. )