Commit 2aeaba81 authored by John Red Medrano's avatar John Red Medrano

Merge pull request #662 in RMS/api-main-service from red-develop to product-dev

* commit 'a0d80546':
  fixing
parents 2f0d19e3 a0d80546
......@@ -13,7 +13,6 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
import os
from django.contrib import admin
from django.urls import path, include, re_path
from django.conf.urls import url
......@@ -42,18 +41,3 @@ urlpatterns = [
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
else:
urlpatterns += patterns(
'',
(r'^static/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': os.path.join(os.path.dirname(__file__), 'static')} ),
)
# if settings.DEBUG404:
# urlpatterns += patterns('',
# (r'^static/(?P<path>.*)$', 'django.views.static.serve',
# {'document_root': os.path.join(os.path.dirname(__file__), 'static')} ),
# )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment