GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rcvis/visualizer/urls.py at main · artoonie/rcvis

Expand file tree

/

urls.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
58 lines (48 loc) · 2.54 KB
/

urls.py

Copy path

File metadata and controls

58 lines (48 loc) · 2.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
""" URLs for the primary upload and visualization app """
from django.contrib.sitemaps.views import sitemap
from django.urls import include, path
from rest_framework import routers
from accounts import permissions
from visualizer import sitemaps
from visualizer import views
# Routers provide an easy way of automatically determining the URL conf.
router = routers.DefaultRouter()
router.register('bp', views.BallotpediaViewSet, 'bp')
router.register('visualizations', views.JsonOnlyViewSet, 'visualizations')
router.register('verbose', views.VerboseViewSet, 'verbose')
router.register('users', views.UserViewSet)
sitemaps = {
'static': sitemaps.StaticViewSitemap,
'visualizations': sitemaps.VisualizationSitemap,
}
urlpatterns = [
path('', views.Index.as_view()),
path('index.html', views.Index.as_view(), name='index'),
path('v/<slug>', views.Visualize.as_view(), name='visualize'),
path('v/<slug>/edit', views.EditUpload.as_view(), name='editUpload'),
path('v/<slug>/delete', views.DeleteUpload.as_view(), name='deleteUpload'),
path('ve/<slug>', views.VisualizeEmbedded.as_view(), name='visualizeEmbedded'),
path('vo/<slug>', views.VisualizeEmbedly.as_view(), name='visualizeEmbedlyDefault'),
path('vo/<slug>/<vistype>', views.VisualizeEmbedly.as_view(), name='visualizeEmbedly'),
path('vb/<slug>', views.VisualizeBallotpedia.as_view(), name='visualizeBallotpedia'),
path('raw/<slug>', views.DownloadRawData.as_view(), name='downloadRawData'),
path('updates.html', views.Updates.as_view(), name='updates'),
path('upload.html', views.Upload.as_view(), name='upload'),
path('uploadByDataTable.html', views.UploadByDataTable.as_view(), name='uploadByDataTable'),
path('oembed', views.Oembed.as_view(), name='oembed'),
# Upload Validation API / AJAX
path('validateDataEntry', views.ValidateDataEntry.as_view(), name='validateDataEntry'),
path('convertToRCTabFormat', views.ConvertToRCTabFormat.as_view(),
name='convertToRCTabFormat'),
# REST API
path('api/', include(router.urls)),
# This is used by the rest_framework to create a login button
path('api/auth/', include('rest_framework.urls')),
path('api/auth/get-token', permissions.ObtainAuthTokenIfEnabled.as_view()),
# sitemap
path('sitemap.xml', sitemap, {'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'),
# Deprecated but keep old URLs alive indefinitely
path('visualize=<slug>', views.Visualize.as_view()),
path('visualizeEmbedded=<slug>', views.VisualizeEmbedded.as_view()),
]
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.