Exemplo n.º 1
0
"""Project URLs for authenticated users"""

from django.conf.urls import patterns, url

from readthedocs.projects.views.private import AliasList, ProjectDashboard, ImportView
from readthedocs.projects.backends.views import ImportWizardView, ImportDemoView


urlpatterns = patterns(
    # base view, flake8 complains if it is on the previous line.
    '',
    url(r'^$',
        ProjectDashboard.as_view(),
        name='projects_dashboard'),

    url(r'^import/$',
        ImportView.as_view(wizard_class=ImportWizardView),
        {'wizard': ImportWizardView},
        name='projects_import'),

    url(r'^import/manual/$',
        ImportWizardView.as_view(),
        name='projects_import_manual'),

    url(r'^import/manual/demo/$',
        ImportDemoView.as_view(),
        name='projects_import_demo'),

    url(r'^import/github/$',
        'readthedocs.projects.views.private.project_import_github',
        name='projects_import_github'),
Exemplo n.º 2
0
from django.conf.urls import url

from readthedocs.constants import pattern_opts
from readthedocs.projects.views import private
from readthedocs.projects.views.private import (
    ProjectDashboard, ImportView,
    ProjectUpdate, ProjectAdvancedUpdate,
    DomainList, DomainCreate, DomainDelete, DomainUpdate,
    IntegrationList, IntegrationCreate, IntegrationDetail, IntegrationDelete,
    IntegrationExchangeDetail, IntegrationWebhookSync, ProjectAdvertisingUpdate)
from readthedocs.projects.backends.views import ImportWizardView, ImportDemoView


urlpatterns = [
    url(r'^$',
        ProjectDashboard.as_view(),
        name='projects_dashboard'),

    url(r'^import/$',
        ImportView.as_view(wizard_class=ImportWizardView),
        {'wizard': ImportWizardView},
        name='projects_import'),

    url(r'^import/manual/$',
        ImportWizardView.as_view(),
        name='projects_import_manual'),

    url(r'^import/manual/demo/$',
        ImportDemoView.as_view(),
        name='projects_import_demo'),
Exemplo n.º 3
0
"""Project URLs for authenticated users"""

from django.conf.urls import url

from readthedocs.constants import pattern_opts
from readthedocs.projects.views import private
from readthedocs.projects.views.private import (
    ProjectDashboard, ImportView, ProjectUpdate, ProjectAdvancedUpdate,
    DomainList, DomainCreate, DomainDelete, DomainUpdate, IntegrationList,
    IntegrationCreate, IntegrationDetail, IntegrationDelete,
    IntegrationExchangeDetail, IntegrationWebhookSync,
    ProjectAdvertisingUpdate)
from readthedocs.projects.backends.views import ImportWizardView, ImportDemoView

urlpatterns = [
    url(r'^$', ProjectDashboard.as_view(), name='projects_dashboard'),
    url(r'^import/$',
        ImportView.as_view(wizard_class=ImportWizardView),
        {'wizard': ImportWizardView},
        name='projects_import'),
    url(r'^import/manual/$',
        ImportWizardView.as_view(),
        name='projects_import_manual'),
    url(r'^import/manual/demo/$',
        ImportDemoView.as_view(),
        name='projects_import_demo'),
    url(r'^(?P<project_slug>[-\w]+)/$',
        private.project_manage,
        name='projects_manage'),
    url(r'^(?P<project_slug>[-\w]+)/comments_moderation/$',
        private.project_comments_moderation,
Exemplo n.º 4
0
    ImportView,
    IntegrationCreate,
    IntegrationDelete,
    IntegrationDetail,
    IntegrationExchangeDetail,
    IntegrationList,
    IntegrationWebhookSync,
    ProjectAdvancedUpdate,
    ProjectAdvertisingUpdate,
    ProjectDashboard,
    ProjectUpdate,
)


urlpatterns = [
    url(r'^$', ProjectDashboard.as_view(), name='projects_dashboard'),
    url(
        r'^import/$', ImportView.as_view(wizard_class=ImportWizardView),
        {'wizard': ImportWizardView}, name='projects_import',
    ),
    url(
        r'^import/manual/$', ImportWizardView.as_view(),
        name='projects_import_manual',
    ),
    url(
        r'^import/manual/demo/$', ImportDemoView.as_view(),
        name='projects_import_demo',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/$', private.project_manage,
        name='projects_manage',