Techiio-author
Started by David HarrisonOct 5, 2021

Open
DJANGO | Redirect/Disable URLs based on environment variables

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

Usecase: I have some features that I don't want to release as of yet so I want to disable certain URLs or redirect them to 404/505s in production environment.

Is there a way to accomplish that using just the environment settings instead of popping out routes in urls/urlpatterns.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance