from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
from .views import galleryView, detailsView, image_location
urlpatterns=[
    url('^$',views.home,name = 'home'),
    url(r'location/(?P<location_name>\w+)/', views.image_location, name='location'),
    url(r'category/(?P<category>\w+)/', views.image_category, name='category'),
    url(r'^search/', views.search_results, name='search_results'),
    # url(r'gallery/', galleryView.as_view(), name = 'gallery'),

]
if settings.DEBUG:
    urlpatterns+= static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)

5ce63b1607cfbee392f5dd2437b39d6c85bc4a38
<mask token>

<mask token>
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

<mask token>
urlpatterns = [url('^$', views.home, name='home'), url(
    'location/(?P<location_name>\\w+)/', views.image_location, name=
    'location'), url('category/(?P<category>\\w+)/', views.image_category,
    name='category'), url('^search/', views.search_results, name=
    'search_results')]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
from .views import galleryView, detailsView, image_location
urlpatterns = [url('^$', views.home, name='home'), url(
    'location/(?P<location_name>\\w+)/', views.image_location, name=
    'location'), url('category/(?P<category>\\w+)/', views.image_category,
    name='category'), url('^search/', views.search_results, name=
    'search_results')]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
from .views import galleryView, detailsView, image_location
urlpatterns=[
    url('^$',views.home,name = 'home'),
    url(r'location/(?P<location_name>\w+)/', views.image_location, name='location'),
    url(r'category/(?P<category>\w+)/', views.image_category, name='category'),
    url(r'^search/', views.search_results, name='search_results'),
    # url(r'gallery/', galleryView.as_view(), name = 'gallery'),

]
if settings.DEBUG:
    urlpatterns+= static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
