Created
December 1, 2019 11:04
-
-
Save aballah-chamakh/904ee8a2e350344dfd32f99361d45cae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from django.urls import path | |
from rest_framework_jwt.views import obtain_jwt_token,refresh_jwt_token | |
from django.conf.urls.static import static | |
from django.conf import settings | |
urlpatterns = [ | |
path('admin/', admin.site.urls), | |
path('',include('infrence.urls')), | |
] | |
if settings.DEBUG : | |
urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT) | |
urlpatterns+=static(settings.STATIC_URL,document_root=settings.STATIC_ROOT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment