Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
show me your django app url and views as well. On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER wrote: > okay add a url. first of all import the view into urls.py file and make a > path. > > On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users < > django-users@googlegroups.com> wrote

Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
okay add a url. first of all import the view into urls.py file and make a path. On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users < django-users@googlegroups.com> wrote: > Here is how the the project's url.py looks like. Not made any changes to > it. > > [image: dj_4.jpg] > > *chan

Re: Error: NoReverseMatch at

2021-08-16 Thread 'Rahul Chauhan' via Django users
Here is how the the project's url.py looks like. Not made any changes to it. [image: dj_4.jpg] *change_list.html: *Copied this (https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html) to the local app folder. On Monday, August 16, 2021 at 3:36:27 PM

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
is it because i have forgotten to import CommentForm? -- 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

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
then a new error pops up: [image: Udklip3.PNG] -- 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

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread daniel main
Use id instead of pk On Oct 12, 2018 10:34, "Glen D souza" wrote: > > *def add_comment(request, slug):* > *post = get_object_or_404(Post, slug=slug)* > *if request.method == 'POST':* > *form = CommentForm(request.POST)* > *if form.is_valid():* > *comment = for

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Glen D souza
*def add_comment(request, slug):* *post = get_object_or_404(Post, slug=slug)* *if request.method == 'POST':* *form = CommentForm(request.POST)* *if form.is_valid():* *comment = form.save(commit=False)* *comment.post = post* *comment.save()

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
If i do that i get another error: [image: Udklip2.PNG] -- 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 thi

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Glen D souza
try renaming path('post//comment/', views.add_comment, name= 'add-comment'), to path('post//comment/', views.add_comment, name='add-comment'), On Fri, 12 Oct 2018 at 12:36, Robert CR wrote: > i fixed the error, thanks. But there is already a new one when i try to > add a comment. D: > > [image:

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
i fixed the error, thanks. But there is already a new one when i try to add a comment. D: [image: Udklip.PNG] -- 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 d

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread daniel main
Hello, Have you tried adding an app_name = 'your_app_name' in the URLs.py file? Thanks On Oct 12, 2018 09:36, "Glen D souza" wrote: > Hi, > > Try after name-spacing url patterns i.e > > app_name = 'blog' > > urlpatterns = [ > path('', PostListView.as_view(), name='blog-home'), > path('us

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Glen D souza
Hi, Try after name-spacing url patterns i.e app_name = 'blog' urlpatterns = [ path('', PostListView.as_view(), name='blog-home'), path('user//', UserProfileListView.as_view(), name= 'user-profile' ), path('user//posts/', UserPostListView.as_view(), name= 'user-posts'), path('user

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Manjunath
Try adding for action to your add_comment url then submit the form. I guess currently form is getting submitted in the same page. On Friday, October 12, 2018 at 12:00:03 PM UTC+5:30, Robert CR wrote: > > here is the template file. > > *add_comment.html* > > > > *{% extends "blog/base.html" %}{% l

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
here is the template file. *add_comment.html* *{% extends "blog/base.html" %}{% load crispy_forms_tags %}{% block content %}{% csrf_token %} Comment {{ form|crispy }} Post Comment! {% endblock content %}* -- You r

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Manjunath
Please provide snapshot of your template file as well as project's urls.py file. On Friday, October 12, 2018 at 11:14:22 AM UTC+5:30, Robert CR wrote: > > I am making a blog app for my django website. Right now i'm making a > comment feature, but when i try to view a post and the posts comments

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
I think it has something to do with my urls.py and views.py *urls.py* from django.urls import path from .views import ( PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView, UserProfileListView, UserProfilePostListView ) fro

Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
I am making a blog app for my django website. Right now i'm making a comment feature, but when i try to view a post and the posts comments i get an error. *The Error* [image: Udklip.PNG] -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread TimT Vogt
All good now! Thanx! Verstuurd vanaf mijn iPhone > Op 4 sep. 2018 om 15:41 heeft RONAK JAIN het > volgende geschreven: > > I think should be there cot's issues look like that you should right there: > > > > > Thanks > Ronak Jain > >> On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Kasper Laudrup
Hi Ravi, On 04/09/2018 14.42, Ravi Kiran Katukam wrote: any one developed kivy app for enterprise needs along with django web need help There might be someone here who has experience with that, but why not ask for help in the appropriate mailing list. This seems to be the one: https://gr

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread RONAK JAIN
I think should be there cot's issues look like that you should right there: Thanks Ronak Jain On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam wrote: > any one developed kivy app for enterprise needs along with django web > need help > > On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason > wro

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Ravi Kiran Katukam
any one developed kivy app for enterprise needs along with django web need help On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason wrote: > Hey Tim, > > Are you sure your view is defined with spaces in the urls.py? Shouldn't it > be {% url 'manifest' %} instead, with no spaces around the name? > > O

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Julio Biason
Hey Tim, Are you sure your view is defined with spaces in the urls.py? Shouldn't it be {% url 'manifest' %} instead, with no spaces around the name? On Tue, Sep 4, 2018 at 6:28 AM, Tim Vogt (Tim Vogt) wrote: > I have made saleor local > > after restart I get this error > > Tried to change the “

saleor error NoReverseMatch at /en/

2018-09-04 Thread Tim Vogt (Tim Vogt)
I have made saleor local after restart I get this error Tried to change the “ “ into ‘ ‘ bout before it worked. Any tips how to solve this? Tim NoReverseMatch at /en/ Reverse for ' manifest ' not found. ' manifest ' is not a valid view function or pattern name. Request Method: GET Request URL

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-05 Thread James Schneider
> def submit(request, laser_id): > > try: > oLED = IoFLED() > btnSubmit = request.POST['btnSubmit'] > laserid = request.POST['laser_id'] > > The other poster reminded me, you'll want to remove the laser_id reference in your submit() signature

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-05 Thread James Schneider
> > The error I am getting now is: > > > > > NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/] > > And the following is highlighted in my index file: > > > > > My code is below: > > > > iofppysite/iofppysite/url

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Luis Zárate
El lunes, 4 de enero de 2016, Víctor Suárez urlpatterns = [ url(r'^', views.index, name='index'), url(r'^submit/(?P\d+)', views.submit, name='submit'), ] Because you have def submit(request, laser_id): escribió: > I don't see a namespace on url.py > > > https://docs.djangoproject.com/e

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Víctor Suárez
I don't see a namespace on url.py https://docs.djangoproject.com/en/1.9/intro/tutorial03/#namespacing-url-names On Monday, January 4, 2016 at 7:16:32 AM UTC-5, Robbie Sharma wrote: > > I have python and django loaded on my RaspberryPi that is wired to an LED > array. The web app 'iofcontrol' in

Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Robbie Sharma
I have python and django loaded on my RaspberryPi that is wired to an LED array. The web app 'iofcontrol' in my Django project is supposed to activate an animation sequence of a set of LEDs. - iofppysite is the main project file - iofppysite/iofcontrol is the LED control web app! The