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.

65 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.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. 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'^accounts/', include('registration.urls') ),
  34. (r'^mumble/', include('mumble.urls')),
  35. # Uncomment the next line to enable the admin:
  36. (r'^admin/', admin.site.urls),
  37. (r'^i18n/', include('django.conf.urls.i18n')),
  38. (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
  39. )
  40. if "rosetta" in settings.INSTALLED_APPS:
  41. urlpatterns += patterns( '',
  42. ( r'rosetta/', include( 'rosetta.urls' ) )
  43. )
  44. # Development stuff
  45. if settings.DEBUG or True:
  46. urlpatterns += patterns('',
  47. (r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
  48. 'django.views.static.serve',
  49. {'document_root': settings.MEDIA_ROOT, 'show_indexes': True} ),
  50. )