Example #1
0
from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin

from notifications.views import (NotificationListView, MarkNotificationsView,
                                 EditNotificationSettings, EditMailSettings)
from tenders.views import modal_content
from common.views import HomeView

admin.autodiscover()

urlpatterns = patterns(
    '', url(r'^$', HomeView.as_view(), name='home'),
    url(r'^modal-content/$', modal_content, name='modal_content'),
    url(r'^notifications/$',
        NotificationListView.as_view(),
        name='notifications'),
    url(r'^mark_notifications/$',
        MarkNotificationsView.as_view(),
        name='mark_notifications'),
    url(r'^notification_settings/$',
        EditNotificationSettings.as_view(),
        name='notification_settings'),
    url(r'mail_settings/$', EditMailSettings.as_view(), name='mail_settings'),
    url(r'^employer/', include('employer.urls')),
    url(r'^messages/', include('django_messages.urls')),
    url(r'^accounts/', include('accounts.urls')),
    url(r'^provider/', include('provider.urls')),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
    url(r'^admin/', include(admin.site.urls)))
Example #2
0
from django.urls import path
from common.views import IndexView, HomeView

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('home/', HomeView.as_view(), name='home')
]
Example #3
0
    add_api_settings,
    view_api_settings,
    update_api_settings,
    delete_api_settings,
    change_passsword_by_admin,
    google_login,
    create_lead_from_site,
    CRMcalculations,
)
from django.conf.urls.static import static
from django.conf import settings

app_name = 'common'

urlpatterns = [
    path('', HomeView.as_view(), name='home'),
    path('post/', HomeView.as_view(), name='post'),
    path('login/', LoginView.as_view(), name='login'),
    path('forgot-password/',
         ForgotPasswordView.as_view(),
         name='forgot_password'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('change-password/',
         ChangePasswordView.as_view(),
         name='change_password'),
    path('profile/', ProfileView.as_view(), name='profile'),

    # User views
    path('users/list/', UsersListView.as_view(), name='users_list'),
    path('users/create/', CreateUserView.as_view(), name='create_user'),
    path('users/<int:pk>/edit/', UpdateUserView.as_view(), name="edit_user"),
Example #4
0
    edit_comment,
    get_teams_and_users,
    google_login,
    landing_page,
    remove_comment,
    resend_activation_link,
    update_api_settings,
    view_api_settings,
)

app_name = "common"


urlpatterns = [
    path("", landing_page, name="landing_page"),
    path("dashboard/", HomeView.as_view(), name="dashboard"),
    path("login/", CompanyLoginView.as_view(), name="login"),
    #     path('login/', LoginView.as_view(), name='login'),
    path("register/", RegistrationView.as_view(), name="register"),
    path("auth/domain/", check_sub_domain, name="check_domain"),
    path("forgot-password/", ForgotPasswordView.as_view(), name="forgot_password"),
    path("logout/", LogoutView.as_view(), name="logout"),
    path("change-password/", ChangePasswordView.as_view(), name="change_password"),
    path("profile/", ProfileView.as_view(), name="profile"),
    # User views
    path("users/list/", UsersListView.as_view(), name="users_list"),
    path("users/create/", CreateUserView.as_view(), name="create_user"),
    path("users/<int:pk>/edit/", UpdateUserView.as_view(), name="edit_user"),
    path("users/<int:pk>/view/", UserDetailView.as_view(), name="view_user"),
    path("users/<int:pk>/delete/", UserDeleteView.as_view(), name="remove_user"),
    path("password-reset/", PasswordResetView.as_view(), name="password_reset"),
Example #5
0
from django.contrib.auth.views import login, logout_then_login
from django.views.i18n import javascript_catalog

from common.forms import CommonAuthenticationForm
from common.views import HomeView

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^jsi18n/$', javascript_catalog, name='javascript-catalog'),

    url(r'^login/$', login, name='login', kwargs={
        'authentication_form': CommonAuthenticationForm,
    }),
    url(r'^logout/$', logout_then_login, name='logout'),

    url(r'^$', HomeView.as_view(), name='home'),
]

if 'apptest' in settings.INSTALLED_APPS:  # pragma: nobranch
    urlpatterns += [
        url(r'^test', include('apptest.urls', namespace='apptest')),
    ]

if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
    import debug_toolbar

    urlpatterns += [
        url(r'^__debug__/', include(debug_toolbar.urls)),
    ]

admin.site.site_header = 'project'
Example #6
0
    document_update, DocumentDetailView, DocumentDeleteView, download_document,
    change_user_status, download_attachment, add_comment, edit_comment,
    remove_comment, api_settings, add_api_settings, view_api_settings,
    update_api_settings, delete_api_settings, change_passsword_by_admin,
    google_login, create_lead_from_site, activate_user, resend_activation_link,
    currency_settings)
from django.conf.urls.static import static
from django.conf import settings

app_name = 'common'

urlpatterns = [
    path('', DashboardView.as_view(), name='dashboard'),
    path('individual/', IndvCaseDashboardView.as_view(), name='individual'),
    path('cases/', CaseDashboardView.as_view(), name='casedashboard'),
    path('sales/', HomeView.as_view(), name='home'),
    path('salesind/', SalesIndividual.as_view(), name="saleindividual"),
    path('login/', LoginView.as_view(), name='login'),
    path('forgot-password/',
         ForgotPasswordView.as_view(),
         name='forgot_password'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('change-password/',
         ChangePasswordView.as_view(),
         name='change_password'),
    path('profile/', ProfileView.as_view(), name='profile'),

    # User views
    path('users/list/', UsersListView.as_view(), name='users_list'),
    path('users/create/', CreateUserView.as_view(), name='create_user'),
    path('users/<int:pk>/edit/', UpdateUserView.as_view(), name="edit_user"),
Example #7
0
from django.urls import path

from common.views import HomeView

app_name = "common"

urlpatterns = [path("", HomeView.as_view(), name="home")]