Re: formaction vs get_absolute_url

2018-07-13 Thread clavierplayer
Thank you for the clear explanation! It works beautifully now. On Friday, July 13, 2018 at 9:17:37 AM UTC-4, Daniel Roseman wrote: > > On Thursday, 12 July 2018 21:04:25 UTC+1, clavie...@gmail.com wrote: >> >> I'm looking for a way to redirect to a different page depending upon >> which submit

Re: formaction vs get_absolute_url

2018-07-13 Thread Daniel Roseman
On Thursday, 12 July 2018 21:04:25 UTC+1, clavie...@gmail.com wrote: > > I'm looking for a way to redirect to a different page depending upon which > submit button the user clicks. I included a formaction tag in the template, > but django still demands that get_absolute_url be defined. Using

Re: formaction vs get_absolute_url

2018-07-12 Thread clavierplayer
Relevant urls: app_name = "utils" urlpatterns = [ path('', index, name="index"), path('', index, name="index"), path('migrate/', migrate, name="migrate"), # -- Box Opt Evaluation urls -- path('box-optimization/instructions', instruct,

formaction vs get_absolute_url

2018-07-12 Thread clavierplayer
I'm looking for a way to redirect to a different page depending upon which submit button the user clicks. I included a formaction tag in the template, but django still demands that get_absolute_url be defined. Using Django 2.0 Basically, I'm trying to write a small app that launches a test