コード例 #1
0
ファイル: urls.py プロジェクト: varunsingh87/concordia
    re_path(r"^account/", include(settings.REGISTRATION_URLS)),
    re_path(r"^experiments/(.+)/$",
            views.ExperimentsView.as_view(),
            name="experiments"),
    re_path(r"^wireframes/", include("concordia.experiments.wireframes.urls")),
    re_path(
        r"^privacy-policy/$",
        TemplateView.as_view(template_name="policy.html"),
        name="privacy-policy",
    ),
    re_path(
        r"^cookie-policy/$",
        TemplateView.as_view(template_name="policy.html"),
        name="cookie-policy",
    ),
    re_path(r"^faq/$", FAQView.as_view(), name="faq"),
    re_path(r"^legal/$",
            TemplateView.as_view(template_name="legal.html"),
            name="legal"),
    re_path(r"^admin/", admin.site.urls),
    # Apps
    re_path(r"^forum/", include(board.urls)),

    # Web Services
    re_path(r'^ws/page_in_use/(?P<page_url>(.*?))/$',
            views_ws.PageInUseGet.as_view()),
    re_path(r'^ws/page_in_use_update/(?P<page_url>(.*?))/$',
            views_ws.PageInUsePut.as_view()),
    re_path(r'^ws/page_in_use/$', views_ws.PageInUseCreate.as_view()),
    re_path(r'^ws/page_in_use_user/(?P<user>(.*?))/(?P<page_url>(.*?))/$',
            views_ws.PageInUseUserGet.as_view()),
コード例 #2
0
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib import admin
from signup.views import SignupCreate, SignupCreateWithQuestionaire
from faq.views import FAQView
from . import views


admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'flower_subscription_test_site.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', views.HomepageView.as_view(), name='home'),
    # url(r'^signup_list/$', signup_list, name='signup_list'),
    url(r'^signup/$', SignupCreate.as_view(), name='signup'),
    url(r'^signupwithquestionaire/$', SignupCreateWithQuestionaire.as_view(), name='signup_with_questionaire'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^faq/$', FAQView.as_view(), name='faq_view'),
)
コード例 #3
0
ファイル: urls.py プロジェクト: Astyan-42/skepticalscience
from django.conf.urls import url
from django.views.generic import TemplateView
from faq.views import FAQView

urlpatterns = [url(r'^$', FAQView.as_view(), name='faq')]
コード例 #4
0
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib import admin
from signup.views import SignupCreate, SignupCreateWithQuestionaire
from faq.views import FAQView
from . import views

admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    # url(r'^$', 'flower_subscription_test_site.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', views.HomepageView.as_view(), name='home'),
    # url(r'^signup_list/$', signup_list, name='signup_list'),
    url(r'^signup/$', SignupCreate.as_view(), name='signup'),
    url(r'^signupwithquestionaire/$',
        SignupCreateWithQuestionaire.as_view(),
        name='signup_with_questionaire'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^faq/$', FAQView.as_view(), name='faq_view'),
)
コード例 #5
0
from django.conf.urls import url
from faq.views import FAQView


urlpatterns = [
    url(r'^$', FAQView.as_view(), name='faq'),
]
コード例 #6
0
 def test_get_queryset_empty(self):
     request = RequestFactory().get('/faq-test/')
     view = FAQView()
     view = setup_view(view, request)
     queryset = view.get_queryset()
     self.assertEqual(list(queryset), [])
コード例 #7
0
    ),
    re_path(r'^account/profile/$',
            views.AccountProfileView.as_view(),
            name='user-profile'),
    re_path(r'^account/', include(Config.Get('REGISTRATION_URLS'))),
    re_path(r'^experiments/(.+)/$',
            views.ExperimentsView.as_view(),
            name='experiments'),
    re_path(r'^wireframes/', include('concordia.experiments.wireframes.urls')),
    re_path(r'^privacy-policy/$',
            TemplateView.as_view(template_name='policy.html'),
            name='privacy-policy'),
    re_path(r'^cookie-policy/$',
            TemplateView.as_view(template_name='policy.html'),
            name='cookie-policy'),
    re_path(r'^faq/$', FAQView.as_view(), name='faq'),
    re_path(r'^legal/$',
            TemplateView.as_view(template_name='legal.html'),
            name='legal'),
    re_path(r'^admin/', admin.site.urls),

    # Apps
    re_path(r'^forum/', include(board.urls))
]

urlpatterns += [
    re_path(r'^password_reset/$',
            auth_views.password_reset,
            name='password_reset'),
    re_path(r'^password_reset/done/$',
            auth_views.password_reset_done,
コード例 #8
0
from django.urls import path
from faq.views import FAQView

app_name = "faq"
urlpatterns = [path("", FAQView.as_view(), name="faq")]