PluralitySpace-django/pluralityspace/urls.py

27 lines
977 B
Python
Raw Permalink Normal View History

2019-09-16 00:56:59 +02:00
"""pluralityspace URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
2019-09-25 01:26:15 +02:00
from django.shortcuts import redirect
2019-09-16 01:24:15 +02:00
from django.urls import include, path
2019-09-16 00:56:59 +02:00
urlpatterns = [
2019-09-16 01:24:15 +02:00
path('profiles/', include('profiles.urls')),
2019-09-16 00:56:59 +02:00
path('admin/', admin.site.urls),
2019-09-25 01:26:15 +02:00
# TODO temporarily: just redirect / to /profiles/
path('', lambda request: redirect('profiles/', permanent=False)),
2019-09-16 00:56:59 +02:00
]