Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Madhav Nandan
Thanks guys. On Sat, May 23, 2020 at 8:14 PM Anubhav Madhav wrote: > Exactly, django now supports is_authenticated as an attribute and not as a > method is_authenticated(). > > Try is_authenticated. > > > On Saturday, 23 May 2020 17:29:01 UTC+5:30, Ousseynou Diop wrote: >> >> Hello Guys, the pro

Re: Postgresql and mysql

2020-05-23 Thread Sebastian Jung
Hey you can Import Files on a Terminal with sudo -u postgres psql < File.txt Salima Begum schrieb am Mo., 18. Mai 2020, 13:50: > Hi , > Mysql query which we used previously now we moved to postgresql, > Here is the below query in mysql , Can anyone help me to write > similar query in postgresql.

Re: Postgresql and mysql

2020-05-23 Thread Ram
Hello Salima, You could use the COPY command that is documented here. https://www.postgresql.org/docs/current/static/sql-copy.html But if the data is bulk and that data has to be copied or inserted into the table in a faster manner, your ideal solution is *Pgloader *because of its performance be

Additional column in Queryset with condition

2020-05-23 Thread Saurabh Adhikary
Hello , I need some advice / tips. I am in a fix. I have 2 databases & I want to join 2 tables of that. *As we know the foreign key concept with 2 separate databases is not possible. * Basically what I want is to add a custom column to a queryset and pass the *current row.name

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Anubhav Madhav
Exactly, django now supports is_authenticated as an attribute and not as a method is_authenticated(). Try is_authenticated. On Saturday, 23 May 2020 17:29:01 UTC+5:30, Ousseynou Diop wrote: > > Hello Guys, the problem is that you call the authenticated method, don't > do this. > Remove the par

RE: how to use .py file function via html or css button from django template

2020-05-23 Thread Vishesh Mangla
You can create a .py file in the same location where your views.py file is.Then to import any function from there in the views.py you can use,from import I rather prefer to make a folder structure like templates/ and static/ And name it backend/my_appThen inside there I store all the .py filesThen

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Ousseynou Diop
Hello Guys, the problem is that you call the authenticated method, don't do this. Remove the parenthesis, print(request.user.is_autheticated) Le samedi 23 mai 2020 07:06:08 UTC, Madhav Nandan a écrit : > > Hello all, > > I was making an eCommerce web application using Django 2.X. > > I'm getting

how to use .py file function via html or css button from django template

2020-05-23 Thread THIRUMALAIVASAN K
Hi, i have created a site for local use and i need to run some some python script when i click the button , how to do that i am using on raspberry to contoll something via dashboard , so i am used django to create a site but i can't ontroll the GPIO pin's via website button -- You re

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Kasper Laudrup
Hi Madhav, On 23/05/2020 09.03, Madhav Nandan wrote: Hello all, I was making an eCommerce web application using Django 2.X. I'm getting TYPE ERROR at /login/: here screenshots are attached, help me resolve issues: I did make all the required changes, however, I don't find how to get rid of t

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread LGBS fine soul coders
Py manage. py makemigrations On May 23, 2020 10:04, "Madhav Nandan" wrote: > Hello all, > > I was making an eCommerce web application using Django 2.X. > > I'm getting TYPE ERROR at /login/: > here screenshots are attached, help me resolve issues: > > I did make all the required changes, howeve