Reg: django.urls.exceptions.NoReverseMatch patterns

2020-05-08 Thread Kishore Kumar Alajangi
Hi, In templates.html file if i am defining url pattern like "{ % url "app_name:app_name_function_name" %}. I am getting the following error: "django.urls.exceptions.NoReverseMatch patterns" in urls.py app name is : app_name in views.py file function name : functi

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-24 Thread Bruno Gama
Hi Raja Sekar Sambath I tried what you said and didn't run well. I don't know why is not running with reverse function. I managed do what I wanted. I did this: def get_absolute_url(self): return '%s' % self.slug Thanks & Regards, Bruno Gama +55 12 9 9171-6336. Le ven. 24 avr. 2020 à

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-24 Thread Raja Sekar Sambath
Hi Bruno Gama, Try this, update reverse('courses:datails', (), {'slug': self.slug}) as reverse('courses:datails', kwargs={'slug': self.slug}) On Fri, 24 Apr 2020 at 18:50, Bruno Gama wrote: > Thank you, Raja Sekar Sambath. > > It stopped the error. I don't manage do what I want, but the

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-24 Thread Bruno Gama
Thank you, Raja Sekar Sambath. It stopped the error. I don't manage do what I want, but the error stopped running. Le ven. 24 avr. 2020 à 03:34, Raja Sekar Sambath a écrit : > decorating get_absolute_url with @staticmethod may help I think > > On Fri, 24 Apr 2020 at 00:35, Bruno Gama wrote:

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-24 Thread Raja Sekar Sambath
decorating get_absolute_url with @staticmethod may help I think On Fri, 24 Apr 2020 at 00:35, Bruno Gama wrote: > I tried it, but happens the same error. > > Le jeu. 23 avr. 2020 à 13:54, Jorge Gimeno a > écrit : > >> >> >> On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: >> >>> I have a

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
I tried it, but happens the same error. Le jeu. 23 avr. 2020 à 13:54, Jorge Gimeno a écrit : > > > On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: > >> I have a problem since I tried to use get_absolute_url(self): to enter in >> a url beyond a photo. When I used , my index.html stopped

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Jorge Gimeno
On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: > I have a problem since I tried to use get_absolute_url(self): to enter in > a url beyond a photo. When I used , my index.html stopped running. > > Here I have the top level url.py > > from import adminfrom django.urls import path, includefrom

django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
I have a problem since I tried to use get_absolute_url(self): to enter in a url beyond a photo. When I used , my index.html stopped running. Here I have the top level url.py from django.contrib import adminfrom django.urls import path, includefrom simplemooc.core import views, urlsfrom

django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
Hi, I have a problem since I tried to use get_absolute_url(self): to enter in a url beyond a photo. When I used , my index.html stopped running. Here I have the top level url.py from django.contrib import admin from django.urls import path, include from simplemooc.core import

Re: django.urls.exceptions.NoReverseMatch

2019-12-19 Thread Miracle
Check your codes very well ' editChange' might still be there. On Thu, 19 Dec 2019, 5:55 pm Jorge Gimeno, wrote: > > > On Wed, Dec 18, 2019, 10:20 PM Chetan Rokade > wrote: > >> Hi Friends, >> getting below error : >> "django.urls.exceptions.N

Re: django.urls.exceptions.NoReverseMatch

2019-12-19 Thread Jorge Gimeno
On Wed, Dec 18, 2019, 10:20 PM Chetan Rokade wrote: > Hi Friends, > getting below error : > "django.urls.exceptions.NoReverseMatch: Reverse for 'EditChange' not > found. 'EditChange' is not a valid view function or pattern name." > > I have removed EditChange tag

django.urls.exceptions.NoReverseMatch

2019-12-18 Thread Chetan Rokade
Hi Friends, getting below error : "django.urls.exceptions.NoReverseMatch: Reverse for 'EditChange' not found. 'EditChange' is not a valid view function or pattern name." I have removed EditChange tag/string from all files in my project. 1) app level urls.py , 2) views.py 3) base.ht

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-06 Thread Julien Enselme
olver._reverse_with_prefix(view, prefix, *args, > **kwargs)) > File > "/home/paki/.local/share/virtualenvs/lavoro-fabio-n0pBXid0/lib/python3.7/site-packages/django/urls/resolvers.py", > line 668, in _reverse_with_prefix > raise NoReverseMatch(msg) > django.urls.exc

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-05 Thread Pasquale
**kwargs))   File "/home/paki/.local/share/virtualenvs/lavoro-fabio-n0pBXid0/lib/python3.7/site-packages/django/urls/resolvers.py", line 668, in _reverse_with_prefix     raise NoReverseMatch(msg) django.urls.exceptions.NoReverseMatch: Reverse for 'detail' not found. 'detail' is not a valid

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-05 Thread Pasquale
**kwargs))   File "/home/paki/.local/share/virtualenvs/lavoro-fabio-n0pBXid0/lib/python3.7/site-packages/django/urls/resolvers.py", line 668, in _reverse_with_prefix     raise NoReverseMatch(msg) django.urls.exceptions.NoReverseMatch: Reverse for 'detail' not found. 'detail' is not a valid

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-04 Thread Julien Enselme
Did you do the reverse with 'reviews:detail'? Can you post your new urls.py and the code you use to do the reverse? Julien Enselme Développeur chez BureauxLocaux Le mer. 4 sept. 2019 à 00:35, Pasquale a écrit : > Applied your suggestion,now I get > django.urls.exceptions.NoRevers

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Pasquale
Applied your suggestion,now I get django.urls.exceptions.NoReverseMatch: Reverse for 'detail' not found. 'detail' is not a valid view function or pattern name. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
namespace is an argument of the include function and you can remove the name argument to path. Julien Enselme Développeur chez BureauxLocaux Le mar. 3 sept. 2019 à 13:28, Pasquale a écrit : > I did put reviews/urls.py: > > from django.urls import path, include > from . import views as v >

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Pasquale
I did put reviews/urls.py: from django.urls import path, include from . import views as v app_name="review" urlpatterns = [     path("", v.ReviewsDetail.as_view(), name="detail"), ] Also if I replace name parameter with namespace I get: TypeError: _path() got an unexpected keyword argument

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
Hi, - I don't see where you include the urls from the reviews app in your main urls.py file. - To use the "review:detail" notation, you need to enable namespaces. So it seems that what you lack in your mysite/urls.py file is path("reviews/", include("reviews.urls", namespace="reviews")) You

Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-02 Thread Pasquale
I have in mysite/urls.py: from django.contrib import admin from django.urls import include, path from django.contrib.auth import views as auth_views from django.conf import settings from .views import * urlpatterns = [     path('admin/', admin.site.urls, name="admin"),     path("places/",

Re: django.urls.exceptions.NoReverseMatch: Reverse for 'index' not found. 'index' is not a valid view function or pattern name.

2017-09-28 Thread James Schneider
On Sep 27, 2017 8:59 PM, "harsh sharma" wrote: i m a noob in django And i dont know why i am getting this error my views.py file: from django.shortcuts import render,render_to_response from django.http import HttpResponse from all.models import ALL from

django.urls.exceptions.NoReverseMatch: Reverse for 'index' not found. 'index' is not a valid view function or pattern name.

2017-09-27 Thread harsh sharma
i m a noob in django And i dont know why i am getting this error my views.py file: from django.shortcuts import render,render_to_response from django.http import HttpResponse from all.models import ALL from django.template import RequestContext # Create your views here. def home(request):

Re: Error message on 'django.urls.exceptions.NoReverseMatch'

2017-07-31 Thread ron_w_add via Django users
Hello James Thanks for your help. That solved the problem. Ron > > -- 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.

Re: Error message on 'django.urls.exceptions.NoReverseMatch'

2017-07-30 Thread James Schneider
On Jul 30, 2017 12:06 AM, "ron_w_add via Django users" < django-users@googlegroups.com> wrote: I have started writing a page to to display a photo. This page correctly display the photo data (nb. no photo added yet) as well as the ‘Invalid item ID’ message if an invalid value has been requested.