Богдан
Or you can do it in middleware but it is harder
Богдан
You trying to count page visitors right?
Богдан
The easiest way - create table with all your pages names and number of times they were displayed. Count them each request for the page.
R.U.S.H.A.B.H
https://pastebin.com/CDLc3vvH
Can anybody say how to pass another filter other than id ... ?
The mint of Linux **
R.U.S.H.A.B.H
Anyone know how to remove error of modelchoicefield
R.U.S.H.A.B.H
?
ps
ps
Use this query set in shell and then check
R.U.S.H.A.B.H
R.U.S.H.A.B.H
ps
Show the models.py
ps
Have u saved any coursname Imscit?
R.U.S.H.A.B.H
HA
Is anyone here planning to do GSoC?
Mr.Karan
What is jinja and how to install pycharm
Mr.Karan
And how to use....please help me....
Pawan
Anyone want python complete course ( video ) it includes core python + advance + Django + API ...... Cost will be 2k ...... interested person can msg me
Mirco
https://devblogs.microsoft.com/python/announcing-playwright-for-python-reliable-end-to-end-testing-for-the-web/
So interesting and integration with Django is already working
Anonymous
I have created a customerUser model and mapped it using one to one field to 2 other models.
Now how many serializer classes I need to make?
Mirco
Anonymous
I am trying to implement a doctor patient relation
As there cannot be 2 users registered in AUTH_USER_MODEL
So I have created a customerUser and user one-to-one field in doctor and patient models
Now I' need to create serializer classes in order to send it over api
Anonymous
Should I create 3 serializer classes for CustomUser, Doctor, Pateint
Or just 2 for Doctor, Pateint
Anonymous
?
Mirco
Anonymous
Okay, Thanks
Mirco
Anonymous
Hello sir iam getting connection error while iam trying to integrate razorpay payment gateway
Anonymous
I need help please
Anonymous
Any one help to integrate razorpay payment method
Mirco
Anonymous
ConnectionError at /
HTTPSConnectionPool(host='api.razorpay.com', port=443): Max retries exceeded with url: /v1/orders (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001A68FF36E10>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
Anonymous
Or else are u able to connect me in my teamviewer/anydesk?!
The mint of Linux **
any hactoberfest guys????
Mahesh
In my project urls.py
path('bcs/',include('app.urls'))
Mahesh
Then how can i display images to html page
Mahesh
Mahesh
Suppose
{% if image %}
<img src="{{image.url}}">
{% endif %}
Mahesh
But there is error 404 image not found error
Mahesh
I also done settings.py with media
Mahesh
Help !!
The mint of Linux **
give space in image.url but it should not return 404
KA
hello!
Can't figure out how to serialize [123,321] via DRF serializer.
I have a simple one:
class TrackByPidsSerializer(serializers.Serializer):
pid = serializers.IntegerField()
but when I try to validate data, it gets me an error:
ser = TrackByPidsSerializer(data=[321, 312], many=True)
ser.is_valid()
False
ser.errors
[{'non_field_errors': [ErrorDetail(string='Invalid data. Expected a dictionary, but got int.', code='invalid')]}, {'non_field_errors': [ErrorDetail(string='Invalid data. Expected a dictionary, but got int.', code='invalid')]}]
Why it expect the dict? How can I validate simple list of int?
The mint of Linux **
listen at first only use image.url if it is rerturning the url then use image tag
The mint of Linux **
show me views.py
Anonymous
Guys Is it python programming language slow? I create I website and run it localy it was good but now I have to use external hosting I am worry about speed!
Anonymous
have i change it to node. js
Mirco
Anonymous
The mint of Linux **
The mint of Linux **
but u won't be albe to see is
The mint of Linux **
*it
Sh
Assalamu alaikum. Who has experience on million requests per second?
I thinking about how to handle this kind of requests prevent breaking the server/slow connection
The mint of Linux **
depends on the hosting and the hosting servise provider
Anonymous
i want to delete a user when he click on delete which function i write in views please help me
Jun
Hi guys !!! Hope you're all fine, Actually I want to build a video chat webapp so for that what Django concepts do I need. I already build an e-commerce and a blog website by myself.
Anonymous
but u won't be albe to see is
Look I am in the first sprint I am able to change the backend with node. js If django is slow. the client will bot be satisfied then I will loss my job
Anonymous
I just wanna I ask u you are expert guys Is it slow I used flutter for the front end
Anonymous
The mint of Linux **
django is never slow . it's fast enough
Anonymous
The mint of Linux **
Jun
zuzuzuzu
Does all payment require a merchant account
zuzuzuzu
?
zuzuzuzu
Looking a easy way to set up payment gateway
Pankaj
Hey Anyone tell me about git and GitHub
Nikhil
Who advanced in django please pm me i need help....
Mirco
Anonymous
hey, i got my message deleted when I try to paste linkode link, how do I do that? :(
Fabio
Hi guys, how can I do that (https://d.pr/i/VM5Xrp) on Django? create a mock dictionary to test some component. Thanks
Fabio
My code
{% include "multi_upload/edit_handlers/tree_select.html" with folders=[{"id": "1", "title": "title 1"}, {"id": "2", "title": "title 2"}] %}
Yoi
How to make a custom decorator ???
Mirco
Doragonsureiyā
How to make a custom decorator ???
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results