ernestophone.ens.fr/Ernestophone/urls.py
2015-03-17 19:03:51 +01:00

18 lines
678 B
Python

from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = patterns('',
# Examples:
url(r'^$', 'gestion.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^login/?$', 'gestion.views.login', ),
url(r'^logout/?$', 'django.contrib.auth.views.logout', {'next_page': '/'}, ),
url(r'^registration/?$', 'gestion.views.inscription_membre'),
url(r'^admin/', include(admin.site.urls)),
url(r'^partitions/', include('partitions.urls')),
)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)