Commit f49a1bfe authored by okhin's avatar okhin 🚴

Redirecting / to /rp/ for a nicer UX. Close #4

parent 9bcab970
Pipeline #2654 passed with stages
in 3 minutes and 39 seconds
......@@ -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"))),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment