Change Django default URL
first sorry for my bad English
When I run my server, I want to Django redirect me to http://127.0.0.1:8000/home instead of http://127.0.0.1:8000.
what should I do?
Try to define urlpatterns in urls.py file like this:
urlpatterns = [
path('', RedirectView.as_view(url='home', permanent=False),
name='redirect'),
path('home/', MainView.as_view(), name='index'),
]
I hope it will work for you.