25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
from django.contrib import admin
|
|
from django.urls import include, path, reverse_lazy
|
|
from django.views.generic.edit import CreateView
|
|
from employees.forms import RegistrationForm
|
|
# from backend.employees.views_front import profile, avatar_remove
|
|
from django.conf.urls.static import static
|
|
from django.conf import settings
|
|
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('auth/', include('django.contrib.auth.urls')),
|
|
path('auth/register/', CreateView.as_view(
|
|
template_name='registration/register.html',
|
|
form_class=RegistrationForm,
|
|
success_url=reverse_lazy('profile')
|
|
), name='register'),
|
|
# path('avatar/remove/', avatar_remove, name='avatar_remove'),
|
|
path('calendar/', include('calendar_app.urls', namespace='calendar')),
|
|
path('documents/', include('documents.urls', namespace='documents')),
|
|
path('requests/', include('requests_app.urls', namespace='requests_app')),
|
|
path('employees/', include('employees.urls_front', namespace='employees')),
|
|
path('', include('feed.urls', namespace='feed')),
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|