"""
Definition of urls for django_get_started.
"""

from datetime import datetime
from django.conf.urls import *
from app.forms import BootstrapAuthenticationForm
from app import views as app_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin

# Uncomment the next lines to enable the admin:
# from django.conf.urls import include
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = [
    # Examples:
    #url(r'^(?i)$', app_views.home, name='home'),
    url(r'^(?i)$',
        app_views.login_redirect,
        {
            'template_name': 'app/login.html',
            'authentication_form': BootstrapAuthenticationForm,
            'extra_context':
            {
                'title':'Login',
                'year':datetime.now().year,
            }
        },
        name='login'),
    url(r'^(?i)dashboard$', app_views.dashboard, name='dashboard'),
    url(r'^(?i)patients', app_views.patients, name='patients'),
    url(r'^(?i)patient-profile', app_views.patient_profile, name='patient-profile'),
    url(r'^(?i)signup-success', app_views.signup_success, name='signup-success'),
    url(r'^(?i)signup', app_views.signup, name='signup'),
    url(r'^(?i)messages', app_views.messages, name='messages'),
    url(r'^(?i)save-message', app_views.save_message, name='save-message'),
    url(r'^(?i)save-notes', app_views.save_notes, name='save-notes'),
    url(r'^(?i)create-channel', app_views.create_channel, name='create-channel'),
    url(r'^(?i)fcm', app_views.fcm, name='fcm'),
    url(r'^(?i)token', app_views.token, name='token'),
    url(r'^(?i)login/$',
        auth_views.login,
        {
            'template_name': 'app/login.html',
            'authentication_form': BootstrapAuthenticationForm,
            'extra_context':
            {
                'title':'Login',
                'year':datetime.now().year,
            }
        },
        name='login'),
    url(r'^(?i)logout$',
        auth_views.logout,
        {
            'next_page': '/',
        },
        name='logout'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

f58d4a2b042ec6f8c25574b3ae6355ca624dde0c
<mask token>

<mask token>
urlpatterns = [url('^(?i)$', app_views.login_redirect, {'template_name':
    'app/login.html', 'authentication_form': BootstrapAuthenticationForm,
    'extra_context': {'title': 'Login', 'year': datetime.now().year}}, name
    ='login'), url('^(?i)dashboard$', app_views.dashboard, name='dashboard'
    ), url('^(?i)patients', app_views.patients, name='patients'), url(
    '^(?i)patient-profile', app_views.patient_profile, name=
    'patient-profile'), url('^(?i)signup-success', app_views.signup_success,
    name='signup-success'), url('^(?i)signup', app_views.signup, name=
    'signup'), url('^(?i)messages', app_views.messages, name='messages'),
    url('^(?i)save-message', app_views.save_message, name='save-message'),
    url('^(?i)save-notes', app_views.save_notes, name='save-notes'), url(
    '^(?i)create-channel', app_views.create_channel, name='create-channel'),
    url('^(?i)fcm', app_views.fcm, name='fcm'), url('^(?i)token', app_views
    .token, name='token'), url('^(?i)login/$', auth_views.login, {
    'template_name': 'app/login.html', 'authentication_form':
    BootstrapAuthenticationForm, 'extra_context': {'title': 'Login', 'year':
    datetime.now().year}}, name='login'), url('^(?i)logout$', auth_views.
    logout, {'next_page': '/'}, name='logout')] + static(settings.
    STATIC_URL, document_root=settings.STATIC_ROOT)

<mask token>
from datetime import datetime
from django.conf.urls import *
from app.forms import BootstrapAuthenticationForm
from app import views as app_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
urlpatterns = [url('^(?i)$', app_views.login_redirect, {'template_name':
    'app/login.html', 'authentication_form': BootstrapAuthenticationForm,
    'extra_context': {'title': 'Login', 'year': datetime.now().year}}, name
    ='login'), url('^(?i)dashboard$', app_views.dashboard, name='dashboard'
    ), url('^(?i)patients', app_views.patients, name='patients'), url(
    '^(?i)patient-profile', app_views.patient_profile, name=
    'patient-profile'), url('^(?i)signup-success', app_views.signup_success,
    name='signup-success'), url('^(?i)signup', app_views.signup, name=
    'signup'), url('^(?i)messages', app_views.messages, name='messages'),
    url('^(?i)save-message', app_views.save_message, name='save-message'),
    url('^(?i)save-notes', app_views.save_notes, name='save-notes'), url(
    '^(?i)create-channel', app_views.create_channel, name='create-channel'),
    url('^(?i)fcm', app_views.fcm, name='fcm'), url('^(?i)token', app_views
    .token, name='token'), url('^(?i)login/$', auth_views.login, {
    'template_name': 'app/login.html', 'authentication_form':
    BootstrapAuthenticationForm, 'extra_context': {'title': 'Login', 'year':
    datetime.now().year}}, name='login'), url('^(?i)logout$', auth_views.
    logout, {'next_page': '/'}, name='logout')] + static(settings.
    STATIC_URL, document_root=settings.STATIC_ROOT)

"""
Definition of urls for django_get_started.
"""

from datetime import datetime
from django.conf.urls import *
from app.forms import BootstrapAuthenticationForm
from app import views as app_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin

# Uncomment the next lines to enable the admin:
# from django.conf.urls import include
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = [
    # Examples:
    #url(r'^(?i)$', app_views.home, name='home'),
    url(r'^(?i)$',
        app_views.login_redirect,
        {
            'template_name': 'app/login.html',
            'authentication_form': BootstrapAuthenticationForm,
            'extra_context':
            {
                'title':'Login',
                'year':datetime.now().year,
            }
        },
        name='login'),
    url(r'^(?i)dashboard$', app_views.dashboard, name='dashboard'),
    url(r'^(?i)patients', app_views.patients, name='patients'),
    url(r'^(?i)patient-profile', app_views.patient_profile, name='patient-profile'),
    url(r'^(?i)signup-success', app_views.signup_success, name='signup-success'),
    url(r'^(?i)signup', app_views.signup, name='signup'),
    url(r'^(?i)messages', app_views.messages, name='messages'),
    url(r'^(?i)save-message', app_views.save_message, name='save-message'),
    url(r'^(?i)save-notes', app_views.save_notes, name='save-notes'),
    url(r'^(?i)create-channel', app_views.create_channel, name='create-channel'),
    url(r'^(?i)fcm', app_views.fcm, name='fcm'),
    url(r'^(?i)token', app_views.token, name='token'),
    url(r'^(?i)login/$',
        auth_views.login,
        {
            'template_name': 'app/login.html',
            'authentication_form': BootstrapAuthenticationForm,
            'extra_context':
            {
                'title':'Login',
                'year':datetime.now().year,
            }
        },
        name='login'),
    url(r'^(?i)logout$',
        auth_views.logout,
        {
            'next_page': '/',
        },
        name='logout'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
