Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
4e24576c
Commit
4e24576c
authored
Jul 29, 2018
by
David Haynes
🙆
Browse files
Cleanup (read: deletion) of old code
parent
4a95d159
Pipeline
#2636
passed with stage
in 1 minute and 8 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
4e24576c
This diff is collapsed.
Click to expand it.
go/settings/urls.py
View file @
4e24576c
...
...
@@ -18,8 +18,8 @@ from cas import views as cas_views
from
rest_framework
import
routers
router
=
routers
.
DefaultRouter
()
router
.
register
(
r
'my'
,
views
.
URLViewSet
)
router
.
register
(
r
'users'
,
views
.
UserViewSet
)
router
.
register
(
r
'my'
,
views
.
URLViewSet
,
base_name
=
"my"
)
router
.
register
(
r
'registereduser'
,
views
.
RegisteredUserViewSet
)
# This function attempts to import an admin module in each installed
...
...
@@ -39,42 +39,12 @@ urlpatterns = [
path
(
'auth/'
,
include
(
'rest_framework.urls'
))
# # / - Homepage url. Cached for 1 second (this is the page you see after
# # logging in, so having it show as not logged in is strange)
# path('', cache_page(1)(go.views.index), name='index'),
# # /view/<short> - View URL data. Cached for 15 minutes
# re_path(r'^view/(?P<short>([\U00010000-\U0010ffff][\U0000200D]?)+)$',
# cache_page(60 * 15)(go.views.view), name='view'),
# re_path(r'^view/(?P<short>[-\w]+)$',
# cache_page(60 * 15)(go.views.view), name='view'),
# # /about - About page. Cached for 15 minutes
# path('about', cache_page(60 * 15)
# (TemplateView.as_view(template_name='core/about.html')), name='about'),
# # /signup - Signup page for access. Cached for 15 minutes
# path('signup', cache_page(60 * 15)(go.views.signup), name='signup'),
# # /new - Create a new Go Link
# path('new', go.views.new_link, name='new_link'),
# # /my - My-Links page, view and review links.
# path('my', go.views.my_links, name='my_links'),
# # /edit/<short> - Edit link form
# path('edit/<slug:short>', go.views.edit, name='edit'),
# # /delete/<short> - Delete a link, no content display.
# path('delete/<slug:short>', go.views.delete, name='delete'),
# # /registered - registration complete page. Cached for 15 minutes
# path('registered', cache_page(60 * 15)
# (TemplateView.as_view(template_name='registered.html')), name='registered'),
# # /manage - user approval interface
# path('manage', go.views.useradmin, name='useradmin'),
# # Redirection regex.
# re_path(r'^(?P<short>([\U00010000-\U0010ffff][\U0000200D]?)+)$',
# go.views.redirection, name='redirection'),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment