Re: NoReverseMatch error message - Please help

2020-03-31 Thread victor awakan
Sometimes the error can be from your url.py or even views.py and also make sure no typo. Check each on e of the above carefully. Hopefully you might see the bug. Cheers On Tue 31. Mar 2020 at 18.06, Jeff Waters wrote: > Thanks Ryan. > > I've just tried that, but I still get an error message. >

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Jeff Waters
Thanks Ryan. I've just tried that, but I still get an error message. By the way, is it definitely .id and not _id? I've seen both, and Django docs says: 'Behind the scenes, Django appends "_id" to the field name to create its database column name, which makes me wonder if it might be _id. Inc

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Ryan Nowakowski
Based on the rest of your template from the github link, looks like: {% url 'nowandthen:add_comment' image.id %} ...should instead be: {% url 'nowandthen:add_comment' p.image.id %} On 3/31/20 7:08 AM, Jeff Waters wrote: I am putting together a website which has a photo gallery where users can

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Kasper Laudrup
Hi Jeff, On 31/03/2020 14.08, Jeff Waters wrote: I am putting together a website which has a photo gallery where users can add comments. When I go to the photo gallery page, I get the following error message: NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments '('',)' not

NoReverseMatch error message - Please help

2020-03-31 Thread Jeff Waters
I am putting together a website which has a photo gallery where users can add comments. When I go to the photo gallery page, I get the following error message: NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments '('',)' not found. 1 pattern(s) tried: ['add_comment/$'] The c

Re: NoReverseMatch() error while learning Python

2020-02-19 Thread Jorge Gimeno
On Wed, Feb 19, 2020 at 4:47 AM DamnGeniuses' Squad < andhikaravelen...@gmail.com> wrote: > NoReverseMatch at /polls/1/ > > Reverse for 'vote' with arguments '('',)' not found. 1 pattern(s) tried: > ['polls/(?P[0-9]+)/vote/$'] > > Request Method: GET > Request URL: http://127.0.0.1:8000/polls/1/

NoReverseMatch() error while learning Python

2020-02-19 Thread DamnGeniuses' Squad
NoReverseMatch at /polls/1/ Reverse for 'vote' with arguments '('',)' not found. 1 pattern(s) tried: ['polls/(?P[0-9]+)/vote/$'] Request Method: GET Request URL: http://127.0.0.1:8000/polls/1/ Django Version: 3.0.3 Exception Type: NoReverseMatch Exception Value: Reverse for 'vote' with argumen

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
I truly appreciate the suggestions, Melvyn. Thanks so much! On Thu, Jul 19, 2018, 10:28 PM Melvyn Sopacua wrote: > On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > > Yeah, I just discovered that after posting this. I'm ashamed to admit > that > > single error had me baffled for da

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Melvyn Sopacua
On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > Yeah, I just discovered that after posting this. I'm ashamed to admit that > single error had me baffled for days. No shame needed, because at some point you read over and over it and read the same wrong thing as right in your brain.

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Yeah, I just discovered that after posting this. I'm ashamed to admit that single error had me baffled for days. Thank you so much for the quick reply! On Thu, Jul 19, 2018, 11:35 AM Dylan Reinhold wrote: > You are missing the > in the path > path(' Should be > path('/results/', views.ResultsVi

RE: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Matthew Pava
etail'), # ex: /polls/5/results/ path('/vote/', views.vote, name='vote'), ] The red line should probably have this path: /results/ From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of roflcopterpaul Sent: Thursday, July 19, 2

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Dylan Reinhold
You are missing the > in the path path('/results/', views.ResultsView.as_view(), name='results'), On Thu, Jul 19, 2018 at 11:18 AM, roflcopterpaul wrote: > Hello, everyone! I have run into a problem I cannot figure out. I have > spent days searching online and trying different things in my code,

Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Hello, everyone! I have run into a problem I cannot figure out. I have spent days searching online and trying different things in my code, but I cannot figure out where this problem is stemming from. I would truly appreciate any insights. Admittedly, I am scrub enough that I'm not even sure of

Re: NoReverseMatch error raise when adding a new entry in django admin

2018-02-12 Thread Julio Biason
Hi Weifeng, I think the problem is here: django.urls.exceptions.NoReverseMatch: Reverse for 'nmm_tokenservice_userprofile_change' with arguments '('',)' not found. 1 pattern(s) tried: ['admin/nmm_tokenservice\\/userprofile\\/(?P.+ )\\/change\\/$'] By all the Django is saying, you're trying to re

Re: NoReverseMatch error raise when adding a new entry in django admin

2018-02-12 Thread Etienne Robillard
Hi Weifeng, plz show us your urls.py... Etienne Le 2018-02-11 à 22:20, Weifeng Pan a écrit : I got this wired issue. who can help. Python 3.6 Django Latest 2.0.2 following are stack trace--- Internal Server Error: /admin/nmm_tokenservice/userprofile/add/ Traceback (mo

NoReverseMatch error raise when adding a new entry in django admin

2018-02-11 Thread Weifeng Pan
I got this wired issue. who can help. Python 3.6 Django Latest 2.0.2 following are stack trace--- Internal Server Error: /admin/nmm_tokenservice/userprofile/add/ Traceback (most recent call last): File "C:\Python36\lib\site-packages\django\core\handlers\exception.py", li

Re: NoReverseMatch Error using Django + Haystack + Elasticsearch

2016-10-15 Thread Aline C. R. Souza
; }} >> >> post.author.pk works well when called by several views, but it is not >> resolved when called by the search. >> >> There is another way to get the pk of the author of the post? >> >> The link of the StackOverflow question: >> http://stack

Re: NoReverseMatch Error using Django + Haystack + Elasticsearch

2016-10-15 Thread Constantine Covtushenko
estion: http:/ > /stackoverflow.com/questions/40033039/noreversematch-error- > using-haystack-elasticsearch > > Can someone help me? Please explain in details, because I am new in > Django, and in haystack, elasticsearch... > > > -- > You received this message because you are subscri

NoReverseMatch Error using Django + Haystack + Elasticsearch

2016-10-14 Thread Aline C. R. Souza
not resolved when called by the search. There is another way to get the pk of the author of the post? The link of the StackOverflow question: http://stackoverflow.com/questions/40033039/noreversematch-error-using-haystack-elasticsearch Can someone help me? Please explain in details, because I

Re: NoReverseMatch error in django 1.8

2015-09-27 Thread Gergely Polonkai
Hello, the bookp route requires a user and a book_id parameter. Unless you supply that, your {% url %} tag won't match. Best, Gergely On 27 Sep 2015 12:49, "hossein" wrote: > this is my views and url.py > as long as use tag in my template show error > > url > > urlpatterns = [ > url(r'^boo

NoReverseMatch error in django 1.8

2015-09-27 Thread hossein
this is my views and url.py as long as use tag in my template show error url urlpatterns = [ url(r'^bookee/$', views.index, name='index'), url(r'^bookee/user/(?P[a-z0-9-._@+]\w+)/$', views.uprofile, name='userprofile'), url(r'^bookee/user/(?P[a-z0-9-._@+]\w+)/book/(?P\d)/$', views.

Re: NoReverseMatch error

2014-10-19 Thread Daniel Grace
You were right Vijay. I worked this out. I needed to set type and state via the context as follows: def get_context_data(self, **kwargs): context = super(TestFlow, self).get_context_data(**kwargs) context.update({'type': self.kwargs['type'], 'state': self.kwargs['state']}) return c

Re: NoReverseMatch error

2014-10-18 Thread Vijay Khemlani
I think you need to pass the "type" and "state" values in the {% url ... %} tag https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#url On Sat, Oct 18, 2014 at 6:06 PM, Daniel Grace wrote: > Hi, > I get the following error on one of my view forms: > Request Method: GET > Request URL:

NoReverseMatch error

2014-10-18 Thread Daniel Grace
Hi, I get the following error on one of my view forms: Request Method: GET Request URL: http://127.0.0.1:8000/test/test_type_1/test_state_1/ Django Version: 1.7 Exception Type: NoReverseMatch Exception Value: Reverse for 'create-flow-params' with arguments '()' and keyword arguments '{}' not foun

NoReverseMatch error: Reverse for 'lebay_view_user_profile' with arguments '('',)' and keyword arguments '{}' not found.

2014-07-04 Thread Niccolò Lancellotti
Hi guys, i'm new in this group. I'm trying to upgrade a django project i found on internet, called 'little ebay', from django 1.2 to 1.5. It is a very simple project, there are only few files. i'm going to append them... please help me, i'm going ma with that. i'm appending only two of the vario

Re: NoReverseMatch error when following Django Tutorial

2014-06-22 Thread Jerry Wu
2014 10:53:12 AM UTC+2, Jerry Wu wrote: >> >> Dear every one, >> >> I am new to Python and Django and am following the Tutorial to start my >> first site. But I am getting an error of NoReverseMatch error when vote. It >> should be redirected but error below happened

Re: NoReverseMatch error when following Django Tutorial

2014-06-22 Thread Noxxan
he Tutorial to start my > first site. But I am getting an error of NoReverseMatch error when vote. It > should be redirected but error below happened. > > NoReverseMatch at /polls/1/vote/ > > Reverse for ' results' with arguments '(1,)' and keyword arguments &#

NoReverseMatch error when following Django Tutorial

2014-06-22 Thread Jerry Wu
Dear every one, I am new to Python and Django and am following the Tutorial to start my first site. But I am getting an error of NoReverseMatch error when vote. It should be redirected but error below happened. NoReverseMatch at /polls/1/vote/ Reverse for ' results' with arguments

Re: NoReverseMatch error on redirect

2014-01-14 Thread Brad Rice
I figured it out. I had a namespaced url so it needed: return HttpResponseRedirect(reverse('requestform:registrant_add', kwargs={'app_id': obj.id})) On Monday, January 13, 2014 12:22:59 PM UTC-5, Brad Rice wrote: > > I have a mulit-page form I am building. I get the start page to enter the > da

NoReverseMatch error on redirect

2014-01-13 Thread Brad Rice
I have a mulit-page form I am building. I get the start page to enter the data for the application, validate and save. When I try using reverse to move to the next page I get this error: NoReverseMatch at /requestform/start/Reverse for 'registrant_add' with arguments '()' and keyword arguments

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Tom Evans
On Mon, May 13, 2013 at 3:34 PM, Neil Chaudhuri wrote: > Oh sorry I wasn't clear. The first time I typed the patterns function call > out. So in other words, the %s was in there all along. I just misrepresented > it in my question. Things are failing even with the correct call and have > been a

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Neil Chaudhuri
Oh sorry I wasn't clear. The first time I typed the patterns function call out. So in other words, the %s was in there all along. I just misrepresented it in my question. Things are failing even with the correct call and have been all along. Could you provide more details about how I can double

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Tom Evans
On Mon, May 13, 2013 at 3:19 PM, Neil Chaudhuri wrote: > Good catch. That was a typo. Let me cut and paste directly: > > urlpatterns = patterns("apps.popular_keywords.views", >url("^%skeyword/(?P.*)%s$" % _slashes, > "matching_items_list", name="matching_items") > ) > > Pe

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Neil Chaudhuri
Good catch. That was a typo. Let me cut and paste directly: urlpatterns = patterns("apps.popular_keywords.views", url("^%skeyword/(?P.*)%s$" % _slashes, "matching_items_list", name="matching_items") ) Perhaps I should try some of your coffee. Thanks. On May 13, 2013, at

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Tom Evans
On Sun, May 12, 2013 at 9:08 AM, wrote: > I have an app within my project called popular_keywords. > > Within urls.py I have this: > > urlpatterns = patterns("apps.popular_keywords.views", >url("^%keyword/(?P.*)%s$" % _slashes, > "matching_items_list", name="matching_items

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Neil Chaudhuri
Here is slashes: _slashes = ( "/" if settings.BLOG_SLUG else "", "/" if settings.APPEND_SLASH else "", ) Thanks. On May 13, 2013, at 4:28 AM, Tom Evans wrote: > On Sun, May 12, 2013 at 9:08 AM, wrote: >> I have an app within my project called popular_keywords. >> >> Within urls.py

Re: Yet Another NoReverseMatch Error

2013-05-13 Thread Tom Evans
On Sun, May 12, 2013 at 9:08 AM, wrote: > I have an app within my project called popular_keywords. > > Within urls.py I have this: > > urlpatterns = patterns("apps.popular_keywords.views", >url("^%keyword/(?P.*)%s$" % _slashes, > "matching_items_list", name="matching_items

Yet Another NoReverseMatch Error

2013-05-12 Thread neil
I have an app within my project called popular_keywords. Within *urls.py* I have this: *urlpatterns = patterns("apps.popular_keywords.views",* * url("^%keyword/(?P.*)%s$" % _slashes, "matching_items_list", **name="matching_items")* *)* Within *views.py* I have this funct

Re: NoReverseMatch Error

2012-08-25 Thread Karen Tracey
On Sat, Aug 25, 2012 at 1:28 AM, Syam Palakurthy wrote: > Hi, Can you please elaborate on how to use this block in the template > code? I've tried adding this into my details template code in various > places and cannot get it to successfully work. Also, any > suggestions/examples you could poin

Re: NoReverseMatch Error

2012-08-24 Thread Syam Palakurthy
Hi, Can you please elaborate on how to use this block in the template code? I've tried adding this into my details template code in various places and cannot get it to successfully work. Also, any suggestions/examples you could point me to would be much appreciated. {{ poll.question }} {% if

Re: NoReverseMatch Error

2012-08-15 Thread Karen Tracey
On Tue, Aug 14, 2012 at 10:46 AM, Serge G. Spaolonzi wrote: > Try removing the quotes from 'polls.views.vote': > > > > > Note that will work for 1.4 but it's doing things the old way, and that will break in 1.5. Much better to add {% import url from future %} and have code that will continue to w

Re: NoReverseMatch Error

2012-08-14 Thread Serge G. Spaolonzi
Try removing the quotes from 'polls.views.vote': Regards -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com On Mon, Aug 13, 2012 at 11:46 PM, Syam Palakurthy wrote: > Hi - I could not find any explanation that fixed the problem, until I ran > across this person's abridged Django t

Re: NoReverseMatch Error

2012-08-13 Thread Karen Tracey
On Mon, Aug 13, 2012 at 10:46 PM, Syam Palakurthy wrote: > Hi - I could not find any explanation that fixed the problem, until I ran > across this person's abridged Django tutorial: > http://tony.abou-assaleh.net/web-development/stripped-down-django-tutorial > > It's basically a line in the detail

Re: NoReverseMatch Error

2012-08-13 Thread Syam Palakurthy
Hi - I could not find any explanation that fixed the problem, until I ran across this person's abridged Django tutorial: http://tony.abou-assaleh.net/web-development/stripped-down-django-tutorial It's basically a line in the details template, which should be: Instead of: I'm not sure wh

NoReverseMatch error and serializers

2012-05-20 Thread .
for x in serializers.deserialize("xml", mydata): x.save() But I get a NoReverseMatch error. I've already checked my URLconf. Patterns look fine. I've also read that it can be connected with encoding (if you're using MySQL). But I'm using SQLite. How to get rid of this

recent 1.3.1 upgrade - admin panel throwing NoReverseMatch error now

2011-10-18 Thread Nick Nachefski
Hello, I've recently upgraded to 1.3.1 and am getting a NoReverseMatch exception with piston when attempting to view my admin panel. Has anyone else seen this with 1.3.1? Here is the relevant url.py config for my piston: blah_resource = Resource(handler=BLAH) urlpatterns = patterns('',

Re: NoReverseMatch Error

2011-06-09 Thread krzysiekpl
Hi, Look at this: https://docs.djangoproject.com/en/dev/topics/http/urls/#reverse `viewname` is incorrect in your app you must use 'poll_results' instead of 'polls.views.results' Krzysztof Hoffmann On 9 Cze, 09:28, bahare hoseini wrote: > hi there, > this is my views.py that doesn't have an

NoReverseMatch Error

2011-06-09 Thread bahare hoseini
hi there, this is my views.py that doesn't have any problem: from django.shortcuts import get_object_or_404, render_to_response from django.core.urlresolvers import reverse . . . return HttpResponseRedirect(reverse('polls.views.results', args=( p.id,))) def results(request, poll_id):

Re: NoReverseMatch error when attempting to spawn an intermediate window from an admin action

2010-08-19 Thread Guy
I realize that I must have hit reply to author earlier. But thank you again (and more publicly) for the help. This definitely gets me started. Guy On Aug 19, 5:25 am, Daniel Roseman wrote: > On Aug 19, 9:16 am, Guy wrote: > > > > > I am having trouble with learning to use httpresponseredirect

Re: NoReverseMatch error when attempting to spawn an intermediate window from an admin action

2010-08-19 Thread Daniel Roseman
On Aug 19, 9:16 am, Guy wrote: > I am having trouble with learning to use httpresponseredirect and > reverse. > I am trying to generate an admin action on a selection of a list of > items. The purpose is to generate an intermediate window that can be > used to select a new > status for all the obj

NoReverseMatch error when attempting to spawn an intermediate window from an admin action

2010-08-19 Thread Guy
I am having trouble with learning to use httpresponseredirect and reverse. I am trying to generate an admin action on a selection of a list of items. The purpose is to generate an intermediate window that can be used to select a new status for all the objects, The admin action shows up in the pull

Re: Optional URL argument from model's get_absolute_url causing NoReverseMatch error

2009-10-09 Thread Javier Guerra
On Fri, Oct 9, 2009 at 9:38 AM, Aaron wrote: > > On Oct 9, 11:22 am, Javier Guerra wrote: >> add a second line to your URL mappigs with the third argument: >> >> (r'^(?P[-\w]+)/(?P[-\w]+)/$', 'model_view'), >> (r'^(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$', 'model_view') > > That's the problem. 'c' is

Re: Optional URL argument from model's get_absolute_url causing NoReverseMatch error

2009-10-09 Thread Karen Tracey
On Fri, Oct 9, 2009 at 10:38 AM, Aaron wrote: > > On Oct 9, 11:22 am, Javier Guerra wrote: > > add a second line to your URL mappigs with the third argument: > > > > (r'^(?P[-\w]+)/(?P[-\w]+)/$', 'model_view'), > > (r'^(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$', 'model_view') > > That's the problem. 'c

Re: Optional URL argument from model's get_absolute_url causing NoReverseMatch error

2009-10-09 Thread Aaron
On Oct 9, 11:22 am, Javier Guerra wrote: > add a second line to your URL mappigs with the third argument: > > (r'^(?P[-\w]+)/(?P[-\w]+)/$', 'model_view'), > (r'^(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$', 'model_view') That's the problem. 'c' is not supposed to be visible in the URL itself. A person i

Re: Optional URL argument from model's get_absolute_url causing NoReverseMatch error

2009-10-09 Thread Javier Guerra
On Fri, Oct 9, 2009 at 8:09 AM, Aaron wrote: > What is the proper way to introduce optional arguments here? add a second line to your URL mappigs with the third argument: (r'^(?P[-\w]+)/(?P[-\w]+)/$', 'model_view'), (r'^(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$', 'model_view') -- Javier --~--~---

Optional URL argument from model's get_absolute_url causing NoReverseMatch error

2009-10-09 Thread Aaron
lse: # Do something else Accessing the model's page by just typing in a URL works (where c is None). However, accessing the model's page by, say, clicking "View on site" in the admin (where c should be set to the model type's ID) gives me this NoReverseMatch err

Re: NoReverseMatch error during Django 1.0 tutorial

2009-06-23 Thread Rafa Muñoz Cárdenas
return HttpResponseRedirect(reverse ('mysite.polls.vews.results', args=(p.id,))) As you see, there is a mistake in "vews". return HttpResponseRedirect(reverse ('mysite.polls.views.results', args=(p.id,))) Now it should work :) On 21 jun, 19:11, ebbnormal wrote: > Hello, > > I am still working

NoReverseMatch error during Django 1.0 tutorial

2009-06-21 Thread ebbnormal
Hello, I am still working on the Django 1.0 tutorial (http:// docs.djangoproject.com/en/1.0/intro/tutorial04/) and got the following error after voting on my poll ( which simply makes a call to the Django reverse function which is supposed to give control to my results function in polls.views).

Re: NoReverseMatch error

2007-10-15 Thread ashok.raavi
o context at all for > your question. > > We are helpful people, but not mind readers. the patch link http://code.djangoproject.com/attachment/ticket/4409/4409.patch is about that problem only But i should have provided a clear context, which i am giving here i am getting that NoReverseMatch

Re: NoReverseMatch error

2007-10-14 Thread Malcolm Tredinnick
On Sun, 2007-10-14 at 19:45 -0700, ashok.raavi wrote: > Any body got this NoReverseMatch problem fixed?. If so please point me > to that. Which problem would that be? You have provided no context at all for your question. We are helpful people, but not mind readers. Malcolm --~--~-~-

NoReverseMatch error

2007-10-14 Thread ashok.raavi
Any body got this NoReverseMatch problem fixed?. If so please point me to that. The patch over here http://code.djangoproject.com/attachment/ticket/4409/4409.patch is also not working for me . I am using the latest trunk from django repository. --~--~-~--~~~---~--~