Skip to content

Commit

Permalink
Registra rotas de usuários
Browse files Browse the repository at this point in the history
  • Loading branch information
brnocesar committed Jan 20, 2021
1 parent 850190d commit ccce69a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions apps/usuarios/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.urls import path
from . import views

urlpatterns = [
path('login', views.login, name='login'),
path('logout', views.logout, name='logout'),
path('cadastro', views.cadastro, name='cadastro'),
path('dashboard', views.dashboard, name='dashboard'),
]
12 changes: 11 additions & 1 deletion apps/usuarios/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
from django.shortcuts import render

# Create your views here.
def login(request):
pass

def logout(request):
pass

def cadastro(request):
pass

def dashboard(request):
pass
1 change: 1 addition & 0 deletions djangoreceitas/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

urlpatterns = [
path('', include('apps.receitas.urls')),
path('usuarios', include('apps.usuarios.urls')),
path('admin/', admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit ccce69a

Please sign in to comment.