-
Mansoor Saleem authoredMansoor Saleem authored
urls.py 576 B
from django.conf.urls import url, include
from django.contrib import admin
from . import views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^articles/', include('articles.urls')),
url(r'^accounts/', include('accounts.urls')),
url(r'^about/$', views.about),
]
urlpatterns += staticfiles_urlpatterns() #if we are in debug mode
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)