Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created December 1, 2019 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aballah-chamakh/904ee8a2e350344dfd32f99361d45cae to your computer and use it in GitHub Desktop.
Save aballah-chamakh/904ee8a2e350344dfd32f99361d45cae to your computer and use it in GitHub Desktop.
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