Re: Django 2.2: how to use to a field "from a foreign model", in a CheckConstraint: ?

2019-11-14 Thread Simon Charette
So this happened not to be supported in Django 3.0 either. But https://github.com/django/django/pull/12067 should add support for it. Le jeudi 14 novembre 2019 15:50:34 UTC-5, Simon Charette a écrit : > > For the record I haven' tested the above myself. > > It might only work on Django 3.0+ and r

cursor.connections['db']

2019-11-14 Thread 'Hooman Mohammadi' via Django users
If we have multiple cursor connections, how does Django know which one to choose here in this call? https://github.com/django/django/blob/master/django/db/backends/utils.py#L16 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

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 2.2: how to use to a field "from a foreign model", in a CheckConstraint: ?

2019-11-14 Thread Simon Charette
For the record I haven' tested the above myself. It might only work on Django 3.0+ and require you to pass `output_field=BooleanField()` to Func. Le jeudi 14 novembre 2019 09:46:48 UTC-5, Simon Charette a écrit : > > Hello there, > > I guess your example is not the best since this check could be

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
is this your id OQYX/173774/ZYO/ i mean the if from your model? El jue., 14 nov. 2019 a las 20:33, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > mmm sorry you are pasing the id you dont have any weird character let me > see > > El jue., 14 nov. 2019 a las 20:28, DANIEL URBANO

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
mmm sorry you are pasing the id you dont have any weird character let me see El jue., 14 nov. 2019 a las 20:28, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > ok i didn't see your app name is viewList sorry uset templatetag to scape > weird character because you are using url e

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
ok i didn't see your app name is viewList sorry uset templatetag to scape weird character because you are using url encoding El jue., 14 nov. 2019 a las 20:26, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > then use the templatetag |safe > > El jue., 14 nov. 2019 a las 18:05, D

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 the templatetag |safe El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > a href="/viewLit/{{ circuit.circuitid }}" t > > and in your urls.py > > path(r'/', views.viewLit, name='viewLit'), > > El jue., 14 nov. 2019 a las 18:04, DANIEL URB

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
Daniel thank you but I'm not sure what you mean. The a href link works for everything so far except in the case that the circuitid contains a //. So I don't think its that my url's are not routing properly it seems to me like a // is being interpreted as an escape character. I looked over my

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
a href="/viewLit/{{ circuit.circuitid }}" t and in your urls.py path(r'/', views.viewLit, name='viewLit'), El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > check on your a link you are including vieset/ and there is not on your url > > El jue

Re: SPA websites with Django

2019-11-14 Thread Kevin Dublin
Hi Inna, Yes. You can setup Django with a single view and page, then use a frontend framework like Vue, React, or anything else to manipulate that single page as your application. I hope this helps! Cheers, Kevin On Thu, Nov 14, 2019, 4:49 AM Michael Thomas wrote: > Django is a backend platfo

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
check on your a link you are including vieset/ and there is not on your url El jue., 14 nov. 2019 a las 17:17, Integr@te System (< datacentral...@gmail.com>) escribió: > Hi Informer, > check you model Circuitinfotable, > Method call must include object instance as argument. > > > On Thu, Nov 14,

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
Hi Informer, check you model Circuitinfotable, Method call must include object instance as argument. On Thu, Nov 14, 2019, 21:42 Patrick Carra wrote: > I am passing a parameter in a url to another view and during the process > it gets changed. An original parameter example that produces the er

Re: Django GIS query on annotated spatial field

2019-11-14 Thread Simon Charette
Hello Bill, Could you give us more details about which version of Django you are using? There was a few Django bugs related to as_sql returning Union[list, tuple] as params that were fixed in recent release but this one might not have been caught yet. Cheers, Simon Le jeudi 14 novembre 2019 09

Re: Django 2.2: how to use to a field "from a foreign model", in a CheckConstraint: ?

2019-11-14 Thread Simon Charette
Hello there, I guess your example is not the best since this check could be defined on Author.Meta.constraints directly but if you wanted to define such a check on Book anyway you'll have to define a function and refer to it in the check constraint using Func. Using RunSQL in your migrations R

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 am passing a parameter in a url to another view and during the process it gets changed. An original parameter example that produces the error is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/' It drops the second / between 173774 and ZYO. I assumed this was because it was tr

[no subject]

2019-11-14 Thread Paras Jain
i m using only email for sign up and sending the random password on the mail which will be used for login Now I want login to be done using register email and password send to mail I m stuck here that I m generating random password but how I will save as password and email in my 'views.Py ' fil

Re: SPA websites with Django

2019-11-14 Thread Michael Thomas
Django is a backend platform - it's agnostic as to what type of front end you build with it. On Thu, Nov 14, 2019 at 4:27 PM Inna Reddy wrote: > Hi, > > Can we build Single page web applications with Django ? > > -- > You received this message because you are subscribed to the Google Groups > "D

SPA websites with Django

2019-11-14 Thread Inna Reddy
Hi, Can we build Single page web applications with Django ? -- 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 view t

Re: Does the "manifest_strict" attribute on "ManifestFilesMixin" work?

2019-11-14 Thread Kevin Dublin
Hi Chris, DId you ever find a solution to this? Because I'm encountering a very similar error. --Kevin On Monday, October 1, 2018 at 4:29:45 AM UTC-7, Chris Bergstresser wrote: > > Hi all -- > >For some reason, I get a "Missing staticfiles manifest entry" even > though the file it's compla

Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
tambien prueba lo que dice el compañero si no puede detectar que tipo de app se trata igual es eso talvez borraste algun archivo de configuracion El jue., 14 nov. 2019 a las 13:22, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > yo heroku no utilizo ya que los despiegues los ha

Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
yo heroku no utilizo ya que los despiegues los hago yo en docker o directo sobre el server pero lo unico que veo en tu log es que desde heroku no puede hacer ese push o commit al que lo tengas sincronizado con heroku, prueba a hacer tu el push y ver si pasa el push o comit o merge al evento al que

Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo con git normal El jue., 14 nov. 2019 a las 12:59, Integr@te System (< datacentral...@gmail.com>) escribió: > Hola por favor revisa > > https://devcenter.heroku.com/articles/buildpacks#detection-failure > > On Thu, Nov 14, 2019

Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread Integr@te System
Hola por favor revisa https://devcenter.heroku.com/articles/buildpacks#detection-failure On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos < encinasj.an...@gmail.com> wrote: > mas que nada el poblema que tengo es técnico , el detalle es que cuando > escribo en la terminal git push heroku mast

Re: djangorestframework vs GraphQL

2019-11-14 Thread DANIEL URBANO DE LA RUA
Thanks to you i happy if that can help you out ;) On Thu, 14 Nov 2019, 09:51 guettli, wrote: > Thank you for the hint. Saleor looks very good. > > Am Mittwoch, 13. November 2019 11:35:17 UTC+1 schrieb DANIEL URBANO DE LA > RUA: >> >> You have a good example on saleor eccomerce is on github >> >>

Re: Handling blog posts

2019-11-14 Thread John McClain
Kasper, I get your point but... He might be wanting to learn how to add/edit/delete posts on a blog he is creating! John On Wed, 13 Nov 2019 at 23:33, Kasper Laudrup wrote: > Hi Hedrick, > > On 13/11/2019 21.40, Hedrick wrote: > > Anyone with the good links on how handle news/posts on my Blog

Re: djangorestframework vs GraphQL

2019-11-14 Thread guettli
Thank you for the hint. Saleor looks very good. Am Mittwoch, 13. November 2019 11:35:17 UTC+1 schrieb DANIEL URBANO DE LA RUA: > > You have a good example on saleor eccomerce is on github > > On Wed, 13 Nov 2019, 09:15 guettli, > > wrote: > >> I never used GraphQL, but I like it. In the past th