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

from . import views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^subreddits', views.subreddits, name='subreddits'),
    url(r'^about', views.about, name='about'),
    url(r'^api', views.api, name='api'),
    url(r'^submission/(?P<id>[\w]+)', views.submission, name='submission'),
    url(r'^subreddit/(?P<subreddit>[\w]+)', views.subreddit, name='subreddit'),
    url(r'^search', views.search, name='search')
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

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

from . import views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^subreddits$', views.subreddits, name='subreddits'),
    url(r'^about$', views.about, name='about'),
    url(r'^api$', views.api, name='api'),
    url(r'^submission/(?P<id>[\w]+)$', views.submission, name='submission'),
    url(r'^subreddit/(?P<subreddit>[\w]+)$', views.subreddit, name='subreddit'),
    url(r'^search$', views.search, name='search')
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

fix how adding fake subdirectory to url would still function