2012-11-20 03:47:19 -06:00
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.conf.urls.defaults import patterns, url, include
|
|
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# (r'', include('youmap.apps.')),
|
|
|
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
(r'^admin/', include(admin.site.urls)),
|
|
|
|
url(r'^$', views.home, name="home"),
|
2012-12-16 08:10:00 -06:00
|
|
|
url(r'^search/$', views.search, name="search"),
|
2012-12-11 13:04:03 -06:00
|
|
|
url(r'^user/(?P<username>[-_\w]+)/$', views.user_maps, name='user_maps'),
|
2012-11-20 03:47:19 -06:00
|
|
|
(r'', include('chickpea.urls')),
|
|
|
|
)
|
|
|
|
|
|
|
|
if settings.DEBUG and settings.MEDIA_ROOT:
|
|
|
|
urlpatterns += static(settings.MEDIA_URL,
|
|
|
|
document_root=settings.MEDIA_ROOT)
|
|
|
|
urlpatterns += staticfiles_urlpatterns()
|