LStyle
Suren
LStyle
what is the difference on first page use styles to the first class, and on the second page to the second class
Suren
LStyle
SantiU
After deploying i get this error:
Forbidden 403
CSRF verification failed. Request aborted
Has anyone experienced the same thing and knows how to solve it? tks
Charly
SantiU
Close
Is there a big difference in the way of handling back-end if I learn .Net then Django?
Charly
Charly
SantiU
The error appear after deploy in aws
rtg
which package do you use for chat in django? or do you prefer websocket? thank you!
Mirco
Chocolate_girl
I have used Myuser(AbstractBaseUser) and mentioned and i set USERNAME_FIELD = 'email' because i want only email field and password in the request then based on these two credentials i have to get the the token in the response by using the obtainAuthToken api.
But the problem is that auth_token is having ForeignKey relationship with the auth_user but we want ForeignKey relationship of token table with nyuser as I'm not able to edit the ForeignKey in default auth_token.
So, do we have any alternative way to get token by using only email and password with the help of obtainauthtoken api?
Suren
I have a list of products for which I have to use the same images. In Django admin I can only upload images from my computer and as many times as I will upload it, image will be saved in catalog.
Is it possible not to upload but to create a gallery of images by specific category on website and instead of uploading all the time the same images select from that gallery only?
Sai
Can anyone tell.me why am i getting name error but i have declared the file name
Suren
Anybody knows how to save picture in it's category catalogue? https://dpaste.org/dG1c8
picture = models.ImageField(upload_to=f"pictures/{cat.name}") returning None
Suren
Tiger
Hello, guys. I made a project locally. My computer is connected to network of the company. How can I share my project? I tried to open http://127.0.0.1:8000/ on another computer connected to network, but it did not work.
Daler
Tiger
Thank you very much!!!
Kaustab Roy_C_24_CSE(AIML)
hello, i am new to django.
I am getting this error, i can understand but cant solve it.
Anyone plz help to overcome
Kaustab Roy_C_24_CSE(AIML)
ValueError at /register/
Cannot assign "'1'": "User.urole" must be a "Role" instance.
Request Method: POST
Request URL: http://127.0.0.1:8000/register/
Django Version: 4.1.4
Exception Type: ValueError
Exception Value:
Cannot assign "'1'": "User.urole" must be a "Role" instance.
.
Rahat
Anyone devops learn in this group
AAYUSH
I face the stripe problem while using it’s api.. when i press pay now button I’m getting Network Error : status 500.. with patterns and whitspaces on reverse..
Mahmood
Hi everyone
In Django admin, how to change the fields in the inline in case in the new row (i mean when I'm adding an instance to the inline)
So the fields will show differently from the new record form and the edit record form of the inline
Mahmood
rtg
Hi! Sometime doesn´t recognize forms.py why?
rtg
from applications.social.forms import AddFollowUserForm
rtg
forms.py is into social app. I don´t understand. 🤔
rtg
there is __init__.py files into social app
rtg
now is ok. I deleted forms.py, i created again and now it is recognized. I don´t understand.
AZ
If I finished designing my site, how do I add payment gateways such as Apple Pay and madtercard or PayPal?
Ola
Is possible to return a set of object in a django query. If yes How pls
Rahul Yadav
Hi anyone can help me regarding file download
Rahul Yadav
I will pay for that
Vas
Rahul Yadav
Vas
what exactly are you interested in?
Vas
Yes
If this forms
forms.FileField()
If model
models.FileField( )
I hope this helps you
.
hello ,
i have two tables table 1 and table 2 , that i wnat to update. h have one html page and one view
in this view i wnat to check if the pk is ralted to table 1 then it will show the table 1 form with instance of the itme to update it , but if the pk was related to table 2 it will show the table 2 form with the instance of the item to update it
thank you very much
Vidya
.
SMAIL
IS THERE AN EXAMPLE OF DOING Bootstrap Tree View with Django?
Anonymous
why my django project doesn't recognise my template
Viachaslau
ibraheem
hi i create forums app i have page for forums and page for posts in the page posts i create section to create post but whin i clec in the forum and open posts page i have thes problim:
IntegrityError at / forumsforums / 1
NOT NULL constraint failed : forums_forums_posts.post_name
my files:
https://linkode.org/#UKjplL2iejyB60dojqV8C4
Doragonsureiyā
Rahul Yadav
Hi anyone knows how to download file in django
Rahul Yadav
My file uploads thig workings fine.but file download is not working
Rahul Yadav
What code should I write for that
Rahul Yadav
May anyone send some sample
Rahul Yadav
?
Doragonsureiyā
Rahul Yadav
Is there any working example of download file in django?
Daler
bro use google
Erfán.R
yo guys look at this error:
get() returned more than one UserRole -- it returned 3!
Erfán.R
class ListFirmPos(RetrieveUpdateDestroyAPIView):
serializer_class = FirmPositionListSerializer(many=True)
queryset = UserRole.objects.all()
lookup_field = 'firm_uid'
http_method_names = ['get']
def get_queryset(self):
return self.queryset.filter(firm_uid=self.kwargs['firm_uid'])
Erfán.R
why i can get multi data?
Daler
Erfán.R
yeap thats what i need
Daler
Erfán.R
Daler
Bro why do u want list view but inherit ur view from RetrieveUpdateDestroyAPIView.
U should read docs carefully
Erfán.R
Главный
Good hour! Is there a ready-made solution with tables, planning?
Maxim
Главный
Maxim