Skip to content

Commit

Permalink
Adicionado redirecionaento para administracao
Browse files Browse the repository at this point in the history
  • Loading branch information
feliperian committed Dec 23, 2019
1 parent 551e926 commit 66ba188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loja/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"""
from django.contrib import admin
from django.urls import include, path
from django.views.generic import RedirectView
from loja.router import router

urlpatterns = [
path('', RedirectView.as_view(url='/admin')),
path('admin/', admin.site.urls),
path('api/', include(router.urls)),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
Expand Down

0 comments on commit 66ba188

Please sign in to comment.