Sunday, 15 March 2015

html - url not opening next page - django/python -


When I try to select a button, I hope it will take me to the "full_event" url . However, it only displays "Next URL" which is on the current page which is already there. In other words, it refreshes the page, but does not open the next URL set by me

thanks !!

urls.py:

  url (r '^ event / full / (? P & lt; calendar_slog & gt; [- \ w] +) / (? P  

views.py:

Example: get_object_or_404 (event, id = event_id) calendars: (prefix) = Get_object_or_404 (calendar, slug = calendar_slug) next = get_next_url (request, next) reference = {'next': next, 'calendar': a Calendar,} Return Render (Request, 'Schedule / Full_Avent', '', Reference)

html file:

  {% user.is_staff%} And  {{<< {% Endif%}  

and }} And there is no reference variable named completed_event . Do you really want reverse resolution of a named URL instead of

  & lt;  

Try

  & lt; a href = "#" onclick = "openURL ('{% url' full_evolution '%}? Next = {{Next}}', event); "& Gt;  

I have changed here to next because it looks like this is a typo; you have There is no context variable called here.


No comments:

Post a Comment