# -*- encoding: utf-8 -*-
"""
Copyright (c) 2021 ronyman.com
"""

from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from apps.user import views as user_views
from.views import EditProfilePage


urlpatterns = [
    #User
    path('admin/', admin.site.urls),
    path('register/', user_views.register, name='register'),
    path('login/', auth_views.LoginView.as_view(template_name='registration/login.html'), name='login'),
    path('profile/', user_views.profile, name='profile'),
    path('edit_profile/', user_views.edit_profile, name='edit_profile'),
    path("myprofile/", user_views.myprofile, name="Myprofile"),
    path('logout/', auth_views.LogoutView.as_view(template_name='users/logout.html'), name='logout'),
    #path('tinymce/', include('tinymce.urls')),
    path('edit_profile_page/', user_views.EditProfilePage.as_view(template_name='registration/edit_profile_page.html'), name='edit_profile_page'),
    # For PasswordPresset

    path('admin/password_reset/',auth_views.PasswordResetView.as_view(),name='admin_password_reset',),
    path('admin/password_reset/done/',auth_views.PasswordResetDoneView.as_view(),name='password_reset_done',),
    path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(),name='password_reset_confirm',),
    path('reset/done/',auth_views.PasswordResetCompleteView.as_view(),name='password_reset_complete',),
]
[(17, 'django.urls.path', 'path', (['"""admin/"""', 'admin.site.urls'], {}), False, 'from django.urls import path, include\n'), (18, 'django.urls.path', 'path', (['"""register/"""', 'user_views.register'], {'name': '"""register"""'}), False, 'from django.urls import path, include\n'), (20, 'django.urls.path', 'path', (['"""profile/"""', 'user_views.profile'], {'name': '"""profile"""'}), False, 'from django.urls import path, include\n'), (21, 'django.urls.path', 'path', (['"""edit_profile/"""', 'user_views.edit_profile'], {'name': '"""edit_profile"""'}), False, 'from django.urls import path, include\n'), (22, 'django.urls.path', 'path', (['"""myprofile/"""', 'user_views.myprofile'], {'name': '"""Myprofile"""'}), False, 'from django.urls import path, include\n'), (19, 'django.contrib.auth.views.LoginView.as_view', 'auth_views.LoginView.as_view', ([], {'template_name': '"""registration/login.html"""'}), True, 'from django.contrib.auth import views as auth_views\n'), (23, 'django.contrib.auth.views.LogoutView.as_view', 'auth_views.LogoutView.as_view', ([], {'template_name': '"""users/logout.html"""'}), True, 'from django.contrib.auth import views as auth_views\n'), (25, 'apps.user.views.EditProfilePage.as_view', 'user_views.EditProfilePage.as_view', ([], {'template_name': '"""registration/edit_profile_page.html"""'}), True, 'from apps.user import views as user_views\n'), (28, 'django.contrib.auth.views.PasswordResetView.as_view', 'auth_views.PasswordResetView.as_view', ([], {}), True, 'from django.contrib.auth import views as auth_views\n'), (29, 'django.contrib.auth.views.PasswordResetDoneView.as_view', 'auth_views.PasswordResetDoneView.as_view', ([], {}), True, 'from django.contrib.auth import views as auth_views\n'), (30, 'django.contrib.auth.views.PasswordResetConfirmView.as_view', 'auth_views.PasswordResetConfirmView.as_view', ([], {}), True, 'from django.contrib.auth import views as auth_views\n'), (31, 'django.contrib.auth.views.PasswordResetCompleteView.as_view', 'auth_views.PasswordResetCompleteView.as_view', ([], {}), True, 'from django.contrib.auth import views as auth_views\n')]