from django.contrib import  admin
from django.urls import path,include
from users import views as userViews
from django.contrib.auth import views as authViews
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('main.urls')),
    path('reg/',userViews.register,name='reg'),
    path('user/',authViews.LoginView.as_view(template_name='users/user.html'),name='user'),
    path('exit/',authViews.LogoutView.as_view(template_name='users/exit.html'),name='exit'),
    path('profile/',userViews.profile,name='profile'),
]
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
