Areeb
Some errors occur in building wheels for lxml, mysqlclient and psycopg2. Anyone please help me out on urgent basis.
Areeb
If you dont share the errors is impossible to help
Oh sorry, I felt it was enough to understand
Charly
Oh sorry, I felt it was enough to understand
Have you even been with a doctor? You just say: "I'm felling bad" and he is able to understand your illness?
Areeb
some corrective actions are required
I need to install C++ Build tool
Areeb
To resolve it ig
Ezekiel
I have a django ecommerce project with multiple apps within it like product app, orders app and cart app...Can anyone assist me with a guide which would help me be able to deploy my project in digital ocean step by step (guide)
Charly
I have a django ecommerce project with multiple apps within it like product app, orders app and cart app...Can anyone assist me with a guide which would help me be able to deploy my project in digital ocean step by step (guide)
A simple google search show results even from the digital ocean blog that can help you: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu
Dnyaneshwar
how to modify admin_volt in our project
Dnyaneshwar
any other themes for admin panel
maneliiii
Or rather, what it has to do with Django then?
just testing the models😭😭
Charly
just testing the models😭😭
But your question is if you can use another tool not really a django question
Максим
Hi! I use celery. My code: https://pastebin.com/QZm61j28 Problem: error in line... "send_to_admin" has 6 positional args, (but need 1). All ok, if I remove my retry_request decorator. Without celery my decorator works fine. WHY!?
Максим
Always share the full error message.
Sorry. https://pastebin.com/CgNVGS03
(≧▽≦)(≧▽≦)
def list(self, request, *args, **kwargs): queryset = self.get_queryset() queryset = self.filter_queryset(queryset) queryset = queryset.annotate(courses_count=Count('category_courses')) print("////////////////////") print(queryset[0].courses_count) serializer = self.get_serializer(queryset, many=True, context={'request': self.request}) queryset = self.paginate_queryset(queryset) if queryset is not None: return self.get_paginated_response(serializer.data) return Response(serializer.data, status=status.HTTP_200_OK) does anyone know why "courses_count" not showing in my queryset
Mohsen
Why reassigned user before returned? class CustomRegisterSerializer(RegisterSerializer):     username = None     first_name = serializers.CharField(required=True)     last_name = serializers.CharField(required=True)     email = serializers.EmailField(required=True)     password1 = serializers.CharField(write_only=True)     password2 = serializers.CharField(write_only=True)     def get_cleaned_data(self):         super().get_cleaned_data()         return {             "email": self.validated_data.get("email", ""),             "first_name": self.validated_data.get("first_name", ""),             "last_name": self.validated_data.get("last_name", ""),             "password1": self.validated_data.get("password1", ""),         }     def save(self, request):         adapter = get_adapter()         user = adapter.new_user(request)         self.cleaned_data = self.get_cleaned_data()         user = adapter.save_user(request, user, self)         user.save()                 setup_user_email(request,user,[])         user.email = self.cleaned_data.get("email")         user.password = self.cleaned_data.get("password1")         user.first_name = self.cleaned_data.get("first_name")         user.last_name = self.cleaned_data.get("last_name")          return user        
ke.vin
Anyone who have deployed a Django project before and is willing to help me deploy mine ? 🤚
ke.vin
Render
ㅤㅤㅤㅤㅤ
Render
I'm good at heroku, inquire more or try documentation and tutorials
ke.vin
Can we try on heroku ?
ㅤㅤㅤㅤㅤ
Can we try on heroku ?
Yes , it's the best I can recommend, provided it's free tire is good to exploit
Unknown
same idea here
ㅤㅤㅤㅤㅤ
Never tried , only python anywhere and Heroku, maybe I will try something new with coming projects
Ibnu
Hello, I Was learning Django deployment, any free way of doing that.. with no payment method requirements? 😞
Ibnu
Vercel
Thanks
Samuel
How to display the amount of the file uploaded to the host in the admin panel when uploading the file? Is there a framework for this?
Unknown
In my opinion, you have to code manually.
summit
Hello! Is possible to deploy django + celery in a dockerfile to google cloud run?
Amir
Hi i'm learning the Django period. Make some video resources
Charly
Hi i'm learning the Django period. Make some video resources
Just go to YouTube. Here we recommend more the written material
Amir
Will the book be introduced
Doragonsureiyā
Will the book be introduced
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Amir
Thank alot
ȺʍìɾⱮօհąʍʍąժ
https://ide.goorm.io/
Bohdan
Hi, when running Django application using gunicorn with 4 wokers and 8 threads (gthread workers are used), when the application does not process any requests, it still consumes ~20% CPU, reducing the number of workers we noticed that each additional workers consumes ~5% CPU in idle state, i.e. without requests to the server at all, has anyone encountered this or not? And how can we properly watch what gives such a result? We also ran a regular flask through gunicorn without a DB without anything with 8 workers to see if it's a problem in gunicorn itself, CPU consumption is minimal (~1% in idle state), so no idea why it's like this.
Surya
Hey hii guys I need help with my final year project which was built using Django can anyone help me please
Parsa
How can i leaen postgress for Django and you explain me a book or some..
ManDo
Hi. I have a database mongodb with available table 'sample'. Now I create a new django project and connect to this database. But how can I query all data from the table 'sample'? Thank you so much!
ManDo
if you don't have this project already live, avoid using mongo with Django
yes. I know, but the database was chosen and it was created in another project
Mirco
yes. I know, but the database was chosen and it was created in another project
Btw if the second project won't connect to the same db, deploy APIs and you can share data between 2 projects
Dnyaneshwar
how to generate pdf using our data created in django admmin
Dnyaneshwar
i want to generate for particular field
Dnyaneshwar
particular field data
Mirco
i want to generate for particular field
You can do it with that package and writing custom export resource
Dnyaneshwar
is there any source or docs for that
Vishu...
Using Datatabel
D🌷
hello everyone
D🌷
POST /home/blog/10/ HTTP/1.1" 405 0 how to fix the error
~𝙰𝚋𝚍𝚞𝚛𝚊𝚡𝚖𝚘𝚗
POST /home/blog/10/ HTTP/1.1" 405 0 how to fix the error
send your code then you can get a quick answer to your question )))
D🌷
return render(request=request, template_name='index.html', context={'form': form})
D🌷
views.py
Charly
POST /home/blog/10/ HTTP/1.1" 405 0 how to fix the error
405 means method not allowed, your view does not accept POST method
D🌷
how to fix it
Charly
how to fix it
Do you understand what I said?
D🌷
no
Charly
no
Do you know what POST method means?
Charly
yeah
So your view doesn't accept that method
Muhammad Rasul
yeah
Your view doesn't allow POST method
D🌷
okey thanks
Muhammad Rasul
okey thanks
Look at your profile. I will try to fix it ok
D🌷
ok
MP
Can someone suggest best course to learn django rest framework