<gh_stars>0
from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static


urlpatterns=[
    url('^$',views.home,name = 'home'),
    url(r'^search/',views.search_results,name='search'),
    url(r'^profile/(\d+)',views.profile,name='profile'),
    url(r'upload$',views.upload, name='upload'),
    url(r'^comment/(\d+)$', views.comment, name='comment'),
 
]

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


urlpatterns=[
    url('^$',views.home,name = 'home'),
    url(r'^search/',views.search_results,name='search'),
    url(r'^profile/(\d+)',views.profile,name='profile'),
    url(r'upload$',views.upload, name='upload'),
    url(r'^comment/(\d+)$', views.comment, name='comment'),
 
]

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