forked from kinoafisharu/kinoinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls_ya_vsetiinter.py
32 lines (25 loc) · 1014 Bytes
/
urls_ya_vsetiinter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls.defaults import include, patterns, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from dajaxice.core import dajaxice_autodiscover, dajaxice_config
#from base.feeds import FilmsFeed, ArticlesFeed, ReleasesFeed
admin.autodiscover()
dajaxice_autodiscover()
urlpatterns = patterns('',
url(r'^$', 'user_registration.views.user_main', name='main'),
url(r'^messenger/$', 'user_registration.messenger.messenger', name='messenger'),
(r'^user/', include('user_registration.urls')),
# dajax
url(dajaxice_config.dajaxice_url, include('dajaxice.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^' + settings.MEDIA_URL.lstrip('/') \
+ '(?P<path>.*)$', 'django.views.static.serve',
{
'document_root': settings.MEDIA_ROOT,
}),
)
urlpatterns += staticfiles_urlpatterns()