Re: manage.py loaddata: Problem installing fixture... Email matching query does not exist

2022-10-17 Thread Luiz Angelo Daros de Luca
Hello Moritz, I have good news. I managed to migrate from sqlite3 to postgresql. You need to apply this patch and load each mailman app individually because it conflicts with existing objects, truncating the *_profile tables on the way. https://gitlab.com/mailman/hyperkitty/-/merge_requests/469

Re: manage.py loaddata: Problem installing fixture... Email matching query does not exist

2022-09-27 Thread Luiz Angelo Daros de Luca
Hello Moritz, I got the same problem doing the same mailman3 migration (but to a postgres db). Do you have a solution? Regards, -- 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,

DoesNotExist at /admin/blog/blog/add/: blog matching query does not exist

2022-09-13 Thread Jaap van Wingerde
Suddenly I can no longer add blogs to Django. Django says 'blog matching query does not exist'. That seems strange to me because I want to add something to the database and not request a blog. What could be going on here? admin.py: class blogadmin(admin.ModelAdmin): def save_

manage.py loaddata: Problem installing fixture... Email matching query does not exist

2022-07-07 Thread Moritz Both
/python3.8/site-packages/django/db/models/fields/related_descriptors.py", line 154, in get_object return qs.get(self.field.get_reverse_related_filter(instance)) File "*/home/daneben/*.local/lib/python3.8/site-packages/django/db/models/query.py", line 435, in get raise sel

Re: Employee matching query does not exist

2022-01-05 Thread Gwanghyeon Gim
Two possible scenarios. 1. self.request.POST doesn't have any key named 'employee_id', so self.request.POST.get('employee_id') returns None 2. self.request.POST.get('employee_id') has value like 'Sam', but Employee model doesn't have any object whose name equals to self.request.POST.get('employ

Re: Employee matching query does not exist

2022-01-05 Thread Julio Cojom
Hi, Try the following. employee =self.request.POST.get('employee_id') print(employee) obj.employee= Employee.objects.filter(name=employee) It will crash again, but you can see in the console if it's printing the id correctly. I've assume this is a function, not a class view by the way that you

Re: Employee matching query does not exist

2022-01-05 Thread Rey Ondiyo
Django don't saw a employe who have this ID so you can use filter if there's not matching in your database he return [ ]. obj.employee= Employee.objects.filter(name=self.request.POST.get('employee_id')) Le mardi 4 janvier 2022 à 15:44:55 UTC+1, jitendra...@gmail.com a écrit : > name column r

Re: Employee matching query does not exist

2022-01-04 Thread Jitendra kumar Patra
name column row's data not matching from database Show that you are getting error . So we use the Expection then you can easily handle the error .. On Tue, 4 Jan 2022, 8:05 pm yassin kamanyile, wrote: > please team ..i got an error from that line below > > obj.employee = Employee.objects.get

Employee matching query does not exist

2022-01-04 Thread yassin kamanyile
please team ..i got an error from that line below obj.employee = Employee.objects.get(name=self.request.POST.get('employee_id' )) -- 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,

Re: User matching query does not exist.

2021-10-18 Thread Nicholas Bartlett
tattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/nicholasbartlett/Documents/Dashboard/djangodash/djenv/lib/python3.8/site-packages/django/db/models/query.py", line 435, in get raise self.model.DoesNotExist( django.contrib.auth.models.Group.DoesNotExist: Group mat

Re: User matching query does not exist.

2021-06-12 Thread sachinbg sachin
t, *callback_args, >> **callback_kwargs) >> File "D:\DjangoDemos\CartApp\views.py", line 15, in addToCart >> user = User.objects.get(id=uid) >> File >> "D:\DjangoDemos\venv\lib\site-packages\django\db\models\manager.py", line >> 85, i

Re: User matching query does not exist.

2021-06-12 Thread Nikeet NA
t;, line 15, in addToCart > user = User.objects.get(id=uid) > File > "D:\DjangoDemos\venv\lib\site-packages\django\db\models\manager.py", line > 85, in manager_method > return getattr(self.get_queryset(), name)(*args, **kwargs) > File "D:\Dja

User matching query does not exist.

2021-06-12 Thread Shilpa Agrawal
r.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "D:\DjangoDemos\venv\lib\site-packages\django\db\models\query.py", line 435, in get raise self.model.DoesNotExist( Exception Type: DoesNotExist at /addToCart/1 Exception V

pages.models.vk_ls_product_search.DoesNotExist: vk_ls_product_search matching query does not exist.

2020-10-16 Thread Salima Begum
) and not self.query.distinct_fields: clone = clone.order_by() limit = None if not clone.query.select_for_update or connections[clone.db].features.supports_select_for_update_with_limit: limit = MAX_GET_RESULTS clone.query.set_limits(high=limit) num = le

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-10-11 Thread dum dum
Hi guys, I solved this problems about week ago. Turns out that there were conflict of data and codes. Django sitemap generate something that was not exist. Such the slug. Thanks for suggestions and help before. On Mon, Oct 12, 2020 at 12:41 AM Dvs Khamele wrote: > Hi do you hire contract based

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related techincal tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Sat, 26 Sep 2020, 11:50 pm Kasper Laudrup, wrote: > Hi Dum Dum, > > On 26/09/202

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-27 Thread Kasper Laudrup
On September 27, 2020 7:49:43 AM GMT+02:00, dum dum wrote: >[image: image.png] > >I was successfully submitted the sitemap in google search console last >week, and got discovered urls about 960.. But suddenly, when I tried to >resubmitted sitemap.xml again, I got status "couldn't fetch". >The prob

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread dum dum
[image: image.png] I was successfully submitted the sitemap in google search console last week, and got discovered urls about 960.. But suddenly, when I tried to resubmitted sitemap.xml again, I got status "couldn't fetch". The problem is that HTTP Error 500 in production. In local, I can open si

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread dum dum
There is nothing wrong with the rest data in the logs. I found only http error 500 when I visited domain.com/sitemap.xml. It's kinda weird though. Hmm.. still figuring out the cause of the problem. Thanks anyway. On Sun, Sep 27, 2020 at 12:40 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wro

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Check the whole logs by going up On Sun, Sep 27, 2020 at 11:07 AM dum dum wrote: > [image: image.png] > This is what I got from heroku logs --tail. > > Thanks. > > On Sun, Sep 27, 2020 at 12:30 PM RANGA BHARATH JINKA < > bharathjink...@gmail.com> wrote: > >> Hi, >> >> Run heroku logs --tail

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread dum dum
[image: image.png] This is what I got from heroku logs --tail. Thanks. On Sun, Sep 27, 2020 at 12:30 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Run heroku logs --tail in terminal > All the best > > On Sun, Sep 27, 2020 at 10:51 AM dum dum wrote: > >> what do you

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Hi, Run heroku logs --tail in terminal All the best On Sun, Sep 27, 2020 at 10:51 AM dum dum wrote: > what do you mean "log files"? > Is that logs in terminal or ? > > In my terminal it works normal, no problem at all. > in localhost it works normal, but in production I got http error 5

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread dum dum
what do you mean "log files"? Is that logs in terminal or ? In my terminal it works normal, no problem at all. in localhost it works normal, but in production I got http error 500 [image: image.png] I'm using heroku. Thanks On Sun, Sep 27, 2020 at 1:20 AM Kasper Laudrup wrote: > Hi Dum Dum,

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread Kasper Laudrup
Hi Dum Dum, On 26/09/2020 18.56, dum dum wrote: I followed the solution on the internet https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r image.png by commented django.contrib.sites. But still got the same error. Please advise. Thanks What did y

Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread dum dum
; I don't understand this. > In local, when I access 127.0.0.1:8000/sitemap.xml. I can see my xml file. > But in production > domain.com/sitemap.xml gave me this HTTP 500 Error. Site matching query > does not exist. > > Anyone experienced this? > Please help, thanks! >

domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-25 Thread dum dum
I don't understand this. In local, when I access 127.0.0.1:8000/sitemap.xml. I can see my xml file. But in production domain.com/sitemap.xml gave me this HTTP 500 Error. Site matching query does not exist. Anyone experienced this? Please help, thanks! -- You received this message becaus

XYZModel matching query does not exist

2020-09-15 Thread Jatin Agrawal
I am facing some issues while fixtures loading while running testcases. The error is app_name.models.company.CompanyModel.DoesNotExist: Problem installing fixture '/Users/xyz/Documents/temp/testdir/random/fixtures/product.json': XYZModel matching query does not exist. 1. Earlier,

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
okay so I dumped all the contents of my editCircuit.html into a file called circuitinfotable_form.html and now I get my form. But I still don't understand why I had to use this name since I never specified it anywhere. -- You received this message because you are subscribed to the Google Group

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
I don't have a circuitinfotable_form.html. I never specified circuitinfotable_form in any of my code. What should that form contain? My /viewLit/editCircuit.html form contains the following: {% block content %} {% csrf_token %} {{form.as_p}} {% endblock %} Shouldn't that suffice

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread franz ulenaers
put your template |'circuitinfotable_form.html' |on one of your folders :| /home/db_user/ciopsdb/base/templates/viewLit/circuitinfotable_form.html /home/db_user/ciopsdb/templates/viewLit/circuitinfotable_form.html /home/db_user/ciopsdb/editLit/templates/viewLit/circuitinfotable_form.html /home/db_

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
I didn't have one. I thought UpdateView would create the form for me. But I was working the problem and made one: from django.forms import ModelForm from . models import Circuitinfotable class CircuitinfotableForm(ModelForm): class Meta: model = Circuitinfotable fields = '__

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Raja Sekar Sambath
Hey Patrick, Can you post forms.py here? On Wed, 27 Nov 2019 at 21:23, Patrick Carra wrote: > Raja that was a great suggestion thank you! Once a started playing around > with the urls in the project level I found that it was still being routed > to viewLit despite the edit/ in the url I was pa

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
Raja that was a great suggestion thank you! Once a started playing around with the urls in the project level I found that it was still being routed to viewLit despite the edit/ in the url I was passing. I decided to put all these classes into the same app viewLit/views.py and now my parameter

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Raja Sekar Sambath
Hi, * path('viewLit/edit/', include('editLit.urls')),* path('viewLit/', include('viewLit.urls')), * path('edit/', include('editLit.urls'))*, look at above in project level urls.py, give a try by commenting any one On Wed, 27 Nov 2019 at 03:30, Patrick Carra wrote: > It's actually this

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
It's actually this I copy and pasted the wrong thing: Edit Circuit Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('', i

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
This is the link ? Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('', include('homepage.urls')), path('sea

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Ha that was my mistake my brain has turned to mush anyhow the change was made and it still is broken :( On Tuesday, November 26, 2019 at 3:34:45 PM UTC-6, Patrick Carra wrote: > > Correct me if i'm wrong but I think you meant: > > urlpatterns= [ > path('circuit/', > views.editLit.as_view(),

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Correct me if i'm wrong but I think you meant: urlpatterns= [ path('circuit/', views.editLit.as_view(),name='editLit'), ] I did make that change but the results were the same. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Easy, urlpatterns from editLit.urls must be: urlpatterns= [ path('jira/', views.editLit.as_view(),name='editLit'), ] Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 22:09: > Yea! This toolbar is an awesome tool thanks for the tip. So now I guess > I'm not understanding how

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Yea! This toolbar is an awesome tool thanks for the tip. So now I guess I'm not understanding how to route url's really. The a href is: Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import de

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Yeah! Can you see the error? *WHERE* "circuitinfotable"."circuitid" = 'edit/circuit/STTK-100G-18040-01-WRBB' would be : *WHERE* "circuitinfotable"."circuitid" = 'STTK-100G-18040-01-WRBB' Link incorrect, or uls pattern incorrect Edit Circuit Info Missatge de Patrick Carra del dia dt., 26 de nov

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I figured out the weirdness with the django-debug-toolbar I wasn't serving my static files from the apache/mod_wsgi configuration. After I figured that out this is what I have now: QueryTimelineTime (ms)Action + *SELECT

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
After the page is loaded, click to SQL queries and paste or make a screenshot of the content. In this tab you will see all transactions to DB Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 19:57: > Okay I have worked on it I do have the toolbar on there but it's not > display corr

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Okay I have worked on it I do have the toolbar on there but it's not display correctly it shows up at the bottom of each page and looks like this: - Hide » - Versions Django 2.2.4 - Time CPU: 51.78ms (56.68ms)

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
and Configuring Internal IPs The Debug Toolbar is shown only if your IP address is listed in the INTERNAL_IPS setting. This means that for local development, you *must* add '127.0.0.1' to INTERNAL_IPS

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I installed the django-debug-toolbar but its not doing anything. I imported it added it to settings.py installed apps and middleware, added the if statement to the project level urls.py and Debug is set to True. -- You received this message because you are subscribed to the Google Groups "Djan

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Can you try to add to the view class this argument? https://docs.djangoproject.com/en/2.2/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg pk_url_kwarg = 'circuitid' And check what query is doing with django-debug-toolbar Missatge de Gil Obr

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
May be, Or you aren t querying for circuitid ( by view class code) , normally the urls are with the int pk parameter... For this, django-debug-toolbar can help to see what are you quering to db, i recommend to install and play with this great tool I will read about, i want to know whats happening

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Could it possibly be that it is trying to match this entire value? /viewLit/edit/circuit/STTK-100G-18040-01-WRBB/ and if so what am I doing wrong in my urls and views that I am not dropping /viewLit/edit/circuit/? -- You received this message because you are subscribed to the Google Groups "Dj

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Thanks for the reply Gil i did this and was able to find this object. Python 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from editLit.models import Circuitinf

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Gil Obradors
Hi! Matching query doesn't exists says that this entry with this id not exists in db Are you sure that this object exists? STTK-100G-18040-01-WRBB Can you open a shell and: from xxx.models import Circuitinfotable obj = Circuitinfotable.objects.all() print(len(obj)) obj = Obj.get(circuitid='ST

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Patrick Carra
Sorry I forgot one! My models.py for this class is below: class Circuitinfotable(models.Model): id1 = models.IntegerField(blank=True, null=True) pid = models.CharField(max_length=255, blank=True, null=True) circuitid = models.CharField(primary_key=True, max_length=255, blank= False, null=

Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Patrick Carra
ble.objects.get(circuitid=circuitid) File "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/db/models/manager.py" in manager_method 82. return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/db_user/ciopsdb/venv/lib64/python3.6/site-

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread DANIEL URBANO DE LA RUA
Nice but i am always with nginx and i dont know if it has the same problem or not On Fri, 15 Nov 2019, 18:02 Patrick Carra, wrote: > In case anyone is interested I fixed this with some simple regex in my > view. I identified the patterns for which apache was removing the // and > replacing with

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread Patrick Carra
In case anyone is interested I fixed this with some simple regex in my view. I identified the patterns for which apache was removing the // and replacing with a single / and then wrote some rules around that and replaced the single / with the // before passing it to my query. -- You received

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
Or send it as a post and finish your problem On Thu, 14 Nov 2019, 21:59 DANIEL URBANO DE LA RUA, < dannybombas...@gmail.com> wrote: > Yes at the moment because is all related to the slash character > > On Thu, 14 Nov 2019, 21:57 Patrick Carra, wrote: > >> Yea I think what I may have to do is wri

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
Yes at the moment because is all related to the slash character On Thu, 14 Nov 2019, 21:57 Patrick Carra, wrote: > Yea I think what I may have to do is write some regex in the template to > catch anytime there is a // and convert it to something that won't > interfere with the apache/mod_wsgi du

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
Yea I think what I may have to do is write some regex in the template to catch anytime there is a // and convert it to something that won't interfere with the apache/mod_wsgi due to the url and then when I pass it back into my view convert it back to the original in order to perform the query a

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
>>> r.encoding 'utf-8' >>> r.encoding = 'ISO-8859-1' r is your request use different encoding El jue., 14 nov. 2019 a las 21:29, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > https://www.webforefront.com/django/regexpdjangourls.html? > is maybe something related to your url p

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
https://www.webforefront.com/django/regexpdjangourls.html? is maybe something related to your url pattern i don't know but something is wrong because is not working or did you found a solutions? El jue., 14 nov. 2019 a las 21:21, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: >

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/_modules/django/utils/html/ here you have some tricks to do on your view maybe El jue., 14 nov. 2019 a las 21:18, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > the main problem is tha you have especial character in a url and the > codifica

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
the main problem is tha you have especial character in a url and the codification on an url does this to transport the data and your have to fix it in the request then at least tray using urllib.parse from python check some where an example El jue., 14 nov. 2019 a las 21:15, Patrick Carra () esc

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
I think my assumption was wrong stackoverflow is down right now so I can't go to the link but it seems like somebody is suggesting this is an apache/mod_wsgi error https://code.djangoproject.com/ticket/14346 -- You received this message because you are subscribed to the Google Groups "Django u

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
No change Daniel I looked that up and I think that is used for something else. The name makes since but its purpose is for something else. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
or try to send another unique value it will be easy El jue., 14 nov. 2019 a las 20:56, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > or |escape is the same > > > El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (< > dannybombas...@gmail.com>) escribió: > >> {% autoe

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
or |escape is the same El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > {% autoescape on %} > {{ post.content }} > {% endautoescape %} > > > > try this > > El jue., 14 nov. 2019 a las 20:53, Patrick Carra () > escribió: > >> There was no c

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
{% autoescape on %} {{ post.content }} {% endautoescape %} try this El jue., 14 nov. 2019 a las 20:53, Patrick Carra () escribió: > There was no change after adding |safe after the value within {{}} > example: class="view-item" title="View">View > > -- > You received this message because

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
There was no change after adding |safe after the value within {{}} example: View -- 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...@googleg

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
then use |safe template tag from django El jue., 14 nov. 2019 a las 20:44, Patrick Carra () escribió: > and the actual value is OQYX/173774//ZYO but Django is interpreting it as > OQYX/173774/ZYO/ > > On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote: >> >> That is a value f

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
That is a value from the table in models called Circuitinfotable and the field it is pulled from is called circuitid. -- 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 emai

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
) escribió: > then use |safe template tag from django > > El jue., 14 nov. 2019 a las 20:44, Patrick Carra () > escribió: > >> and the actual value is OQYX/173774//ZYO but Django is interpreting it >> as OQYX/173774/ZYO/ >> >> On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
and the actual value is OQYX/173774//ZYO but Django is interpreting it as OQYX/173774/ZYO/ On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote: > > That is a value from the table in models called Circuitinfotable and the > field it is pulled from is called circuitid. > -- Y

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
ws >>>>>>> 1. Add an import: from my_app import views >>>>>>> 2. Add a URL to urlpatterns: path('', views.home, name='home') >>>>>>> Class-based views >>>>>>> 1. Add an import: from oth

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
.urls import >>>>>> include, path >>>>>> 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) >>>>>> """ >>>>>> from django.contrib import admin >>>>>> from django.urls imp

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
dmin.site.urls), >>>>> path('', include('homepage.urls')), >>>>> path('searchlit/', include('searchLit.urls')), >>>>> path('viewLit/', include('viewLit.urls')), >>>>> ] >>>>

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
de('viewLit.urls')), >>>> ] >>>> >>>> >>>> My viewLit app's urls.py >>>> >>>> from django.urls import path, include >>>> from django.conf.urls import url >>>> from . import views >>

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
Could you provide an example of what you mean? I'm not sure what you mean by method call must include an object instance as argument. This code works for other values of circuitid but does not work for one that contains a //. This tells me, along with the traceback code, that django at some

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
chLit.urls')), >>>> path('viewLit/', include('viewLit.urls')), >>>> ] >>>> >>>> >>>> My viewLit app's urls.py >>>> >>>> from django.urls import path, include >>>&

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
iews >>> >>> urlpatterns= [ >>> path(r'/', views.viewLit, name='viewLit'), >>> ] >>> >>> >>> My viewLit app's views.py >>> >>> from django.shortcuts import render >>> from django.h

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
): >> record = Circuitinfotable.objects.get(circuitid=circuitid) >> template = 'viewLit/viewCircuit.html' >> context = {'record':record} >> return render(request, template, context) >> >> >> The traceback that I receive as

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Integr@te System
t_response(request)File > "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/core/handlers/base.py" > in _get_response 115. response = > self.process_exception_by_middleware(e, request)File > "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django

django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
ord = Circuitinfotable.objects.get(circuitid=circuitid)File "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/db/models/manager.py" in manager_method 82. return getattr(self.get_queryset(), name)(*args, **kwargs)File "/home/db_user/ciopsdb/venv/lib64/pyt

Re: User matching query does not exist.

2019-09-07 Thread Gabriel Stone
rd after. But >> when i trying login with wrong email address for test i have error "User >> matching query does not exist.". How can i handle this error to convert >> message. I have tried this >> >> try: >> user = User.objects.get(email=email) >&

Re: User matching query does not exist.

2019-09-07 Thread göktürk sığırtmaç
ng get user according to email. > > user = User.objects.get(email=email) > > > if user is none, i will show message. I will check password after. But > when i trying login with wrong email address for test i have error "User > matching query does not exist.". How can i

Re: User matching query does not exist.

2019-09-07 Thread göktürk sığırtmaç
p 7, 2019 at 22:36 göktürk sığırtmaç > wrote: > >> I'm trying get user according to email. >> >> user = User.objects.get(email=email) >> >> >> if user is none, i will show message. I will check password after. But >> when i trying login with wro

Re: User matching query does not exist.

2019-09-07 Thread Gabriel Stone
i will show message. I will check password after. But > when i trying login with wrong email address for test i have error "User > matching query does not exist.". How can i handle this error to convert > message. I have tried this > > try: > user = User.objects.get

User matching query does not exist.

2019-09-07 Thread göktürk sığırtmaç
I'm trying get user according to email. user = User.objects.get(email=email) if user is none, i will show message. I will check password after. But when i trying login with wrong email address for test i have error "User matching query does not exist.". How can i handle this e

Re: Matching query does not exist

2019-01-18 Thread Kasper Laudrup
Hi again Ivan, On 1/18/19 11:22 AM, Ivan Martić wrote: im not sure that i understand "specifying your database columns explicitly". I have connected to existing MSSQL database so i had to adapt my model due to that. That's exactly what I mean :-) I don't have any experience with using existi

Re: Matching query does not exist

2019-01-18 Thread Ivan Martić
Hi, im not sure that i understand "specifying your database columns explicitly". I have connected to existing MSSQL database so i had to adapt my model due to that. Just copied model from inspectdb and added: - def __str__ -ForeignKey(class name, on delete=models.CASCADE)xtimes for materialid

Re: Matching query does not exist

2019-01-18 Thread Kasper Laudrup
Hi Ivan, On 1/18/19 10:59 AM, Ivan Martić wrote: Thank you Kasper, You're welcome. i have copied that model after doing inspectdb. So it should be set by default from django that way. Usually all was ok.. Also, i have tried that  change now and got the same result. Any other idea where i

Re: Matching query does not exist

2019-01-18 Thread Ivan Martić
Thank you Kasper, i have copied that model after doing inspectdb. So it should be set by default from django that way. Usually all was ok.. Also, i have tried that change now and got the same result. Any other idea where i gone wrong? -- You received this message because you are subscribed t

Re: Matching query does not exist

2019-01-18 Thread Aditya Singh
😃 On Jan 18, 2019 3:19 PM, "Kasper Laudrup" wrote: Hi Ivan, On 1/18/19 10:25 AM, Ivan Martić wrote: > Hi all, > i am having trouble to get this query on db table right. > I am always getting error. > In your definition of the Material model, the materialid field is defined like this: mater

Re: Matching query does not exist

2019-01-18 Thread Kasper Laudrup
Hi Ivan, On 1/18/19 10:25 AM, Ivan Martić wrote: Hi all,  i am having trouble to get this query on db table right. I am always getting error. In your definition of the Material model, the materialid field is defined like this: materialid = models.CharField(db_column='MaterialID', max_leng

Matching query does not exist

2019-01-18 Thread Ivan Martić
uot;C:\Users\martici\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\models\fields\related_des criptors.py", line 144, in get_object return qs.get(self.field.get_reverse_related_filter(instance)) File "C:\Users\martici\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\models\query.py", line 39 9, in get self.model._meta.object_name productsgrouping.models.Material.DoesNotExist: Material matching query does not exist.>>> query = Material.objects.all() >>> query , , , , ]> >>>

Re: note matching query does not exist.

2018-09-13 Thread Yash Thakkar
I’m agree with you that you should use filter(). Or you can use objectname.DoesNotExist as an exception. On Thu, Sep 13, 2018 at 7:07 AM Manuel Alejandro Garrido Gongora < nolodelato...@gmail.com> wrote: > It is likely because you are getting a directly on an object that probably > does not exist

Re: note matching query does not exist.

2018-09-13 Thread Manuel Alejandro Garrido Gongora
It is likely because you are getting a directly on an object that probably does not exist in the database, I recommend that you use it instead of get filter (). first () or the method get_object_or_404 from django Regards Enviado desde mi iPhone > El 12 sept 2018, a las 19:43, Gear Crew > esc

Re: Matching query does not exist after a post_data signal, but in fact does exist when visiting the url sent by the query

2017-05-16 Thread Constantine Covtushenko
n > order to create the good content for each instance of ModelA. When I try to > use a string of the url sending the id parameter, the content field has for > value the source code of the debug page > > (error 500, DoesNotExist at /admin/apptwo/modelb/my_view/ref=76, [76 is > an

Matching query does not exist after a post_data signal, but in fact does exist when visiting the url sent by the query

2017-05-16 Thread François-Xavier Cao
field has for value the source code of the debug page (error 500, DoesNotExist at /admin/apptwo/modelb/my_view/ref=76, [76 is an example] ModelB matching query does not exist. Exception location : /home/me/Desktop/env/lib/python3.5/site-packages/django/db/models/query.py in get, line 385) But

Re: getting error "Project matching query does not exist."

2017-04-15 Thread Camilo Torres
isting django project at localsystem and its migrate >>> successfully. >>> after migrate i have run following "python manage.py runserver" to run >>> django project. >>> >>> After that i am getting error message "Project matching query

Re: getting error "Project matching query does not exist."

2017-04-12 Thread ludovic coues
gt; successfully. >> after migrate i have run following "python manage.py runserver" to run >> django project. >> >> After that i am getting error message "Project matching query does not >> exist." on terminal and as well as browser. >> >>

  1   2   >