Skip to content

Commit

Permalink
fix: example login/logout urls
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Jul 13, 2021
1 parent 9a27d54 commit 1fb2376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions example/unicms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path, include, re_path

from rest_framework import routers, permissions
Expand Down Expand Up @@ -83,3 +84,10 @@
namespace="unicms_editorial_board"),
name="unicms_editorial_board"),

# local_url_prefix = 'local'
urlpatterns += path('login/',
auth_views.LoginView.as_view(template_name='login.html'),
name='login'),
urlpatterns += path('logout/',
auth_views.LogoutView.as_view(template_name='logout.html', next_page='/'),
name='logout'),
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_requirements(fname='requirements.txt'):

setup(
name="unicms",
version='0.22.5',
version='0.22.6',
description="uniCMS is a Django Web Content Management System",
long_description=README,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 1fb2376

Please sign in to comment.