Solving the issues in the login and others
This commit is contained in:
@@ -9,11 +9,10 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'change-me-in-production')
|
||||
#
|
||||
# ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOSTS', '*').split(',')
|
||||
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'216.48.180.218',
|
||||
'uat.eventify.com'
|
||||
'*'
|
||||
]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
||||
@@ -2,11 +2,15 @@ from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.contrib.auth import views as auth_views
|
||||
from accounts.views import dashboard
|
||||
from accounts.views import login_view
|
||||
from accounts.views import logout_view
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
|
||||
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
|
||||
# path('', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
|
||||
# path('logout/', auth_views.LogoutView.as_view(), name='logout'),
|
||||
path("", login_view, name="login"),
|
||||
path("logout/", logout_view, name="logout"),
|
||||
path('dashboard/', dashboard, name='dashboard'),
|
||||
|
||||
path('master-data/', include('master_data.urls')),
|
||||
|
||||
Reference in New Issue
Block a user