Hello
Hello
save() method is not working even I directly give my_form.save()
Hello
Master of None
I have done all those thing and I have used those things only after is_valid()
def register(request):
#blah...
form = UserForm(request.POST or None)
if request.method == "POST":
if form.is_valid(): #This would call the clean method for you
user = User.objects.create(...)
user.set_password(form.cleaned_data.get("password1"))
user.save()
else: #Form is invalid
print form.errors #You have the error list here.
Hello
John
Master of None
Master of None
Hello
form.py
Anonymous
Hello
forms.py def save(self, commit=True):
user = super(SignUpForm, self).save(commit=False)
user.set_password(self.cleaned_data["password2"])
if commit:
user.save()
return user views.py def user_signup_view(request):
my_form=SignUpForm()
if request.method=="POST":
my_form=SignUpForm(request.POST)
if my_form.is_valid():
print("its coming") user=my_form.save() return render(request,"signup.html",context)
Hello
Hello
Ankit
Can any one help me with celery, actually it's not working on production server.
Hello
Arslan
Arslan
https://dev.to/idrisrampurawala/deploying-django-with-celery-and-redis-on-ubuntu-3fo6
this one was very helpful for me
Ankit
Anonymous
which is more in demand with django? reactjs || angularjs
Anonymous
i think, django mysql reactjs stack is trending
Darta
in django admin delete button for image field is not link so i can't remove image what is the problem ?
Rohan
I want a udemy clone project for some reference
Rohan
If any one has it would be a big help
D
Guys I'm planning on starting django if anyone has course materials pdfs or so send me ...
aman
Hey there My name is Aman, I'm creating user form. I want to add address of user using current address what to read how to implement???
Sh
I am a professional django developer. I can help in projects and assignments or any freelancing work in django.
DM for any such queries.
Hamouda
can anyone tell me how to generate a file field
Gari
Can anyone suggest me any SQL group
Charanpreet Singh
Hey, in my django project, I first sign up a user, login the user and create a JWT token for him. Next, the user changes his password. But still, the JWT token which was created before is valid.
Charanpreet Singh
What can be the reason for this?
Hello
If is_active=False authenticate method works or not
Deleted
https://stackoverflow.com/questions/67721855/delete-password-last-login-superuser-status-groups-user-permissions-filed pls help
Ss
Anyone who know react js ??
bot
Why am I muted..
Mirco
.
Hello, did anybody use django-auto-rest?
I have a problem if model relation to itself
```Could not resolve URL for hyperlinked relationship using view name "page-detail". You may have failed to include the related model in your API, or incorrectly configured the lookup_field attribute on this field```
What can I do with it?
Anonymous
Guys how to make <script> global in html code??
LIBIN
how can we eliminate the timezone from datetime field??
Anonymous
Shay
hi, im looking for some one who knows django channels and can help me with a small real time chat project
i will pay for helping
Joseph
Please when I set django debug to True my websites runs locally with allowed host ['*']
But when I set debug to False I get server error(500)
Please can someone help
Mirco
Joseph
Ok thanks
ДжиКю
Hey gays,
I have a Django project. I already did the back end, but I still need a front-end developer to design the templates and to use some javascript.
We have about six pages to design.
How much would it cost? And how much time should it usually take?
on
Depends on ur design @lacostexit
on
If you need it i can help or do it for you
Anonymous
Anonymous
aman
aman
got stuck between geofencing or maps api.. I thing it could be done using maps api but it is used with django
Yaswanth
Why am I getting error like view.method didn't return httpresponse instead it returned None.
aman
aman
Yaswanth
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
inside httpresponse()
Kedar
How is clever programmer course for Python and Django
OneZer0
any know what is it?
https://ibb.co/mbZqpY5
Ali
Hi guys
Today i finished an essential django training
(I'm experienced programmer in Cpp and Asp)
Now I've a questtion. Imagine that you have an Enterprise django project!!! Whichh architecture you will use? Which design pattern? Even in your project dir structure
ahmed
How to Translation websites in django
Anonymous
Django model is ignoring some fields and save blank value when it creates an object, but data is going correctly From frontend, I used modelform
Anonymous
Anonymous
ahmed
Ashish
Hey all,
Have anyone have any idea that how to lock a web page...I want to make a website just like quiz
Amir
Hello
I have this problem: The problem in stack
Does anyone know the reason?
Yaswanth
What is the difference between django.urls and django.conf.urls
Groot
Groot
Its base part are done now i want to add signup & signin + comment section + score in a better manner
Ashish
Groot
But laptop is demage
Ashish
Groot
Auto paage means to modify the data of existing pagge in dynamic manner
Ashish