Areeb
Some errors occur in building wheels for lxml, mysqlclient and psycopg2. Anyone please help me out on urgent basis.
Believe
Charly
Areeb
Maxim
Areeb
Areeb
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
Dnyaneshwar
how to modify admin_volt in our project
Dnyaneshwar
any other themes for admin panel
maneliiii
Максим
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!?
clouded
Qwerty
(≧▽≦)(≧▽≦)
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? 😞
Максим
Pedro
Ibnu
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?
Vldmr
Amir
Hi i'm learning the Django period. Make some video resources
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/
clouded
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
Doragonsureiyā
Bohdan
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!
Mirco
Dnyaneshwar
how to generate pdf using our data created in django admmin
Khaled
Dnyaneshwar
i want to generate for particular field
Dnyaneshwar
particular field data
Dnyaneshwar
is there any source or docs for that
Vishu...
Using Datatabel
Mirco
D🌷
hello everyone
D🌷
POST /home/blog/10/ HTTP/1.1" 405 0 how to fix the error
D🌷
return render(request=request, template_name='index.html', context={'form': form})
D🌷
views.py
D🌷
how to fix it
D🌷
no
Charly
no
Do you know what POST method means?
D🌷
Charly
yeah
So your view doesn't accept that method
Muhammad Rasul
yeah
Your view doesn't allow POST method
D🌷
okey thanks
D🌷
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
Mirco