示例#1
0
文件: urls.py 项目: acemaster/zulip
    url(r'^accounts/accept_terms/$', zerver.views.home.accounts_accept_terms, name='zerver.views.home.accounts_accept_terms'),

    # Realm Creation
    url(r'^create_realm/$', zerver.views.registration.create_realm, name='zerver.views.create_realm'),
    url(r'^create_realm/(?P<creation_key>[\w]+)$', zerver.views.registration.create_realm, name='zerver.views.create_realm'),

    # Login/registration
    url(r'^register/$', zerver.views.registration.accounts_home, name='register'),
    url(r'^login/$',  zerver.views.auth.login_page, {'template_name': 'zerver/login.html'}, name='zerver.views.auth.login_page'),

    # A registration page that passes through the domain, for totally open realms.
    url(r'^register/(?P<realm_str>\S+)/$', zerver.views.registration.accounts_home_with_realm_str,
        name='zerver.views.registration.accounts_home_with_realm_str'),

    # API and integrations documentation
    url(r'^api/$', APIView.as_view(template_name='zerver/api.html')),
    url(r'^api/endpoints/$', zerver.views.integrations.api_endpoint_docs, name='zerver.views.integrations.api_endpoint_docs'),
    url(r'^integrations/$', IntegrationView.as_view()),
    url(r'^about/$', TemplateView.as_view(template_name='zerver/about.html')),
    url(r'^apps/$', TemplateView.as_view(template_name='zerver/apps.html')),

    url(r'^robots\.txt$', RedirectView.as_view(url='/static/robots.txt', permanent=True)),

    # Landing page, features pages, signup form, etc.
    url(r'^hello/$', TemplateView.as_view(template_name='zerver/hello.html'), name='landing-page'),
    url(r'^new-user/$', RedirectView.as_view(url='/hello', permanent=True)),
    url(r'^features/$', TemplateView.as_view(template_name='zerver/features.html')),
    url(r'^find_my_team/$', zerver.views.registration.find_my_team, name='zerver.views.registration.find_my_team'),
    url(r'^authors/$', zerver.views.users.authors_view, name='zerver.views.users.authors_view')
]
示例#2
0
    url(r'^accounts/accept_terms/$', zerver.views.home.accounts_accept_terms, name='zerver.views.home.accounts_accept_terms'),

    # Realm Creation
    url(r'^create_realm/$', zerver.views.registration.create_realm, name='zerver.views.create_realm'),
    url(r'^create_realm/(?P<creation_key>[\w]+)$', zerver.views.registration.create_realm, name='zerver.views.create_realm'),

    # Login/registration
    url(r'^register/$', zerver.views.registration.accounts_home, name='register'),
    url(r'^login/$', zerver.views.auth.login_page, {'template_name': 'zerver/login.html'}, name='zerver.views.auth.login_page'),

    # A registration page that passes through the Realm.string_id, for totally open realms.
    url(r'^register/(?P<realm_str>\S+)/$', zerver.views.registration.accounts_home_with_realm_str,
        name='zerver.views.registration.accounts_home_with_realm_str'),

    # API and integrations documentation
    url(r'^api/$', APIView.as_view(template_name='zerver/api.html')),
    url(r'^api/endpoints/$', zerver.views.integrations.api_endpoint_docs, name='zerver.views.integrations.api_endpoint_docs'),
    url(r'^integrations/$', IntegrationView.as_view()),
    url(r'^about/$', TemplateView.as_view(template_name='zerver/about.html')),
    url(r'^apps/$', TemplateView.as_view(template_name='zerver/apps.html')),

    url(r'^robots\.txt$', RedirectView.as_view(url='/static/robots.txt', permanent=True)),

    # Landing page, features pages, signup form, etc.
    url(r'^hello/$', TemplateView.as_view(template_name='zerver/hello.html'), name='landing-page'),
    url(r'^new-user/$', RedirectView.as_view(url='/hello', permanent=True)),
    url(r'^features/$', TemplateView.as_view(template_name='zerver/features.html')),
    url(r'^find_my_team/$', zerver.views.registration.find_my_team, name='zerver.views.registration.find_my_team'),
    url(r'^authors/$', zerver.views.users.authors_view, name='zerver.views.users.authors_view'),

    # Terms of service and privacy pages.
示例#3
0
文件: urls.py 项目: galexrt/zulip
    url(r"^accounts/do_confirm/(?P<confirmation_key>[\w]+)", "confirmation.views.confirm"),
    # Email unsubscription endpoint. Allows for unsubscribing from various types of emails,
    # including the welcome emails (day 1 & 2), missed PMs, etc.
    url(r"^accounts/unsubscribe/(?P<type>[\w]+)/(?P<token>[\w]+)", "zerver.views.unsubscribe.email_unsubscribe"),
    # Portico-styled page used to provide email confirmation of terms acceptance.
    url(r"^accounts/accept_terms/$", "zerver.views.accounts_accept_terms"),
    # Realm Creation
    url(r"^create_realm/$", "zerver.views.create_realm"),
    url(r"^create_realm/(?P<creation_key>[\w]+)$", "zerver.views.create_realm"),
    # Login/registration
    url(r"^register/$", "zerver.views.accounts_home", name="register"),
    url(r"^login/$", "zerver.views.auth.login_page", {"template_name": "zerver/login.html"}),
    # A registration page that passes through the domain, for totally open realms.
    url(r"^register/(?P<domain>\S+)/$", "zerver.views.accounts_home_with_domain"),
    # API and integrations documentation
    url(r"^api/$", APIView.as_view(template_name="zerver/api.html")),
    url(r"^api/endpoints/$", "zerver.views.integrations.api_endpoint_docs"),
    url(r"^integrations/$", IntegrationView.as_view()),
    url(r"^about/$", TemplateView.as_view(template_name="zerver/about.html")),
    url(r"^apps/$", TemplateView.as_view(template_name="zerver/apps.html")),
    url(r"^robots\.txt$", RedirectView.as_view(url="/static/robots.txt")),
    # Landing page, features pages, signup form, etc.
    url(r"^hello/$", TemplateView.as_view(template_name="zerver/hello.html"), name="landing-page"),
    url(r"^new-user/$", RedirectView.as_view(url="/hello")),
    url(r"^features/$", TemplateView.as_view(template_name="zerver/features.html")),
]

# If a Terms of Service is supplied, add that route
if settings.TERMS_OF_SERVICE is not None:
    i18n_urls += [url(r"^terms/$", TemplateView.as_view(template_name="zerver/terms.html"))]