Anonymous
It is bcos u don't set username field
Anonymous
I will send you some example of creating your custom user ok?
Anonymous
https://www.youtube.com/watch?v=eCeRC7E8Z7Y
Anonymous
I hope you have enough internet traffic
Anonymous
You just missed one point man and try to see the source code u will get it
Anonymous
Inherit from AbstractBaseUser
and set username field
USERNAME_FIELD = email # or one of your custom field
Anonymous
Anonymous
Please share the code i am blindfolded
Anonymous
Use pastebin
Anonymous
Tell me what is ur problem
Anonymous
Is it working for others and why u prepare form for login it is waste of computation u can just grab the username and password to authenticate method
Anonymous
Just delete the userform part and user the
If ... == Post:
User = authenticate (request.post.get.....)
Anonymous
Just search login and scroll and u will see
pylance
George
Marcelo A.
hello !!! can anybody help me in a question ?
George
Doragonsureiyā
hello !!! can anybody help me in a question ?
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 60k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Marcelo A.
I am developing a blog, I am learning Django 3. I have a "blog" model where a post belongs to a user.
Marcelo A.
in the definition of the model I introduce
from django.contrib.auth.models import User
George
Marcelo A.
in the definition of the "author" field I do:
author = models.ForeignKey (User, verbose_name = "Author", on_delete = models.CASCADE)
Marcelo A.
there I found the error ... I had put:
from django.contrib.auth.models import User, user
Nonverbis
I'm not sure about that, but Google assistant seems to recognize voice. it seems to be activated by voice with initialization phrase. But I'd like to use it at my site for commenting. That is a user visits the site, presses a button and dictates their comment. Do you think it possible? If yes, could you show me some examples?
F
I want to make a simple website using django but i face some problem i need someone to help me and I am willing to pay for his time and help
Adonis
.
Please help
Django admin not working on virtual environment
Abhiram
.
What's the problem
Without virtual environment runs fine
But in virtual environment server unexpectedly close and in browser "this site can't be reached"
Xavier
yay
Mohd Khairil Anwar
Hi im working on a project using django.. iv been struggling to create an upload progress bar for my simple upload form.. anyone can point me to a good tutorial? Or resource?
Saivan
When I post the form using Ajax, I have an error
name=request.POST['name']
Django.utils.datastructures.MultivalueDictKetError : name
Pls help this
Xavier
Anonymous
Nonverbis
Sarthak
https://dpaste.org/iKh7
This code runs fine if a wrong OTP is provided.
But if OTP is correct it gives attribute error on random line in code, even the line number is of another function.
I have changed lots of things in this, but nothing seems to work.
I have also checked the indentation of all lines in the file.
Sarthak
If somebody can debug! I can give access to cloud instance! Do help please
Bit
Do we have any blockchain developers here
Sarthak
https://dpaste.org/gBQG
Even this is giving attribute error...
Has anybody ever faced this?
ps
Is it possible to make vistaprint type functionality in djnago
Sarthak
Shubham
Hello Guys ,
We at Locus Solutions are Hiring for Flutter, Django and JS
Interested people can DM or
hr@mylocus.in
Do share the message!
Thanks!!
Bjorn
Shubham
Sarthak
https://dpaste.org/D1K5
code+error + model
Sarthak
but thats commented out you see
Sarthak
why doesn't it just return error: invalid otp
Sarthak
please see the code....
Bjorn
Sarthak
+1
Sarthak
it was like that earlier.... i changed it to this after seeing the way it was used in official documentation
Sarthak
its very strange
Sarthak
if i get solution ill post
Sarthak
it here
Bjorn
aight.. we'll let u know if something comes in mind.
Aneesh
How to combine timedrotatingfilehandler and rotatingfilehandler
arun
I make a website to measure typing speed in a better way so please visit typingchamps.com
arun
and give your valuable suggestion
Sarthak
Sarthak
so sorry
Bjorn
i had to reboot the VM
So it's working now ?? Good. I've one question.
Your code have except(e): in it.
Does that work.. cause I only know about
except Exception as e, or except:
Does except(e) also work the same ??
Sarthak
I just came from react native and did what was there
Sarthak
ill tell you in some time
Sarthak
thanks for letting me know
Bjorn
Yeah . For sure. 😊
V
Hello everyone
V
SOrry for noob question . Maybe you use debug toolbar i whant to ask why debug toolbar doesnt show all executed queries
Suriya
Any possibility to add python script in html ????
#Artem✙
Suriya
For clear answers
#Artem✙
Browsers don't support python
#Artem✙
Suriya
Kk
Jeevachaithanyan