Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
f49a1bfe
Commit
f49a1bfe
authored
Jul 10, 2019
by
Okhin
Browse files
Redirecting / to /rp/ for a nicer UX. Close
#4
parent
9bcab970
Pipeline
#2654
passed with stages
in 3 minutes and 39 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
project/urls.py
View file @
f49a1bfe
...
...
@@ -6,6 +6,7 @@ from django.conf import settings
from
django.conf.urls
import
url
,
include
from
django.conf.urls.static
import
static
from
django.contrib
import
admin
from
django.views.generic.base
import
RedirectView
# Django rest framework router
from
core.routers
import
DefaultRouter
...
...
@@ -20,8 +21,8 @@ router.extend(rp_router)
urlpatterns
=
[
url
(
r
"^admin/"
,
admin
.
site
.
urls
),
url
(
r
'^$'
,
RedirectView
.
as_view
(
url
=
'/rp/'
,
permanent
=
False
),
name
=
'index'
),
url
(
r
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
url
(
r
"^api/"
,
include
((
router
.
urls
,
"api"
))),
url
(
r
"^feeds/"
,
include
((
"rp.feeds.urls"
,
"feeds"
))),
url
(
r
"^rp/"
,
include
((
"rp.urls"
,
"rp"
))),
...
...
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