Example #1
0
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin

from dashboard.views import LoginView, LogoutView, IndexView
from django.views.static import serve
#from opsweb.settings import STATIC_ROOT

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    #url(r'^static/(?P<path>.*)$', serve, {"document_root": STATIC_ROOT}),
    url('^$', IndexView.as_view(), name='index'),
    url('^index/', IndexView.as_view(), name='index'),
    url('^login/', LoginView.as_view(), name='login'),
    url('^logout/', LogoutView.as_view(), name='logout'),
    url('^dashboard/', include("dashboard.urls", namespace="dashboard")),
    url('^confd/', include('confd.urls', namespace='confd')),
]
Example #2
0
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from dashboard.views import IndexView

urlpatterns = [

    # admin
    url(r'^admin/', include(admin.site.urls)),

    # bucketlist web dashboard:
    url(r'^$', IndexView.as_view(), name='home'),
    url(r'^signout/$', auth_views.logout_then_login, name='signout'),
    url(r'^dashboard/', include('dashboard.urls', namespace='dashboard')),

    # bucketlist api:
    url(r'^api/', include('api.urls', namespace='api')),
]
Example #3
0
from django.urls import path

from dashboard.views import IndexView

urlpatterns = [path('', IndexView.as_view(), name='index')]
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from dashboard.views import IndexView


urlpatterns = [

	# admin
	url(r'^admin/', include(admin.site.urls)),

	# bucketlist web dashboard:
    url(r'^$', IndexView.as_view(), name='home'),
    url(r'^signout/$', auth_views.logout_then_login, name='signout'),
    url(r'^dashboard/', include('dashboard.urls', namespace='dashboard')),

    # bucketlist api:
    url(r'^api/', include('api.urls', namespace='api')),

]


    
Example #5
0
from django.conf.urls import include, url
from dashboard.views import IndexView
urlpatterns = [
    url(r'^$', IndexView.as_view(),name="homepage")
]
Example #6
0
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.http import HttpResponse
from django.urls import path, include
from rest_framework_swagger.views import get_swagger_view

from dashboard.views import IndexView

schema_view = get_swagger_view(title='Version Dashboard API')


def health_check(request):
    return HttpResponse("OK")


urlpatterns = [
    path('admin/', admin.site.urls),
    path(
        'api/',
        include(('dashboard.api_urls', 'dashboard'),
                namespace='dashboard_api')),
    path('dashboard/',
         include(('dashboard.urls', 'dashboard'), namespace='dashboard')),
    path('docs/', schema_view),
    path('accounts/', include('allauth.urls')),
    path('', IndexView.as_view(), name='homepage'),
    path('health_check', health_check, name='health_check'),
]
Example #7
0
"""Infogram URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from dashboard.views import IndexView, LoginView, RegisterView


urlpatterns = [
    path('admin/', admin.site.urls),
    path('', IndexView.as_view(), name='index'),
    path('login_infogram', LoginView.as_view(), name='login'),
    path('registro_infogram', RegisterView.as_view(), name='registro')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Example #8
0
from django.conf.urls import include, url
from dashboard.views import IndexView
urlpatterns = [
    url(r'^$', IndexView.as_view(),name="homepage"),
]
Example #9
0
from django.urls import path
from dashboard.views import IndexView, LoginView, command_view, GroupCreateView, logout_view, GroupView, \
    ModuleCreateView, ModuleView, RunView, AgentView, ReportView

from django.contrib.auth.decorators import login_required

urlpatterns = [
    path('', IndexView.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', logout_view),
    path('command/', command_view),
    path('group/create/', login_required(GroupCreateView.as_view())),
    path('group/<int:group_id>/', login_required(GroupView.as_view())),
    path('module/add/', login_required(ModuleCreateView.as_view())),
    path('module/<uuid:module_id>/', login_required(ModuleView.as_view())),
    path('run/<int:group_id>/', login_required(RunView.as_view())),
    path('agent/<uuid:agent_id>/', login_required(AgentView.as_view())),
    path('report/<str:report_type>/<int:group_id>/',
         login_required(ReportView.as_view())),
    path('report/<str:report_type>/<uuid:entity_uuid>/',
         login_required(ReportView.as_view())),
]
Example #10
0
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from dashboard.views import IndexView, PerfilView, PublicacionCreate
from usuarios.views import LoginView, RegisterView, LogoutView


urlpatterns = [
    path('admin/', admin.site.urls),
    path('', LoginView.as_view(), name='login'),
    path('inicio', IndexView.as_view(), name='index'),
    path('registro_infogram', RegisterView.as_view(), name='registro'),
    path('logout_infogram', LogoutView.as_view(), name='logout'),
    path('perfil_infogram', PerfilView.as_view(), name='perfil'),
    path('crear_perfil_infogram', PublicacionCreate.as_view(), name='pub-crear'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Example #11
0
from django.urls import re_path

from dashboard.views import IndexView, StatsView, ResolveView


urlpatterns = [
    re_path(r'^$', IndexView.as_view(), name='dashboard_index'),
    re_path(r'stats$', StatsView.as_view(), name='dashboard_stats'),
    re_path(r'^resolve/(?P<id>\d+)$', ResolveView.as_view(), name='dashboard_resolve')
]
Example #12
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from dashboard.views import IndexView, DeployView, InventoryView, ApplicationView

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'deliverman.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'/deploy/$', DeployView.as_view(), name='dashboard.deploy'),
    url(r'/inventory/$', InventoryView.as_view(), name='dashboard.inventory'),
    url(r'/project/$', ApplicationView.as_view(), name='dashboard.application'),
    url(r'/$', IndexView.as_view(), name='dashboard.index'),
)
Example #13
0
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.decorators import login_required

from dashboard.views import IndexView

urlpatterns = [
    url(r'^$', login_required(IndexView.as_view()), name='home'),
]
Example #14
0
from django.conf.urls import patterns, include, url

from dashboard.views import IndexView, LoginView, LogoutView

urlpatterns = patterns('dashboard.views',
    url(r'^$', IndexView.as_view(), name='landing-page'),
    #url(r'^login$', LoginView.as_view(), name='login-view'),
    #url(r'^logout$', LogoutView.as_view(), name='logout-view'),
)