Exemplo n.º 1
0
        RDAUpdateView.as_view(),
        name='rda_update'),
    url(r'^rules/rda/(?P<pk>\d+)/delete/$',
        RDADeleteView.as_view(),
        name='rda_delete'),
    url(r'^rules/rdpc/create/$', RDPCCreateView.as_view(), name='rdpc_create'),
    url(r'^rules/rdpc/(?P<pk>\d+)/edit/$',
        RDPCUpdateView.as_view(),
        name='rdpc_update'),
    url(r'^rules/rdpc/(?P<pk>\d+)/delete/$',
        RDPCDeleteView.as_view(),
        name='rdpc_delete'),

    # Analytics Home
    # Pagina principal con los reportes
    url(r'^analytics/$', AnalyticsView.as_view(), name='analytics'),
    # Reporte 1
    url(r'^report_1/$', Report_1View.as_view(), name='report_1'),
    # Reporte 2
    url(r'^report_2/$', Report_2View.as_view(), name='report_2'),
    # Reporte 3
    url(r'^report_3/$', Report_3View.as_view(), name='report_3'),
    # Reporte 4
    url(r'^report_4/$', Report_4View.as_view(), name='report_4'),
    # Reporte Mapa de calor
    url(r'^heatmap/$', HeatMapView.as_view(), name='heatmap'),
]

urlpatterns = [
    url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns
Exemplo n.º 2
0
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
import settings
from django.conf.urls.static import static
from game.views import AddGameView, DashboardView
from analytics.views import AnalyticsView
#from signup.views import LandingView

admin.autodiscover()

#urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', LandingView.as_view(), name='login'),
    # url(r'^logout/$', 'signup.views.logout', name='logout'),
    url(r'^$', DashboardView.as_view(), name='dashboard'),
    url(r'^add_game/$', AddGameView.as_view(), name='add_game'),
    url(r'^game_add/$', 'game.views.process_game', name='game_add'),
    url(r'^analytics/$', AnalyticsView.as_view(), name='analytics'),
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
Exemplo n.º 3
0
 path('membercreate', MemberCreateView.as_view(), name='membercreate'),
 path('memberupdate/<slug:slug>',
      MemberUpdateView.as_view(),
      name='memberupdate'),
 path('memberdetails/<slug:slug>',
      MemberDetails.as_view(),
      name='memberdetails'),
 path('doesnotmatter', load_branches, name='ajax_load_branches'),
 path('doesnotmatter2', load_cities, name='ajax_load_cities'),
 path('attendancecreate',
      AttendanceCreate.as_view(),
      name='attendancecreate'),
 path('attendancedetails/<slug:slug>',
      AttendanceDetails.as_view(),
      name='attendancedetails'),
 path('analytics', AnalyticsView.as_view(), name='analytics'),
 path('admin/', admin.site.urls),
 path('passwordreset',
      auth_views.PasswordResetView.as_view(
          template_name='accounts/passwordreset.htm'),
      name='passwordreset'),
 path('passwordresetsent',
      auth_views.PasswordResetDoneView.as_view(
          template_name='accounts/passwordresetsent.htm'),
      name='password_reset_done'),
 path('reset/<uidb64>/<token>/',
      auth_views.PasswordResetConfirmView.as_view(
          template_name='accounts/passwordresetconfirm.htm'),
      name='password_reset_confirm'),
 path('passwordresetcomplete',
      auth_views.PasswordResetCompleteView.as_view(
Exemplo n.º 4
0
from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from analytics.views import AnalyticsView

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', AnalyticsView.as_view(), name='home'),

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

#static
#WARNING: dev only
if settings.DEV_STATIC:
    urlpatterns += patterns('',
                            url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
                                    {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
                            url(r'', include('django.contrib.staticfiles.urls')),
                            )