On maandag 9 juli 2018 14:58:25 CEST Derek wrote:
> Thanks Melvyn
>
> The call to reverse() *was* included in my original code snippets: see
> below.
>
> > return HttpResponseRedirect(
> >
> > reverse('uploads:upload_details',
> >
> > kwargs={'view': view, 'mid':
def my_view(request):
...
return redirect('some-view-name', foo='bar')
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegro
Thanks Melvyn
The call to reverse() *was* included in my original code snippets: see
below.
> return HttpResponseRedirect(
> reverse('uploads:upload_details',
> kwargs={'view': view, 'mid':result.pk})
And that call does not work.
Derek
On Sun, 8 Jul 2018 at 20:49, Melvy
On zondag 8 juli 2018 13:58:33 CEST Derek wrote:
> I am attempting to pass multiple keyword arguments from a reverse() call
> (from my app called `uploads`).
There's no call to reverse in your code. But to do this:
reverse('upload_details', kwargs={'view': 'site', 'mid', 3})
> *urls.py*
>
> ur
Hi
I am not quite sure what you are suggesting? Do you think the url() in the
urlpatterns should be changed - I have not seen a format like that?
Perhaps you can give an example as it relates to the code I posted.
Thanks
Derek
On Sunday, 8 July 2018 16:10:22 UTC+2, mottaz hejaze wrote:
>
> t
try to use url('view function name' x y)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send e
Hi
I am working with Django 1.11 and Python 3.4.
I am attempting to pass multiple keyword arguments from a reverse() call
(from my app called `uploads`).
*urls.py*
urlpatterns = [
url(
regex=r'^add/$',
view=views.add_new,
name='add_new'),
url(
regex=r'^de
7 matches
Mail list logo