from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import url
from . import views



urlpatterns = [
    url('^$', views.gallary,name = 'gallary'),
    url(r'^search/', views.search_image, name='search_image'),
    url(r'^details/(\d+)',views.search_location,name ='images')
]
if settings.DEBUG:
    urlpatterns+= static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
    
    
    
    
    
    
    
    
    
[((9, 4, 9, 45), 'django.conf.urls.url', 'url', (), '', False, 'from django.conf.urls import url\n'), ((10, 4, 10, 61), 'django.conf.urls.url', 'url', (), '', False, 'from django.conf.urls import url\n'), ((11, 4, 11, 63), 'django.conf.urls.url', 'url', (), '', False, 'from django.conf.urls import url\n'), ((14, 18, 14, 81), 'django.conf.urls.static.static', 'static', (), '', False, 'from django.conf.urls.static import static\n')]