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
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
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
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_
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
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
>>
>
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
/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
>
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-
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.
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
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.
>>
&
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
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
>
*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
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
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
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
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
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:/
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
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
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
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'
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
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 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
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
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
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
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
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
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,
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&
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',
>
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:
>
>
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
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
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
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
>>
>>
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
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
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
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
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
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
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
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
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
:
> >>
> >> 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
>>
>> 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
, 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
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.
>
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
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
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
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)
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,
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
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/$']
>
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 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
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,
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
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
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
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
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
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
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
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-
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
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
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
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
>>>
>>&
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
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
>>
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
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
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
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
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
>
> 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
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
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
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
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.
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
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
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
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:
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,
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
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
>
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
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
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
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
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
*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 - 100 of 417 matches
Mail list logo