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.

69 lines
2.2 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 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. js_info_dict = {
  24. 'packages': ('mumble',),
  25. }
  26. urlpatterns = patterns('',
  27. (r'^/?$', 'mumble.views.redir' ),
  28. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  29. # to INSTALLED_APPS to enable admin documentation:
  30. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  31. (r'^accounts/profile/', 'views.profile' ),
  32. (r'^accounts/imprint/', 'views.imprint' ),
  33. (r'^mumble/', include('mumble.urls')),
  34. # Uncomment the next line to enable the admin:
  35. (r'^admin/', admin.site.urls),
  36. (r'^i18n/', include('django.conf.urls.i18n')),
  37. (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
  38. )
  39. if "registration" in settings.INSTALLED_APPS:
  40. urlpatterns += patterns( '',
  41. (r'^accounts/', include('registration.backends.default.urls') ),
  42. )
  43. if "rosetta" in settings.INSTALLED_APPS:
  44. urlpatterns += patterns( '',
  45. ( r'rosetta/', include( 'rosetta.urls' ) )
  46. )
  47. # Development stuff
  48. if settings.DEBUG or True:
  49. urlpatterns += patterns('',
  50. (r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
  51. 'django.views.static.serve',
  52. {'document_root': settings.MEDIA_ROOT, 'show_indexes': True} ),
  53. )