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.

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