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, 'django.conf.urls.url', 'url', False, 'from django.conf.urls import url\n'), (10, 'django.conf.urls.url', 'url', False, 'from django.conf.urls import url\n'), (11, 'django.conf.urls.url', 'url', False, 'from django.conf.urls import url\n'), (14, 'django.conf.urls.static.static', 'static', False, 'from django.conf.urls.static import static\n')]