Skip to content

Commit

Permalink
add the config to render the static files .
Browse files Browse the repository at this point in the history
  • Loading branch information
joel Ngahu authored and joel Ngahu committed May 14, 2019
1 parent bd154bd commit 8befe86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions passwordless_drf/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@
from rest_framework.authtoken import views


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

urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^api-token-auth/', views.obtain_auth_token),
url(r'^accounts/', include('accounts.urls',namespace='accounts_auth')),
]




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

0 comments on commit 8befe86

Please sign in to comment.