tX4326
Thank you
Ted
Hi so I want to add users to a group but I can't save the users because I get this error 'FIELD ID EXPECTED A NUMBER BUT GOT A ()'
Kiarash
🤚 hi Which course is best for django ? From youtube, udemy
John
How do we add and display a foreign key or one to one variable in the serializer fields of a related model ??
John
Can anyone help me with this
Anonymous
How do we add and display a foreign key or one to one variable in the serializer fields of a related model ??
you can use custom method for showing related choice but for save it there is 2 ways, use custom save method or use PrimaryKeyRelatedfield(queryset=...)
Dhruv
Anyone who has implemented JWT authentication frontend in react js?
Anonymous
Anyone who has implemented JWT authentication frontend in react js?
I do that but not really with react I use next js and next auth
Jaime
Hello Sirs. As I do something similar to what the Django admin has. The activity log. You know that that shows that user changed or added data in the table. In a list ... But I want to put it in a separate template.
LIBIN
How can i make the knox token auth to be authenticated.
Jaime
Do you know how I could achieve that ..?
Anonymous
Hello everyone, so i'm using gitbash for windows, and i need to transfer all my data from the db.sqlite file to postgresql file.. how do i go about that?
Arcanes
hi, please help, how django connect to my postgres database if i just drop this db
Daniyal4Real
Can't get you clear
I wanted to add migration, but have trouble with installed apps, it gives an error
Arcanes
my django project connect to db which deleted
k9
I wanted to add migration, but have trouble with installed apps, it gives an error
First before migrating ensure you have created the app and added them to settings. Py Creating app is Python manage. Py startapp appname Then add this appname in the setting. Py file inside the Installed Apps like this 'appname',
Daniyal4Real
How can I send an image?
Poojitha
Can anyone tell me how to draw pie charts based on data from codeforces api..pls
Poojitha
For ex: https://cfviz.netlify.app/ .... i want to do in django can anyone pls help
Lone
request.user is always anonymous how to solve this error
William
request.user is always anonymous how to solve this error
I think if you don't log in you will get that error.
William
Search in google. Somebody has explained in StackOverflow.
Tom
request.user is always anonymous how to solve this error
Maybe it is helpful if you would provide a bit more information…
William
is_anonymous https://docs.djangoproject.com/en/3.2/ref/contrib/auth/#django.contrib.auth.models.User.is_anonymous
Conditional elector of HRE
Hello everyone! How can I add records to the table in forms.py that the user entered? There is already a script for receiving data from the form. Here is the forms.py code - https://dpaste.com/FA4CUHTET, here is the views.py code - https : //dpaste.com/33UADKB8E, here is the models.py code - https://dpaste.com/AEWRBEVL4, here is the registration.html code - https://dpaste.com/7E488LXGX and here is the test.html code - https://dpaste.com/GLWEBVSH3
Zey
I have deployed my django website on heroku and when I add any product on website it's image is showing but after sometime it's image stops loading
Sanjay Krishnan
Heroku free version deletes media files after sometime
Zey
Heroku free version deletes media files after sometime
That's why I am using whitenose but I think when I am uploading image it is stored in heroku media that's why it's getting deleted
Zey
use s3 buckets instead of
Thanks.I will do that
Владислав
Guys, I ran into trouble. When you update a post, the author is updated in its fomset for the already added formsets. Can I somehow fix it so that the author does not change in the saved subforms, but is only added for a new one? https://pastebin.com/3Ygenh54
Michael ✨
Has anyone implemented Oxxo pay?
Doragonsureiyā
Has anyone implemented Oxxo pay?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Diya
Does anyone have gfg dsa self paced course?
Diya
Please share with me on DM
Ak
Can anyone tell me how to get screen size using django
Subhransu
Can anyone tell me how to get screen size using django
You need to use javascript first.. Then Value you can pass inside django view
Jaime
Hello Sirs. As I do something similar to what the Django admin has. The activity log. You know that that shows that user changed or added data in the table. In a list ... But I want to put it in a separate template.
Dev
Django how to Adminpannel customisation send code
Dev
With login page
Petr
Heroku free version deletes media files after sometime
I'm using 3rd party API to store my media file uploaded from my website hosted on heroku which is Cloudinary
Petr
Though it's not easy to setup but its what one can archive
Petr
Media sharing is not allowed in the group so if you need steps to do is DM now
Damodara
Hi Team, post_1= Post(title='title' content='content') note: title and content are fields in model. after using this line of the code I'm getting syntax error could please tell what is the error here
Anonymous
Hello Sirs. As I do something similar to what the Django admin has. The activity log. You know that that shows that user changed or added data in the table. In a list ... But I want to put it in a separate template.
Django stores these logs in default database. If you want to access them you can do it as a normal model and show it as you want. But if you want to exactly customize 'admin panel' you can use some packages (you will find some of theme in github like django-jazzmin, django-material-admin, jet admin, etc.) or you can do it yourself by overwriting admin panel's templates but it will be a bit harder.
Anonymous
Ya got it bro thanks
You're welcome
Random
Anyone FastApi
Random
Using ?
hehe
Resource recommendations to learn django?
.
HI..Does Django's CSRF token get updated during the course of a browsing session?
.
HI..Does Django's CSRF token get updated during the course of a browsing session?
What if i set a csrf token on successful login and use that token for all the post requests.
.
What if i set a csrf token on successful login and use that token for all the post requests.
I am usingn drf with token authentication and want to have django's csrf protection.
Groot
Hllw Need help I am trying to make a mock test application in django But i don't know much about django I created model for questions and choices of many categories Now how can i fetch questions from db one by one according to the category i choosed ?
Groot
Use filter()
Any reference ?
Groot
I am totally noob on django
Groot
Also how can i match the user selected option with correct option
William
!tut
Doragonsureiyā
Here there is the official Python tutorial, to help you learn Python step by step: https://docs.python.org/3/tutorial/index.html
William
Also how can i match the user selected option with correct option
Goto Django documentation website and search filter. Otherwise, go to youtube and search
Владислав
Good morning or afternoon everyone. How do I update the time of the main object that my attachment is attached to? I want the post itself to be updated when adding attachment. class AttachmentFileCreateView(GroupRequiredMixin, SuccessMessageMixin, CreateView): model = Attachment template_name = 'modules/files/attachment_create.html' form_class = AttachmentForm success_message = "Файл для поста успешно добавлен!" group_required = ['Администратор', 'Редактор'] # Валидность формы def form_valid(self, form): form.instance.created_by = self.request.user form.instance.file_id = self.kwargs['pk'] print(form.cleaned_data) return super().form_valid(form)
Anonymous
Hello Dear Mate : I have face a problem in Django project, Django runserver hangs at "system check identified no issues (0 silenced)"
Eilia
How can I check my database server?
Which database do you use ? and what is your operation system?