Redirect with parameters in Django

In this tutorial, we will discuss how to redirect with parameters in Django.

To know more about Redirect click on the given link –¬†Redirect in Django

Redirect With Parameters

First, start your project and create an app inside your project.

After this just write the below code in

from django.shortcuts import redirect

def codespeedy(request):
    return redirect("")
def google(request):
    return redirect("")

Then, make changes in to redirect to another page.

from django.urls import path
from django.contrib import admin
from . import views

urlpatterns = [


To redirect to the official site of CodeSpeedy just run the command python runserverand then navigate to

To redirect to the official site of google navigate to  the google site will open.

Leave a Reply

Your email address will not be published. Required fields are marked *