Skip to main content

Django view redirect mixin ?next=url

Project description

Installation

$ [sudo] pip install django-next-view

Examples

from django_next_view.views import NextViewMixin

class MyView(NextViewMixin,...):
    def post(self,request,*args,**kwargs):
        ...
        return self.next()

add next arg to forms/links

<form action="..." method="POST">
<input type="hidden" name="next" value="url" />
</form>

<a href="{% url 'view_name' %}?next=url">GET</a>

readme42.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-next-view-2020.12.3.tar.gz (1.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page