Ejemplo n.º 1
0
    # User Profile App Urls:

    url(r'^user-registration/$', UserRegistrationView.as_view(), name = 'user-registration'),
    url(r'^user-login/$', UserLoginView.as_view(), name = 'user-login'),
    url(r'^user-profile/$', UserProfileView.as_view(), name = 'user-profile'),

    url(r'^$', HomePage.as_view(), name = 'home-page'),

    url(r'^hospitals-list/$', HospitalsListView.as_view(), name = 'hospitals-list'),
    url(r'^hospital-page/(?P<slug>.*)/$', HospitalPageView.as_view(), name = 'hospital-page'),

    url(r'^clinics-list/$', ClinicsListView.as_view(), name = 'clinics-list'),
    url(r'^clinics-page/(?P<slug>.*)/$', ClinicsPageView.as_view(), name = 'clinics-page'),

    url(r'^dglabs-list/$', DgLabsListView.as_view(), name = 'dglabs-list'),
    url(r'^dglabs-page/(?P<slug>.*)/$', DgLabsPageView.as_view(), name = 'dglabs-page'),

    url(r'^pharmacy-list/$', PharmacyListView.as_view(), name = 'pharmacy-list'),
    url(r'^pharmacy-page/(?P<slug>.*)/$', PharmacyPageView.as_view(), name = 'pharmacy-page'),

    url(r'^get-user-list/$', UserGetListView.as_view(), name = 'get-user-list'),
    url(r'^about-us/$', AboutUsPageView.as_view(), name = 'about-us-page'),
    url(r'^terms-of-services/$', TermsServicePageView.as_view(), name = 'terms-of-page'),
    url(r'^blog/$', BlogPageView.as_view(), name = 'blog-page'),
    url(r'^contact-page/$', ContactPageView.as_view(), name = 'contact-page'),

] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)



Ejemplo n.º 2
0
        name='user-registration'),
    url(r'^user-login/$', UserLoginView.as_view(), name='user-login'),
    url(r'^user-profile/$', UserProfileView.as_view(), name='user-profile'),
    url(r'^$', HomePage.as_view(), name='home-page'),
    url(r'^hospitals-list/$',
        HospitalsListView.as_view(),
        name='hospitals-list'),
    url(r'^hospital-page/(?P<slug>.*)/$',
        HospitalPageView.as_view(),
        name='hospital-page'),
    url(r'^clinics-list/$', ClinicsListView.as_view(), name='clinics-list'),
    url(r'^clinics-page/(?P<slug>.*)/$',
        ClinicsPageView.as_view(),
        name='clinics-page'),
    url(r'^dglabs-list/$', DgLabsListView.as_view(), name='dglabs-list'),
    url(r'^dglabs-page/(?P<slug>.*)/$',
        DgLabsPageView.as_view(),
        name='dglabs-page'),
    url(r'^pharmacy-list/$', PharmacyListView.as_view(), name='pharmacy-list'),
    url(r'^pharmacy-page/(?P<slug>.*)/$',
        PharmacyPageView.as_view(),
        name='pharmacy-page'),
    url(r'^get-user-list/$', UserGetListView.as_view(), name='get-user-list'),
    url(r'^about-us/$', AboutUsPageView.as_view(), name='about-us-page'),
    url(r'^terms-of-services/$',
        TermsServicePageView.as_view(),
        name='terms-of-page'),
    url(r'^blog/$', BlogPageView.as_view(), name='blog-page'),
    url(r'^contact-page/$', ContactPageView.as_view(), name='contact-page'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Ejemplo n.º 3
0
# django imports.
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static

# local file imports.
import settings
from userprofile.views import HomePage, HospitalsPageview, ClinicsPageView, DgLabsPageView, \
    PharmacyPageview, ContactPageView

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),

    # Logout url accessing django in-built logout functions.
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page':'/'}),

    url(r'^$', HomePage.as_view(), name = 'home-page'),
    url(r'^hospitals-list/$', HospitalsPageview.as_view(), name = 'hospitals-page'),
    url(r'^clinics-list/$', ClinicsPageView.as_view(), name = 'clinics-page'),
    url(r'^dglabs-list/$', DgLabsPageView.as_view(), name = 'dglabspage'),
    url(r'^pharmacy-list/$', PharmacyPageview.as_view(), name = 'pharmacy-page'),
    url(r'^contact-page/$', ContactPageView.as_view(), name = 'contact-page'),

] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)