Skip to content

Commit

Permalink
Serve static files even in local network
Browse files Browse the repository at this point in the history
  • Loading branch information
kleag committed Apr 21, 2021
1 parent 3216ce2 commit 87142d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moisture/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""
from django.urls import path, include
from django.contrib.auth.models import User
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from rest_framework import routers, serializers, viewsets


Expand All @@ -29,3 +30,6 @@
urlpatterns += [
path('api-auth/', include('rest_framework.urls')),
]

urlpatterns += staticfiles_urlpatterns()

0 comments on commit 87142d8

Please sign in to comment.