Ali
Demsy
Amir
Amir
because not install pip , in your system
Amir
why?😐
Demsy
Doragonsureiyā
why?😐
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
Amir
ok 🖤
Demsy
Muflone
How do I install it?
Django is a Python web framework
You first have to learn how to use Python
Muflone
Start by uninstalling previous python installations (any) and install python 3.11 again
Then get pip
Then after install Django
Jimmies San
Or use pyenv to manage multiple versions of python
Muflone
He's sending me screenshots, he has a broken python installation which raises windows errors on each command
Demsy
Muflone
Pls help me.
You already had a reply, read and proceed
Demsy
Demsy
I still get the same error
Careful
Hello, I have a django application and I would like to add a dash app to it. I want best way to read data directly from database as pandas dataframe
Akash
Is there any internship opportunity available for student?
Demsy
Demsy
python 3.11.1
Muflone
ok, so pip is working?
Demsy
pip is the one bring the error
Doragonsureiyā
Muflone
Данил
Guys, how to serve media files in django production enviroment? Do I need to use cloud storages, or i can create directory on my VPS server?
Muflone
Данил
It my first time to deployment Django project, so I dont know, what will be the best practice.
Only I know, that I need to storage about 2000-3500 product images.
Muflone
using a CDN would be the more efficient way, of course it will cost money
Jimmies San
Muflone
Данил
Данил
resources of my VPS?
Muflone
whatever you have
Fernando
Hello everyone,
I have two apps inside Django project and I need to use the template of one app to another.
I'm using {% include 'app1_template.html' %}. All html and css are rendering like expected, but my variables that I call inside de app1_template are not coming.
What I'm doing wrong?
Ps: my template settings are ok.
Anonymous
I can complete it.
Anonymous
I think the context is wrong.
Fernando
I have two templates app1.html and app2.html app2 is render properly when is called alone. All context is working. But when I'm passing app2 inside app1 using {% include 'app2.html' %} the context of app2 is not showing in app1.html
Ali
Muflone
Targoon
Targoon
in the case you donno what im saying go to youtube search for telusko channel, django toturial and the video of template settings
Fernando
Fernando
Thanks for all answers guys
Targoon
Fernando
When I've finished I'll let you know
Betsalel
Hi everyone . Please anyone used django-notifications-hq here ?
Doragonsureiyā
Betsalel
Please can you explain to me how to implement it ?
Muflone
Maxim
Doragonsureiyā
Read this please:
http://catb.org/~esr/faqs/smart-questions.html#intro
Muflone
Zokirshoh
Does anyone know where I can get free templates for django project
Zokirshoh
Zokirshoh
I couldn't find a better one, can you share one?
Muflone
Zokirshoh
Amir
how to repair this error : ValueError at /first blog/
Field 'id' expected a number but got 'first blog'.
Muflone
Eternity
Amir
Id must be equal to number. Obviously
'<int:pk>/',BlogDetailView.as_view(),name='blog_detail' this is my url but receive this error Field 'id' expected a number but got 'first blog'.
Muflone
I doubt 'first blog' is a valid integer number
Eternity
Dhurke Sahdmadhi
I filter objects from a model and store the queryset in a variable, then later perform get operations on the queryset for different criteria. Will the original queryset be recreated for each operation later performed on it? I'm asking this because I've read queryset operations are lazy. Meaning it is generated only when using it.
Anonymous
Rohan
Rohan
Cuz that is correct. Your qs would not be evaluated and no call to database is done unless you try to do an operation which requires to return data
KD
class UserChangePasswordView(APIView):
authentication_classes = [SessionAuthentication, BasicAuthentication,TokenAuthentication,TokenAuthentication]
renderer_classes = [UserRenderers]
permission_classes = [IsAuthenticated]
status = status.HTTP_400_BAD_REQUEST)
def post(self, request, format=None, *args, **kwargs):
print("Request user", request.user)
serializer = UserChangePasswordSerializer(data=request.data, context={'user': request.user})
if serializer.is_valid():
return render(request, 'changepassword.html', context={'success': 'User changed password successfully'}, status=status.HTTP_200_OK)
return render(request, 'changepassword.html', context={'errors': serializer.errors}, status=status.HTTP_400_BAD_REQUEST)
i am getting error {"errors": {"detail": "Authentication credentials were not provided."}}
Charly
class UserChangePasswordView(APIView):
authentication_classes = [SessionAuthentication, BasicAuthentication,TokenAuthentication,TokenAuthentication]
renderer_classes = [UserRenderers]
permission_classes = [IsAuthenticated]
status = status.HTTP_400_BAD_REQUEST)
def post(self, request, format=None, *args, **kwargs):
print("Request user", request.user)
serializer = UserChangePasswordSerializer(data=request.data, context={'user': request.user})
if serializer.is_valid():
return render(request, 'changepassword.html', context={'success': 'User changed password successfully'}, status=status.HTTP_200_OK)
return render(request, 'changepassword.html', context={'errors': serializer.errors}, status=status.HTTP_400_BAD_REQUEST)
i am getting error {"errors": {"detail": "Authentication credentials were not provided."}}
You didin' t send credentials in the frontend
Omid
Vipul
I have django API's ready and my Mobile App UI in react native is ready
How Do I integrate it?