Re: Reverse for 'modification' with no arguments not found issue

2019-08-31 Thread James Schneider
> > The line with a problem is that one > > return render(request, 'insertion/modification.html', locals()) > > > > And I really can't figure it out why, according the fact that "locals()" > contains my variable and even if I send directly my variable instead, I get > the same ! > There's prob

Re: Reverse for 'modification' with no arguments not found issue

2019-08-29 Thread Ali IMRANE
My "home" variable is defined with a view : def home(request): """ Acceuil du site qui recense toutes nos requêtes pour le moment """ return render(request, 'insertion/accueil.html', locals()) Which redirect to my homepage. The line with a problem is that one return render(request,

Re: Reverse for 'modification' with no arguments not found issue

2019-08-28 Thread James Schneider
On Wed, Aug 28, 2019, 2:00 AM Ali IMRANE wrote: > Thanks James for your help. > > Indeed, I tought about that problem but I already managed to see an number > on an other page, as well as using that ID to read information behind my > informations (as you can see in the third line I gave on "lire.

Re: Reverse for 'modification' with no arguments not found issue

2019-08-28 Thread Ali IMRANE
Thanks James for your help. Indeed, I tought about that problem but I already managed to see an number on an other page, as well as using that ID to read information behind my informations (as you can see in the third line I gave on "lire.html"). A number is printed. How can I know that it is a

Re: Reverse for 'modification' with no arguments not found issue

2019-08-22 Thread James Schneider
> > lire.html > ... >type="button">Editer larequête > ... > > urls.py > path('edit/', views.view_modif, name='modification'), > error : > NoReverseMatch at /edit/1 > > Reverse for 'modification' with no arguments not found. 1 pattern(s) tried: > ['edit/(?P[0-9]+)$'] > > Request Method: GET > R

Reverse for 'modification' with no arguments not found issue

2019-08-22 Thread Ali IMRANE
Hello everyone, I know I may ask this question for another time for some of you but after an hour of research, I'm still stuck with this issue of "No Reverse Match". Here is my problem : - First, I using forms to put information in my DB (tickets) ; - I want to be able to edit those infor