Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi, Let me go through the dock and see if I'll get a breakthrough. Thanks On Mon, 28 Dec 2020, 18:41 Prashanjeet Halder, wrote: > There's no built-in filter as currency in django template language you can > custom create one. > > *As Demonstrated Here: LINK >

Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi, Yes I does. On Mon, 28 Dec 2020, 18:41 AMRIT SHAHI, wrote: > Is your hosting support python > > On Mon, Dec 28, 2020, 12:49 PM tech george wrote: > >> Hello, >> >> I am getting the error as shown below when uploading my django project to >> share hosting. How can I resolve it? >> >> Please

Re: DoesNotExist at /

2020-12-28 Thread AMRIT SHAHI
Is your hosting support python On Mon, Dec 28, 2020, 12:49 PM tech george wrote: > Hello, > > I am getting the error as shown below when uploading my django project to > share hosting. How can I resolve it? > > Please advise. > > DoesNotExist at / > > Currency matching query does not exist. > >

Re: DoesNotExist at /

2020-12-28 Thread Prashanjeet Halder
There's no built-in filter as currency in django template language you can custom create one. *As Demonstrated Here: LINK * On Monday, December 28, 2020 at 12:35:08 PM UTC+5:30 techg...@gmail.com wrote

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread James Schneider
On Oct 23, 2017 4:06 PM, "'Aaron C. de Bruyn' via Django users" < django-users@googlegroups.com> wrote: The difference between .filter() and .get() is definitely 'by-design'. When you filter through a list of objects, you could end up with zero, one, or many objects returned. When you call .get(

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread steve
Thank you Aaron, I started to figure this all out too as I read the docs more carefully and looked at the source code more thoughtfully. One nuance on the try/except block you propose: doesn't work as expected in the request framework because even though the except block can be stated as you pr

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread 'Aaron C. de Bruyn' via Django users
The difference between .filter() and .get() is definitely 'by-design'. When you filter through a list of objects, you could end up with zero, one, or many objects returned. When you call .get(), you are basically saying "I want to get exactly *one* record". If the record is not found, it is cons

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread steve
Replying to myself here: as is often the case, the problem lies with my own source code. I was calling MODELNAME.objects.get(modelfieldname1='foo',modelfieldname2='bar') which raises the 500 when no such record exists. Turns out that calling MODELNAME.objects.filter(modelfieldname1='foo',modelf

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
@TheBeardedTemplar, I'm happy this solves the problem, but its more like a workaround, I'm interested to understand how this raise condition is achieved. ;) One thing that I was thinking that can cause this raise condition is that by default Django emulates CASCADE DELETE behavior on ForeignKeys

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Constantine Covtushenko
HI guis, I need to mention one point that works well for me. If you check blob existence with: hasattr(widget, 'blob') then django responds False in the case Blob Does Not exist an True otherwise. At the same time DB request is performed but DoesNotExist exception is not raised. On Fri, Aug 12

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread TheBeardedTemplar
On Friday, August 12, 2016 at 1:19:17 PM UTC-6, Todor Velichkov wrote: > > Some more code will be helpful, for example the model structure, how do > you define the the `ForeignKey`? How do you subscribe for the signal? > You are saying that with sleep(1) the code works fine, is this mean that >

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
Some more code will be helpful, for example the model structure, how do you define the the `ForeignKey`? How do you subscribe for the signal? You are saying that with sleep(1) the code works fine, is this mean that you can reproduce the problem at any time? However test it without fetching the bl

Re: DoesNotExist: Group matching query does not exist.

2015-11-12 Thread James Schneider
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get > > self.model._meta.object_name > > DoesNotExist: Group matching query does not exist. > > > Can someone help me ? > BTW, this is a standard exception raised by Django for queryset operations that ac

Re: DoesNotExist: Group matching query does not exist.

2015-11-12 Thread Robin Fourcade
Thanks for your reply, It was in the DB but, I don't know why, I had this issue. I made the migration a second time and this time, it worked. Thanks, Robin. -- Solved. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: DoesNotExist: Group matching query does not exist.

2015-11-11 Thread Vijay Khemlani
It seems you don't have any groups in your database with the name "test" On Wed, Nov 11, 2015 at 7:14 PM, Robin Fourcade wrote: > Hi, > I'm working with the auth library. > > I've imported all of these: > > from django.shortcuts import render, redirect > from pizza_club_order.forms import * > fr

Re: doesNotExist

2010-04-03 Thread ivan marchesini
Hi Daniel many thanks... that help me a lot.. now it works.. ;-) ivan > > That method should have gone in the TipoIndagine model. > -- > DR. > -- Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt. Preferisco formati liberi. Please try to avoid to send me .dwg, .doc, .xls, .pp

Re: doesNotExist

2010-04-03 Thread Daniel Roseman
On Apr 3, 3:31 pm, Imuvy wrote: > Dear Django Users > I'm new to django and I'm creating my first django application. > I'm using the development version > > I was able to create a model and automatically create a form using > modelform > > My model contains a lot of table/class but I'm going to

Re: DoesNotExist at /accounts/login/

2006-06-29 Thread blue_beastie
I was experiencing this problem as well, so what I ended up doing is rebuilding dropping the entire database for my project and re-running "./manage.py syncdb". Doing this fixed the problem. I think this problem was caused when I removed example.com from the list of Sites in the admin interface. L

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Charles F. Munat
Paul Childs wrote: > I'm using version 0.91. That's the difference. > > The only other thing I can suggest is to chekc if you have your login > and logout templates in the right place and that the template locations > are in your settings.py file. I think so. The other templates are working. But

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Paul Childs
I'm using version 0.91. That's the difference. The only other thing I can suggest is to chekc if you have your login and logout templates in the right place and that the template locations are in your settings.py file. Sorry I couldn't help out. Good luck. --~--~-~--~~~

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Charles F. Munat
Paul Childs wrote: > I had the same troubles and then I found this... > http://www.carcosa.net/jason/blog/computing/django/gotchas-2006-04-19 > You will notice some other goodies there too. :) Jason McBrayer uses the following regexs in his urls.py file: (r'^accounts/login/', 'django.views.

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Charles F. Munat
rob wrote: > I'm completely new to django and don't know too much, but to me it > looks as though your urls.py doesn't include a regular expression that > matches "/accounts/login/". My urls.py includes: (r'^accounts/login/$', 'django.contrib.auth.views.login'), which I copied and pasted d

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Paul Childs
I had the same troubles and then I found this... http://www.carcosa.net/jason/blog/computing/django/gotchas-2006-04-19 You will notice some other goodies there too. :) You may want these in your project's url.py file too (r'^logout/', 'django.views.auth.login.logout'), (r'', 'django.

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread rob
I'm completely new to django and don't know too much, but to me it looks as though your urls.py doesn't include a regular expression that matches "/accounts/login/". If this is the case, then http://www.djangoproject.com/documentation/tutorial3/ should hopefully cover what you'll need. All the be