Skip to content

Commit

Permalink
Urls: FIxing some users urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi-KLevy committed Jul 31, 2024
1 parent 898e5cf commit a7f7dc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions forunb/main/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.urls import path
from django.urls import path, include
from . import views
from django.contrib.auth import views as auth_views

Expand All @@ -10,6 +10,7 @@
path('forums/', views.forum_list, name='forum_list'),
path('new_question/<int:forum_id>/', views.new_question, name='new_question'),
path('new_answer/<int:question_id>/', views.new_answer, name='new_answer'),
path('accounts/login/', auth_views.LoginView.as_view(), name='login'),
path('accounts/logout/', auth_views.LogoutView.as_view(), name='logout'),
path('users/', include('users.urls')), # Inclui as URLs do app 'users'
#path('accounts/login/', auth_views.LoginView.as_view(), name='login'),
#path('accounts/logout/', auth_views.LogoutView.as_view(), name='logout'),
]
2 changes: 2 additions & 0 deletions forunb/users/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
urlpatterns = [
path('register/', views.register, name='register'),
path('logout/', views.Logout_view, name='logout'),
path('login/', auth_views.LoginView.as_view(), name='login'),

]
# urlpatterns = [
# path('register/', views.register_unb_email, name='register_unb_email'),
Expand Down

0 comments on commit a7f7dc0

Please sign in to comment.