Amir
because not install pip , in your system
Amir
why?😐
Demsy
so install pip
I can't
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 🖤
Amir
I can't
search in google , it say to you
Muflone
How do I install it?
Django is a Python web framework You first have to learn how to use Python
Ali
How do I install it?
sudo apt install python3-pip in linux
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
Muflone
Pls help me.
You already had a reply, read and proceed
Demsy
I still get the same error
Muflone
Still not working
is your python working?
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
python 3.11.1
Muflone
ok, so pip is working?
Demsy
ok, so pip is working?
Python is working but pip isn't
Demsy
pip is the one bring the error
Doragonsureiyā
Is there any internship opportunity available for student?
This is neither a job board nor a bulletin board.
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?
Данил
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
Muflone
Oh... Any free methods?...
using your existing resources
Данил
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
Targoon
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
put your temolate folder in main directory not in each app, and change the setting, put all your htmls on that template folder, and access them from there. my app have 5 apps and i do like this
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
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 ?
Betsalel
Please can you explain to me how to implement it ?
Maxim
Please can you explain to me how to implement it ?
what's wrong with the documentation?
Doragonsureiyā
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Targoon
highly discouraged and no reasons to do that different applications could have clashing files
it may, but his problem is something else. he may not have too htmls. and he can rename them in the case off that. or after the problem occures think about the solution
Zokirshoh
Does anyone know where I can get free templates for django project
Muflone
Does anyone know where I can get free templates for django project
you can use any html template and add your tags into it to transform in a django template
Muflone
i mean ready-made templates on web
use any search engine, there are millions of them available everywhere
Zokirshoh
I couldn't find a better one, can you share one?
Muflone
I couldn't find a better one, can you share one?
no, if you just search you'll find them
Amir
how to repair this error : ValueError at /first blog/ Field 'id' expected a number but got 'first blog'.
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
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.
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."}}
Vipul
I have django API's ready and my Mobile App UI in react native is ready How Do I integrate it?