Сардор
there is a written uwsgi not found but can be installed then list of uwsgi s
Сардор
how to install there is uwsgi-core & uwsgi-plugin
Сардор
which one should i have to install?
Сардор
@Carlangueitor
Doragonsureiyā
@Carlangueitor
Don't tag people randomly, even if they seem knowledgeable. Most of the time, the person you tagged doesn't even know about the topic you just brought up. If people want to help you, they will - just be patient.
Kennedy
Hello guys, I have two outputs from different querysets that I want to combine. Eg: a = A.objects.filter(q=q) b = B.objects.all() I am using DRF. Any Idea how it can be done
thenils
Hello guys, Is that possible to edit and crop pdf after rendering pdf
Partha
Hello guys, I have two outputs from different querysets that I want to combine. Eg: a = A.objects.filter(q=q) b = B.objects.all() I am using DRF. Any Idea how it can be done
Store the a result set in one dictionary, add b in another dictionary and then you can combine both the dictionary using dict_a.update(dict_b) Yowillthe output you like to get. Happy coding 😘
Bwaks
hey i want to add a class for jquery validation in django ckeditor 'description': forms.CharField(widget=CKEditorWidget(attrs={'class':'description'})), the class description is not working .How to fix this
Anshu
any one have an idea or keyword for monthly subscription in django?
What do you mean by monthly subscription, do you want to create a project for charging user monthly??
Minh
What do you mean by monthly subscription, do you want to create a project for charging user monthly??
yes, i'm trying to create a project with recurring subscription. I am researching the dj-stripe package
Sanjarbek
Friends if I do LANGUAGE_CODE = 'ru' works locally, but no does not work on the server
Anshu
any one have an idea or keyword for monthly subscription in django?
So you want help with setting up stripe payments for the project??
Minh
So you want help with setting up stripe payments for the project??
i already setup a little bit with dj-stripe package for django, when i migrate, there are bunch of data tables of stripe created. So is that necessary to migrate those stripe table?
José
Any resource or link you could provide?
https://dev.to/mungaigikure/set-up-and-load-initial-data-in-django-2gg8
Smash
Hlo brothers
Smash
I dont able to login the user dont know why code is fine
Orion
I dont able to login the user dont know why code is fine
Hello, do you have a custom use model? Have you created a superuser?
Smash
Cant send screenshots here
Smash
Can i pm u
Smash
Superuser is created but i am having problem in login as a user that is registered im creating a blog app
Orion
Can i pm u
Yes you can
Smash
Thanks
Orion
Superuser is created but i am having problem in login as a user that is registered im creating a blog app
The user should be activated, you can use a signal to auto activate a user
:x-re
Hi guys What can i do for run: celery Redis-server Django All run in cpanel linux ?
—-
Good day everyone. I’m working on the basic authentication of a blog app. And I get the MultiValueDictError when I try to get the first name from the html form. Can anyone help me please?
Maxim
Hi guys What can i do for run: celery Redis-server Django All run in cpanel linux ?
use vps if you don't like that answer, search for "cpanel" in the group
Orion
Hi guys What can i do for run: celery Redis-server Django All run in cpanel linux ?
Do you have the root access to the cpanel? If not get a VPS from linode or Digital Ocean or spin up an EC2 instance
Azizbek Xushnazarov
How can I change operationId of endpoints in swagger-ui
Azizbek Xushnazarov
duplicated operationId warnings are happening
Madhav
I am trying to connect my django application with production postgresql db, after deployment getting 502 bad gate way
Doragonsureiyā
I am trying to connect my django application with production postgresql db, after deployment getting 502 bad gate way
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Orion
I am trying to connect my django application with production postgresql db, after deployment getting 502 bad gate way
Need more details, how is your deployment infrastructure? Are you using any CI/CD? Docker? Is the Postgres in the same deployment env as your application !!!
rr
Guys help! I have a authenticated user and I have access to request.user inside my view. Now, I have a ForeignKey to this user and I want to save the pk of this user inside my db. It says not serializble!
rr
How can I associate this user as a parent model and create its relation
Mirco
share the models via pastebin
ꜱᴀᴇᴇᴅ
For example, a teacher wants to take a course. For example, that course has 30 parts. How can he take those 30 parts from him? , In general, it is possible to put a section for each post. Do I have to add more variables for this, or is there another way? 🤔
rr
share the models via pastebin
I'm sending a POST and while creating the resource I wanna now who did this Serializer.save() gives the error It says user_Id cannot be null What is the proper way to use request.user in deserializer
Anonymous
Any one know how to use elastic app search in Django ?
Azizbek Xushnazarov
Should I do validations in Mode.save() or in serializer? which one is the best practice
αмiʀ⁦⁦⁦⁦
Hi I want to install some module for my Django project in cpanel I activate my virtualenv I install the module And i restart it But still say doesn't install What should i do?
Hussein
Does anyone of you have explanation about how to make a custom user model ? I need detailed explanation .
Tanner
Does anyone of you have explanation about how to make a custom user model ? I need detailed explanation .
2 main choices - if you need to just add a few new fields, create custom model inheriting from AbstractUser. If you need multiple, very different accounts/profiles, consider a separate Profile model with a OneToOne relationship with your user model
Ali
Does anyone of you have explanation about how to make a custom user model ? I need detailed explanation .
Nothing too crazy. All you need is a simple inheritance with little bit of configs. If you have read enough about OOP, you don't need to concern about it too much.
Anshu
Then maybe your code is wrong or it is not working, check your forms.py file then
Klaus
how to integrate third party api in django?
Doragonsureiyā
Does anyone of you have explanation about how to make a custom user model ? I need detailed explanation .
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anshu
how to integrate third party api in django?
You can use python package in django as well, so simply use requests package and send the data as context to the template
:x-re
Hi guys For run django I need to celery and redis So how can i do this run in host window
Bobby
djnago settings.py https://dpaste.org/KmQY nginx conf file https://dpaste.org/aZfS python manage.py collectstatic Command collect all file in staticfiles But nginx is not serve that path Is there something wrong in nginx path?
Bobby
Please help
 ‌‌‌‌Hamed
Hi how can I run telegram bot demo on my websit
Doragonsureiyā
Hi how can I run telegram bot demo on my websit
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Erik
How to write def initial in APIView??? Get an error: 'NoneType' object does not support item assignment class InstitutionAPIView(APIView): """ Create new institution """ authentication_classes = [JWTAuthentication] permission_classes = [IsAuthenticated] def initial(self, request, *args, **kwargs): initial = super(InstitutionAPIView, self).initial(request, *args, **kwargs) initial['user'] = self.request.user return initial
Дмитрий
Hello guys. I need add a converter from PNG to WEBP. How to do this?
Dev
Howdy folks, can anyone help me with a regex expression to find the match in a code that was introduced in 3.10
Doragonsureiyā
Howdy folks, can anyone help me with a regex expression to find the match in a code that was introduced in 3.10
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
CryptoHunt
Hello, guys. Can anybody help? I want to rename image but i cant. This func works but image still have its name @ receiver(post_save, sender=UserImages) def rename_image(instance, **kwargs): x = str(instance.photo) x = "great"+ "." + x.split('.')[1] instance.photo = x return instance.photo
Anonymous
Hello my good friends, I hope you have a good day, I had a question, is it possible to design a digital currency with Django Exchange?
Anonymous
Redemption
Hey does anyone know python
Redemption
Good with python ? I need a help . Can someone pls help me .
Redemption
I am new to python. I need to in a piece of code
Maxim
Good with python ? I need a help . Can someone pls help me .
why do you ask here? you're already in @python please read the rules
Mirco
Ok
tq