godmode
how yo make a foreignKey blank=True?
godmode
we are talking about a model field into a models.py
godmode
Now it works... i didn't apply and migrate
Anonymous
Hi, I am having a strange problem in formset. I am using multiple modules with modelformset in update view but when I hit save button then it save only last form.
I can see that hidden id field's name are also same for all forms.
Any help?
Gourav
Leonardo
guys, i need to change my date format before save it on database, im trying to do that on perform create, but its not working
Leonardo
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)
headers = self.get_success_headers(serializer.data)
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
Leonardo
its DRF
Leonardo
Leonardo
im not validating, im changing the date format
Leonardo
Leonardo
thx btw @pyflare
Mirco
Anonymous
I am new to this group can anyone help me to give me a few pointers where can i start learning from
Pieas
hello, I am using the default signup from django. but it only shows username, password & confirm password.
how can i get the fields first_name, last_name and email and make them required ??
Pieas
Firdaus
maybe create a custom form based from the built-in auth forms?
https://docs.djangoproject.com/en/3.0/topics/auth/default/#module-django.contrib.auth.forms
Anonymous
Gaurav
how to write a model which can be either updated or deleted..... actually, I want to write 'about us' section in my website and I am stucked in designing the model for this..... The "about us" should be editable and deletable..... how to do that?
Anonymous
Anonymous
Gourav
Gaurav
@GouravSaini125 I just want to design models for about us template
Gourav
Gourav
Sorry, I couldn't get what ur problem is❓
Gourav
Just type down the fields you want to have in ur models.py
Gaurav
Gourav
Gourav
DM me plz, let's talk there
Anonymous
Dharmendra
Can change default date format at modal level
Ajay
Int() argument must be string a byte like object or a number not user error in django
Ajay
Help me guys
Ajay
Gourav
Send me ss
◇Сущ
Hi, there! Need some help with project. How I can send the code? It a lot
Gaurav
Gaurav
And share the link
Gaurav
Thx, one moment
If you have more than one file... Then write file name and comment it out and then paste the code
Gaurav
Do this for every file
Rohan
In case there are multiple files
Gaurav
◇Сущ
Repo:
https://github.com/aliensowo/mysicaly
//
So, troubles in shop/models, shop/view, shop/urls
AttributeError at /
‘UpCatrgory’ object has no attribute ‘get’
◇Сущ
Mb it’s very stupid mistake, but im 3 days without sleep and deadline is knock
Rohan
Rohan
Or just paste your error log on pastebin and toss the link here
◇Сущ
https://pastebin.com/Fhe2J4JC
Rohan
This doesn't seem complete
◇Сущ
A
◇Сущ
https://github.com/aliensowo/mysicaly/blob/master/shop/view.py
◇Сущ
Rohan
This happens during runserver? Can you tell me how to reproduce this? Looks like you're not using the manager somewhere or it's ambiguous with some other class name
◇Сущ
Rohan
Rohan
I can't even reproduce it on my machine :/
Anonymous
I am sending image through contact form from template to admin side
All the data of form is ok but the image is not opening there in admin side
How to set this...?
◇Сущ
◇Сущ
Hah
Hari
Hi guys any one here
◇Сущ
◇Сущ
https://pastebin.com/H1ipMMMn
◇Сущ
I think trouble in shop/urls
But I can’t find
Shreehari
Anyone has made a basic django based application for banking like stuff?
If yes, please share it.
Anonymous
◇Сущ
◇Сущ
◇Сущ
New
Anonymous
I could not find a view with name view.UpCategory in the views.py file