18 lines
678 B
Python
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)
|