Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-05 Thread Amen Guda
To resolve this issue, you should check the place in your code where the URL reversal with the name 'add_time_slot' is happening with an empty argument (''). Ensure that the argument being passed to the URL reversing function isn’t empty and correctly matches the URL pattern specified in your URL c

Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-01 Thread Migui Galan
thank you! i think this is because you are not looping or have a turf_id in the template. by 'loop' or have you tried '/add_time_lot//'? On Wed, Nov 1, 2023 at 10:53 PM Sudharsan wrote: > urlpatterns = [ > path('', views.home, name ='home'), > path('home/', views.allTurfs,name = 'allturfs'), > p

Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-01 Thread Vincenzo Celano
I think the problem is in the data into turf_id. Are you sure that turf_id contains only integer value? it's strange the problem with argument: '('',)' - try to verify the data passed with turf_id if are correct... Il giorno mer 1 nov 2023 alle ore 16:05 Adesewa Lola < adesewalola2...@gmail.com> h

Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-01 Thread Adesewa Lola
Hi Check your urls.py code On Wed, Nov 1, 2023 at 3:53 PM Sudharsan wrote: > urlpatterns = [ > path('', views.home, name ='home'), > path('home/', views.allTurfs,name = 'allturfs'), > path('profile/', views.dashboard, name = 'profile'), > path('about/', views.about, name = 'about'), > path('add_

Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-01 Thread Sudharsan
urlpatterns = [ path('', views.home, name ='home'), path('home/', views.allTurfs,name = 'allturfs'), path('profile/', views.dashboard, name = 'profile'), path('about/', views.about, name = 'about'), path('add_venue/', views.add_Turf, name = 'add_turf'), path('/', views.allTurfs, name='turf_by_place

Re: NoReverseMatch at /home/ error

2023-04-23 Thread Parfait TOLEFO
t TOLEFO schrieb am So., 23. Apr. 2023, > 18:21: > >> [image: error.png]Hello everyone, please, I have this error *NoReverseMatch >> at /home/ *when I want to put link to home page from other page. >> >> [image: VEW.png] >> This is my views.py content >> >

NoReverseMatch--Seems that Django doesn't detect the app url

2023-02-25 Thread Michael Starr
me = "pet_photo" class PetStoryListView(ListView): model = PetStory context_object_name = "pet_story_list" class PetStoryDetailView(DetailView): model = PetStory context_object_name = "pet_story" In either case, I get a noreversematch error when trying to render th

Re: my admin django not correct: NoReverseMatch à /admin/login/

2022-09-29 Thread Muhammad Juwaini Abdul Rahman
/site-packages/django/template/loader_tags.py", > line 63, in render > result = block.nodelist.render(context) > File > "/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py", > line 1005, in render >

my admin django not correct: NoReverseMatch à /admin/login/

2022-09-20 Thread Nicodem Laurore
for node in self])) File "/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py", line 966, in render_annotated return self.render(context) File "/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-

Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
021 at 2:56 PM 'Rahul Chauhan' via Django users < >>> django...@googlegroups.com> wrote: >>> >>>> Hi All, >>>> >>>> I have a customized/override "*changelist_view.html*" to display >>>> hierarchical data in Django admin panel.

Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
w.html*" to display >>> hierarchical data in Django admin panel. >>> >>> The problem is that the default form to add the Model data throws below >>> error when clicked the button "add category". Please refer to the attached >>> screen

Re: Error: NoReverseMatch at

2021-08-16 Thread 'Rahul Chauhan' via Django users
list_view.html*" to display >> hierarchical data in Django admin panel. >> >> The problem is that the default form to add the Model data throws below >> error when clicked the button "add category". Please refer to the attached >> screenshot. >> &

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread RANGA BHARATH JINKA
No problem. All the best 😀 On Mon, Aug 31, 2020 at 11:35 PM Patrick Carra wrote: > Thanks bharath for the info I'm going to dig more in to these. > > On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote: > >> Hi, >> >> Please check this package. This may help you. All th

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
Thanks bharath for the info I'm going to dig more in to these. On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote: > Hi, > > Please check this package. This may help you. All the best > > https://django-tables2.readthedocs.io/en/latest/pages/filtering.html >

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
*Thanks coolguy I changed my urls.py to this and that resolved the error:* from django.urls import include, path from . import views from .views import search app_name= "searchLit" urlpatterns=[ path('customsearch/', views.search, name='search'), path('exportlit/', views.searchLit_export

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-29 Thread V. J
Věřte si 😉 Vašek. JOdesláno z mého telefonu Huawei Původní zpráva Od: RANGA BHARATH JINKA Datum: so 29. srp 2020 5:00Komu: django-users@googlegroups.comPředmět: Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered querysetHi,     There is a

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread coolguy
You can't have the same name twice. You need to change the name for one of the followings: path('customsearch/', views.search, name='search'), path('customsearch//', views.search, name='search_xxx') Reverse method requires a url identified by name parameter which must be unique. Its look

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread coolguy
You can't have the same name twice. You need to change the name for one of the followings: path('customsearch/', views.search, name='search'), path('customsearch//', views.search, name='search_xxx') On Friday, August 28, 2020 at 7:06:09 PM UTC-4 pcar...@gmail.com wrote: > Hello All! I n

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi, There is a django module. https://pypi.org/project/django-datatables-view/ On Sat, 29 Aug 2020, 8:25 am RANGA BHARATH JINKA, wrote: > Hi, > > Use jQuery datatable for this. It is easy to use and has inbuilt > search and export to CSV, Excel options also. > > https://datatable

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi, Use jQuery datatable for this. It is easy to use and has inbuilt search and export to CSV, Excel options also. https://datatables.net/extensions/buttons/examples/initialisation/export.html On Sat, 29 Aug 2020, 7:54 am RANGA BHARATH JINKA, wrote: > Hi, > > Check this. > https:/

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi, Check this. https://pypi.org/project/django-queryset-csv/ On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, wrote: > Hi, > > Please check this package. This may help you. All the best > > https://django-tables2.readthedocs.io/en/latest/pages/filtering.html > > > On Sat, 2

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi, Please check this package. This may help you. All the best https://django-tables2.readthedocs.io/en/latest/pages/filtering.html On Sat, 29 Aug 2020, 4:36 am Patrick Carra, wrote: > Hello All! I need some help with a problem I have been struggling with. > One of you generous geniu

NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread Patrick Carra
Hello All! I need some help with a problem I have been struggling with. One of you generous geniuses has the answer I'm sure of it. I am working on integrating an export to csv button(link) on my template to export filtered data from one of my tables. I have previously only been able to dum

Re: NoReverseMatch

2020-08-04 Thread vedant mehta
In createOrder function in views.py u need to pass pk as well createOrder(request,pk) On Wed, Aug 5, 2020, 2:11 AM Haris Ahmad wrote: > Hello everyone, I'm getting this error, > *Reverse for 'create_order' with no arguments not found. 1 pattern(s) > tried: ['create_order/(?P[^/]+)/$'] * > > I'

NoReverseMatch

2020-08-04 Thread Haris Ahmad
Hello everyone, I'm getting this error, *Reverse for 'create_order' with no arguments not found. 1 pattern(s) tried: ['create_order/(?P[^/]+)/$'] * I'm getting this error when I use *path('create_order//', views.createOrder, name="create_order"),* but there is no such error when path is.. *path

Re: NoReverseMatch if "url" template tag not used with app_name

2020-07-15 Thread Franz Ulenaers
trying to explain. > > I have used name=“home” for home view. I’m using urls.py for my app(main > URLs.py to route me to my apps urls.py, app urls.py contains path(‘’, > HomeView.as_view(), name=‘home’) > > But when I try to reference this url in templates ({% url ‘home’%})I ge

NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread strang
NoReverseMatch error. However if I use {% url ‘post:home’ %} it works post is my app name -- 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-user

NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread Exactly musty
You are using django url, so it should be the same name you gave your url in your URLs.py e.g path('',homeview.as_views, name='home-page') So if I want to call this url in my template I will use the django url which is {% url 'home-page' %}. You will have to check your url and see if what you

NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread strang
I just want to confirm if there has been a change in Django3.x In Django2.x i could write something like ** where 'home' is a url pattern in one of my apps(not the main url file) But I get NoReverseMatch when I use the same in Django3 I have to use this convention ** Which one is co

Re: reg: NoReverseMatch at "login"

2020-04-29 Thread 'Amitesh Sahay' via Django users
This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch" error.  It's ironic that everything was working before. But I don't know what changed, things went south.  views.py---def login_user

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
sue. Explanation as below Once the user login, he/she will be rendered to a page called (chitrr.html). This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch" error.  It's ironic that everything was workin

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
below Once the user login, he/she will be rendered to a page called (chitrr.html). This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch" error.  It's ironic that everything was working before. But I don't kn

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Adrian Havenga-Bennett' via Django users
gt;  > Hi, > > Its a shame that I am not able to resolve this simple issue. Explanation as > below > > Once the user login, he/she will be rendered to a page called (chitrr.html). > This I have mentioned as a "return redirect('chitrr')". But when I login,

reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
Hi, Its a shame that I am not able to resolve this simple issue. Explanation as below Once the user login, he/she will be rendered to a page called (chitrr.html). This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch&

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-25 Thread maninder singh Kumar
A URL.py problem Reg Willy Sent from my iPad > On 25-Apr-2020, at 10:04 AM, Ahmed Khairy wrote: > > yes > > INSTALLED_APPS = [ > 'django.contrib.admin', > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.messages', >

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I added the new app urls to the main project URLs I think this was the mistake but now I have to change the URLs location as I'm getting 404 error score/score/ Thank you, your first question is what made me find the issue On Saturday, April 25, 2020 at 1:13:08 AM UTC-4, Ahmed Khairy wrote: > >

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
Yes i tried other urls from other models it worked but anything related to the new app is not linked On Saturday, April 25, 2020 at 12:42:14 AM UTC-4, Motaz Hejaze wrote: > > did you try to change the name 'post-create' to something else ? > > On Sat, Apr 25, 2020 at 6:34 AM Ahmed Khairy > wrote

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
did you try to change the name 'post-create' to something else ? On Sat, Apr 25, 2020 at 6:34 AM Ahmed Khairy wrote: > yes > > INSTALLED_APPS = [ > 'django.contrib.admin', > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
yes INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'allauth', 'allauth.account', 'users.apps.UsersC

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
did you add your new app to installed apps in settings.py On Sat, Apr 25, 2020 at 6:29 AM Motaz Hejaze wrote: > you don't need the include part because you already copied the class to > the new app > > On Sat, Apr 25, 2020 at 6:16 AM Ahmed Khairy > wrote: > >> I tried to include the urls >> >>

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
you don't need the include part because you already copied the class to the new app On Sat, Apr 25, 2020 at 6:16 AM Ahmed Khairy wrote: > I tried to include the urls > > originally it was > > path('score/new/', PostCreateView.as_view(), name='post-create'), > > but both didn't work > > On Fr

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I tried to include the urls originally it was path('score/new/', PostCreateView.as_view(), name='post-create'), but both didn't work On Friday, April 24, 2020 at 11:29:41 PM UTC-4, Ahmed Khairy wrote: > > I have created a new app in a project and moved one of the classes from > one app

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I was trying to include the urls originally it was path('score/new/', PostCreateView.as_view(), name='post-create'), but still both not working On Friday, April 24, 2020 at 11:33:48 PM UTC-4, Motaz Hejaze wrote: > > path('score/new/', include(('post-create.urls', 'post-create' > ), PostCr

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
path('score/new/', include(('post-create.urls', 'post-create' ), PostCreateView.as_view(), name='post-create'), explain this line ? On Sat, Apr 25, 2020 at 5:30 AM Ahmed Khairy wrote: > I have created a new app in a project and moved one of the classes from > one app to the new app > > I checke

NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I have created a new app in a project and moved one of the classes from one app to the new app I checked every step but I keep getting No Reverse match I wrote the name of the app before the namespace but still HTML : Upload Designs URLS from django.urls import include, path from

Re: NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$']

2020-04-24 Thread Raja Sekar Sambath
Sergei Sokov wrote: > Hello everybody > > I have a problem: > > NoReverseMatch at /update-orders/12 > > Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) > tried: ['update\\-orders/(?P[0-9]+)$'] > > R

Re: NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$']

2020-04-23 Thread Anonymous Patel
join that as well https://youtu.be/RPl-3CqTjQE Raj Patel On Thu, 23 Apr, 2020, 11:59 pm Sergei Sokov, wrote: > Hello everybody > > I have a problem: > > NoReverseMatch at /update-orders/12 > > Reverse for 'update_order' with arguments '('',)' not

NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$']

2020-04-23 Thread Sergei Sokov
Hello everybody I have a problem: NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$'] Request Method: GET Request URL: http://192.168.0.249:8000/update-o

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread Awa M. Kinason
ive and iptables shows no restrictions e.g. >> > everything is allowed >> > How could I debug this? >> > >> > >> > On Wednesday, April 15, 2020 at 12:27:21 AM UTC+2, Markus Grossniklaus >> > wrote: >> >> >> >> a) I worked

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread sahil khan
: > >> > >> a) I worked the whole tutorial down to the bottom of part 3 > >> b) I connect with the browser to http://127.0.0.1:8000/polls/ > >> c) the result is: NoReverseMatch at /polls/ > >> d) all project data are attached to this

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-19 Thread Jorge Gimeno
>> >> a) I worked the whole tutorial down to the bottom of part 3 >> b) I connect with the browser to http://127.0.0.1:8000/polls/ >> c) the result is: NoReverseMatch at /polls/ >> d) all project data are attached to this POST in mysite.zip >> e) I think it cann

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-18 Thread Markus Grossniklaus
, Markus Grossniklaus wrote: > > a) I worked the whole tutorial down to the bottom of part 3 > b) I connect with the browser to http://127.0.0.1:8000/polls/ > c) the result is: NoReverseMatch at /polls/ > d) all project data are attached to this POST in mysite.zip > e) I think it can

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
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 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

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)

Re: NoReverseMatch at /sitemap.xml

2020-03-04 Thread Peter of the Norse
You are using positional arguments when you should be using named args. Change the line to return reverse('blog-detail', kwargs = {‘slug’:item.slug, ‘year’:str(item.blog_published_at.year), ‘month’:str(item.blog_published_at.month), ‘day’:str(item.blog_published_at.day)}) > On Feb 22, 2020,

Re: NoReverseMatch at /sitemap.xml

2020-02-22 Thread Yash Garg
Please help me to resolve this issue. On Wednesday, February 19, 2020 at 10:13:07 PM UTC+5:30, Yash Garg wrote: > > When i'm loading sitemap.xml for my site i'm getting this error > > > Reverse for 'blog-detail' with arguments '('This is my title slug', '2020', > '2', '19')' not found. 1 patter

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/$'] >

NoReverseMatch at /sitemap.xml

2020-02-19 Thread Yash Garg
When i'm loading sitemap.xml for my site i'm getting this error Reverse for 'blog-detail' with arguments '('This is my title slug', '2020', '2', '19')' not found. 1 pattern(s) tried: ['blog\\/(?P[0-9]+)\\/(?P[0-9]+)\\/(?P[0-9]+)\\/(?P[-a-zA-Z0-9_]+)$'] sitemap.py class BlogSitemap(Sitemap):

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 Ex

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Dave Ko
git: https://github.com/koloyyee/roasitas.git link to the repository: https://github.com/koloyyee/roasitas please have a look at the files, it is quite frustrating because everything works okay at development level, and at product level it just break Thanks again Jorge! On Saturday, February 1,

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Dave Ko
Hi Jorge, I have changed to it "password_reset" from "password-reset" But what i type www.roastias/password_reset/ it shows no url, but i have checked my folders so the templates/users/password_reset.html and reset of the password related urls in the folder but not on the error page On Sat

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
I apologize to the list for posting all the emails to everyone. I'll keep this going off list. -Jorge On Fri, Jan 31, 2020 at 10:09 PM Jorge Gimeno wrote: > What I believe is going on is that Django is looking for the password > reset view at password_reset, and that url path doesn't exist a

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
What I believe is going on is that Django is looking for the password reset view at password_reset, and that url path doesn't exist anywhere in urls.py. I see a path named "password-reset", which won't match. Let's try to rename that url conf to password_reset, and leave the rest unchanged. Does

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Dave Ko
LOGIN_REDIRECT_URL = 'news:all_news' all_news is the first page of the website On Saturday, February 1, 2020 at 1:16:53 PM UTC+8, jlgimeno71 wrote: > > > > On Fri, Jan 31, 2020 at 8:33 PM Dave Ko > > wrote: > >> I also have some trouble with using signal, which works perfectly fine >> on lo

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Dave Ko
LOGIN_REDIRECT_URL = 'news:all_news' On Saturday, February 1, 2020 at 12:20:29 PM UTC+8, jlgimeno71 wrote: > > > On Fri, Jan 31, 2020 at 5:35 PM Dave Ko > > wrote: > >> Hi everyone, >> >> I am pretty new to django programming, I was following a tutorial and try >> to set up a blog, >> everythi

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
On Fri, Jan 31, 2020 at 8:33 PM Dave Ko wrote: > I also have some trouble with using signal, which works perfectly fine on > localhost but not deployed > > > On Saturday, February 1, 2020 at 12:20:29 PM UTC+8, jlgimeno71 wrote: >> >> >> On Fri, Jan 31, 2020 at 5:35 PM Dave Ko wrote: >> >>> Hi e

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Dave Ko
I also have some trouble with using signal, which works perfectly fine on localhost but not deployed On Saturday, February 1, 2020 at 12:20:29 PM UTC+8, jlgimeno71 wrote: > > > On Fri, Jan 31, 2020 at 5:35 PM Dave Ko > > wrote: > >> Hi everyone, >> >> I am pretty new to django programming, I w

Re: post list view not found NoReverseMatch

2020-01-29 Thread Jorge Gimeno
This exception gives us information in the traceback about how to find what went wrong. Without that, we can't speculate as to what is going on. There is a good answer here on working through NoReverseMatch exceptions: https://stackoverflow.com/questions/38390177/what-is-a-noreversematch-

post list view not found NoReverseMatch

2020-01-29 Thread MEGA NATHAN
Hi All. And this my view page if any bug please tell me. from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.decorators import login_required from blog.models import Post, Comment from django.utils import timezone from blog.forms import PostForm, CommentForm f

Re: NoReverseMatch

2019-03-02 Thread Akshay Gupta
send your url.py and views.py files On Saturday, 2 March 2019 19:08:52 UTC+5:30, Harish Chaudhary wrote: > > [image: IMG_20190302_150600-min.jpg] > I am getting this error can anyone help me in this > *With Regards,* > *Harish.S.Chaudhary* > *Email:-haris...@gmail.com * > -- You received this

Re: NoReverseMatch

2019-03-02 Thread Akshay Gupta
use home/ On Saturday, 2 March 2019 19:08:52 UTC+5:30, Harish Chaudhary wrote: > > [image: IMG_20190302_150600-min.jpg] > I am getting this error can anyone help me in this > *With Regards,* > *Harish.S.Chaudhary* > *Email:-haris...@gmail.com * > -- You received this message because you are s

Re: Django Tutorials: NoReverseMatch at /polls/1/vote/

2019-02-21 Thread Victor H. Velasquez Rizo
ro/tutorial04/). When I run >>> my website and go to the url:http://localhost:8000/polls/1/vote/, I am >>> greeted with an exception: >>> >>> NoReverseMatch at /polls/1/vote/ >>> value: u'polls' is not a registered namespace >>> >>&

Re: Django Tutorials: NoReverseMatch at /polls/1/vote/

2019-02-21 Thread Suresh Kannan
You should read the links https://docs.djangoproject.com/en/2.1/intro/tutorial03/#namespacing-url-names https://stackoverflow.com/questions/14892462/django-error-upolls-is-not-a-registered-namespace https://stackoverflow.com/questions/30935053/noreversematch-at-polls-1-vote Suresh On Thu, 21

Re: Django Tutorials: NoReverseMatch at /polls/1/vote/

2019-02-21 Thread odootesting00
gt;> However, I have reached a problem that I am stuck on after implementing >> the voting forms described in tutorial 4 ( >> https://docs.djangoproject.com/en/1.6/intro/tutorial04/). When I run my >> website and go to the url:http://localhost:8000/polls/1/vote/, I am >>

Re: NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-07 Thread Ivan Martić
t; > thanks in advance. > waiting for a reply > > On Mon, Feb 4, 2019 at 5:18 PM Ivan Martić > wrote: > >> Hi all, >> >> I need help. >> I keep getting this issue, NoReverseMatch at / >> Reverse for 'productsgrouping-update' with arguments 

Re: NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-04 Thread B.navya spoorthi Sweety
django. i knew Regular Mongo Db operations but not able to do from Django thanks in advance. waiting for a reply On Mon, Feb 4, 2019 at 5:18 PM Ivan Martić wrote: > Hi all, > > I need help. > I keep getting this issue, NoReverseMatch at / > Reverse for 'productsg

NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-04 Thread Ivan Martić
Hi all, I need help. I keep getting this issue, NoReverseMatch at / Reverse for 'productsgrouping-update' with arguments '('',)' not found. 1 pattern(s) tried: ['update/(?P[0-9]+)/$'] not sure what am doing wrong. Any time I put url tag {% url 'prod

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-02-01 Thread Ivan Martić
i think i found the issue, problem was in the html url tag.. i should look like this href="{ url 'update_group' list_all.url_id }"> not like this href="{ url 'update_group' item.id }"> thank you all pet, 1. velj 2019. u 09:26 Ivan Martić napisao je: > Hi guys, any help on this matter? i still

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-02-01 Thread Ivan Martić
Hi guys, any help on this matter? i still have noreverse issue. There is something wrong with my url nameing sri, 30. sij 2019. u 10:55 Ivan Martić napisao je: > Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo. >>> >>> Znači, imam 2 aplikacije, prva abc radi a druga product gr

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-30 Thread Ivan Martić
> > Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo. >> >> Znači, imam 2 aplikacije, prva abc radi a druga product groups ne radi.. >> Sve je kopirano u 2 privitka. >> >> Da li imaš vremena pogledati pliz? >> > Šta god napravim, No reverse mi se javlja... -- You received th

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
ok, pokušat ću. ak neuspijem posaljem ti sta god ti treba da pokusas sam rekreirati...ovo je zaista zeznuto uto, 29. sij 2019. u 13:56 Nebojsa Hajdukovic napisao je: > To je greška zato što ne može da nađe url_id ajd ako ne uspeš pogledaću > večeras detaljno šta si radio pa da vidim gde je grešk

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Nebojsa Hajdukovic
To je greška zato što ne može da nađe url_id ajd ako ne uspeš pogledaću večeras detaljno šta si radio pa da vidim gde je greška уто, 29. јан 2019. у 13:51 Ivan Martić је написао/ла: > napravio sam točno kako si rekao i dalje nece, isti error ...vec danima se > mucim sa ovime..nešto drugo je posr

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
33. return render(request, 'qif/productsgrouping/productsgroup.html', context) File "C:\Users\martici\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\shortcuts.py" in render 36. content = loader.render_to_string(template_name, context, request, us

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Nebojsa Hajdukovic
neće raditi ali ne zbog html već zbog greške u views probaj ovako def productsgrouping_update_view(request, url_id): assigned = get_object_or_404(Material, pk=url_id) naravno prvo moraš da importuješ get object or 404: from django.shortcuts import get_object_or_404 уто, 29. јан 2019.

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
Bok Nebojša, mislim da je stvar u HTML možda prije, jer mi je ranije sve radilo..u jednom trenu je puknula veza. Neznam točno kada. Znači, da odem na url *productsgrouping *prikaze sve grupe, kad kliknem na grupu (dodam joj a=href) no reverse mathc, ako maknem atribute u url dobijem #, a ako ručno

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Nebojsa Hajdukovic
A što ne uradiš update preko class based view daleko je lakše? https://docs.djangoproject.com/en/2.1/ref/class-based-views/generic-editing/ Ako hoćeš preko funkcije ja radim sa get_object_or_404, ovako: def productsgrouping_update_view(request, url_id): product_lista = get_object_or_404(MaterialGr

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
not sure what to say čet, 24. sij 2019. u 13:53 Ivan Martić napisao je: > Hi Andréas, > sorry for misspeling in codes. All is working ok except when i try to put > url tag for 'update_productsgrouping'. > I need to update group with new products but It does not argument for > group id. > What d

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-24 Thread Ivan Martić
Hi Andréas, sorry for misspeling in codes. All is working ok except when i try to put url tag for 'update_productsgrouping'. I need to update group with new products but It does not argument for group id. What do you think i am doing wrong...? čet, 24. sij 2019. u 13:43 Andréas Kühne napisao je:

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-24 Thread Andréas Kühne
Hi, The reason you are getting this is that you are adding an argument to the productsgrouping url - which doesn't take any arguments. In your code you have: (Which by the way isn't correct either, I think you mean: {{ item }} - {{item.id}} ) If you look at the url for the producsgrouping view,

NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-24 Thread Ivan Martić
Hi all, i am having issue with url tag, every time i put url tag like --{% url 'productsgrouping' item.id%}-- i get no reverse error. Can you help me figure it out on what am i doing wrong? view: def productsgrouping_view(request): queryset = MaterialGroup.objects.all() context = {"list" : query

Re: NoReverseMatch at / '' is not a registered namespace

2019-01-16 Thread Gilbeesh Kosma
use this: path(' ',include('core.urls')) On Jan 17, 2019 12:50 AM, "Thiago Brito" wrote: > Hi > > I'm beginner in django and i got this error. > > [image: image.png] > > urls.py > [image: image.png] > > my app.urls.py > [image: image.png] > > and my html file > [image: image.png] > > and views >

NoReverseMatch at / '' is not a registered namespace

2019-01-16 Thread Thiago Brito
Hi I'm beginner in django and i got this error. [image: image.png] urls.py [image: image.png] my app.urls.py [image: image.png] and my html file [image: image.png] and views [image: image.png] How can i fix it? any idea? -- You received this message because you are subscribed to the Google

Re: NoReverseMatch at /blog/

2018-10-15 Thread Gaurav Toshniwal
I think it's because the 4th parameter to the URL config is \w+, which means match one or more words, which is not the case while trying to construct the reverse URL, since the 4th parameter passed is an empty string. On Monday, October 15, 2018 at 9:57:44 PM UTC+4, Mohamed Awad wrote: > > hi I

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()

  1   2   3   4   5   >