mercredi 24 janvier 2018

Django url not resolving in similar case to working one

I know this has been asked a lot but I can't find any answers that are general enough to learn something from them.

I setup a Django project for the first time but am a little confused as I have 2 forms on 1 page and they both submit to a different view ('tick' and 'bestel') it does everything it is supposed to do under 'bestel' but then I submit to tick it gives me this error:

Using the URLconf defined in Que.urls, Django tried these URL patterns, in this order:
1.  [name='index']
2. signup/ [name='signup']
3. <int:user_id>/ [name='user']
4. <int:user_id>/bestel [name='bestel']
5. <int:user-id>/tick [name='tick']
6. admin/

The current path, 11/tick, didn't match any of these.

where can I be going wrong in this?




Aucun commentaire:

Enregistrer un commentaire