Kishor
How to store token in session and want to verify with otp
Kishor
help please
tushar
Toshar, 15:33 class Attendance_View(ListView): model = Employee_attendance_Model template_name = 'test.html' context_object_name = 'attendance' class Dataview(View): def get(self, request):dataid1 = request.GET.get('dataid', None) startdate = request.GET.get('date', None) endate=request.GET.get('date', None) return Employee_attendance_Model.objects.filter(start_date__range=(date,date1),user_id = dataid1) Toshar, 15:34 i want to this filter data only test.html page how
Rishav
i'm getting an error that says template does not exist. Please dm if someone is willing tohelp
Jaya
hey anyone have any idea how to check the user status online / offline in group chat?
Doragonsureiyā
hey anyone have any idea how to check the user status online / offline in group chat?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Jeremias
do not use Python 2.7 it is severely outdated and no longer supported
I know but I can't for now. This is the next step but first i need to make it work. Thanks for the answer.
Mirco
it is related to django
u r using channels ?
Jaya
yes
Jeremias
good luck then, u r using everything that's deprecated
I know but I repeat, we use couchdb for database and the driver is abandoned, that is the reason .
Jeremias
The team leader want to keep the database so I don't know what we do.
Shubham
Guys pls tell me about Django ORM how ORM works.and any channels for same
Shubham
How Django ORM explain i need arjunt help pls help me guys
Shubham
And also i want learn flask also
Jeremias
Guys pls tell me about Django ORM how ORM works.and any channels for same
ORM make your database like a Class from objects and represent the tables like classes. So you can access to the data using a dot. Person1.name Car.wheels Book.author.
Jeremias
So if you need to make a SELECT * FROM CAR just make Car.objects.all()
Shubham
So what is difference between MYSQL & ORM query
Shubham
Any channel for beginner guys for Creation of API,ORM & Flask
Doragonsureiyā
Any channel for beginner guys for Creation of API,ORM & Flask
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.
Shubham
OK sorry for that
Shubham
From next time i will not ask this type of questions
Maxim
From next time i will not ask this type of questions
you are free to ask them at @pythonofftopic
Anonymous
Hii I'm saurabh Any idea about gambling or betting websites develop... How to start with django How to get apis Please anyone Help me....
Doragonsureiyā
Hii I'm saurabh Any idea about gambling or betting websites develop... How to start with django How to get apis Please anyone Help me....
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Maxim
From next time i will not ask this type of questions
just don't ask the same questions here and there at the same time
Mirco
what's your goal ?
Jeremias
change team or company
Yeah, sure I'm process but I live in Argentina and is hard to find a good job. In fact, it's the last django project, now they make all on javascript, and this is the first reason.
Mirco
the problem is not Django, the problem was the bad choice of db engine if the framework to be used was Django
Jeremias
Sure but every devs that make this project isn't here :-(
Jeremias
Always bro. I make that I can.
SriSreedhar
what's your goal ?
I've a form, everytime it's filled up/edited I want certain group of people notify about it via slack.
Guru
Can anyone suggest making a crm in django is worth?
Manthan
What is more option in django other than web application?
Guru
Can anyone suggest making a crm in django is worth? will we get all relevant APIs?
Anonymous
Good morning
Anonymous
How can i use telegram bot to to authenticate user to a site..any article please
Abbas
Hi. I have a problem, please help me. I have a question about Django rest framework. So I have a User model and Posts model. And i used HyperlinkedRelatedField in UserSerializer. But when I run it there is a problem. (İ'm so sory my bad english)
Abbas
I m using ListApiView. In ApiView we add in serializer_class field context={'request': request}. But ListApiView i can not add context={'request': request}
William
I m using ListApiView. In ApiView we add in serializer_class field context={'request': request}. But ListApiView i can not add context={'request': request}
In generics API by default requests will be available in the context. You can retrieve it by using self.context['request']. If you want to add some more context then you need to customize the get_serializer_context()
SriSreedhar
So on model save you have to publish a message on SNS Nothing special
That seems easy, any reference code you have to get an idea ?
SriSreedhar
Has anyone worked with django + dynamodb ? How was the experience?
Iskyverse
Can I deploy django project in production?
Iskyverse
I have encountered error in media files that is not working in deployment.
Mirco
That seems easy, any reference code you have to get an idea ?
nothing special, just use boto3 ( so use AWS documentation ) and override the save of the model
Mirco
I have encountered error in media files that is not working in deployment.
read Deployment topic on official documentation Especially deployment of Statics and Media
Iskyverse
No it's not working have tried that
Iskyverse
Can I deploy django project in production? I have encountered error in media files that is not working in deployment. Mean when I uploaded from admin panel, it has been stored in specified path, when it comes to on displaying that file on frontend it's not working.
Mirco
No it's not working have tried that
It's not working because you did not get the issue and not studied enough how it works when deploying a Django project But the documentation is clear enough on the topic and internet is full of tutorials
Ravi
Any good references for RBAC - role based auth implementation in Django for a B2B SaaS model : Variety of access level: Users, Teams, APIs etc
Azamat
Hi, is there chat about django channels?
Артем
How made widgets in admin dashboard with metriks and sentry issues?
k
does anyone know how to use graphql subscriptions
Mirco
does anyone know how to use graphql subscriptions
It depends on the library u are using
k
im using graphql-ws library
k
the subscriptions run and the example works fine. But if i say include a a query object and if i update the db, there is no publish that occurs
Mirco
im using graphql-ws library
Much better to use something more supported like Graphene or Strawberry They play so nice with Django
Breeze
can someone help me with this problem pls
k
Much better to use something more supported like Graphene or Strawberry They play so nice with Django
it's made by the guys who made graphene. Bascially, on create, i need to get an update on graphiql, but i dont.
k
you user table has no filed/column called phone number
Breeze
i just created a user registration form
Mirco
i just created a user registration form
Without customising the User model, you cannot add custom attributes
Mirco
oh!
There is an entire topic on official docs , just read it
Breeze
Better to share code via pastebin or similar
pls how do i share via paste bin?