Anonymous
from django.test import Client
client = Client()
response = client.get('/')
Anonymous
hi
AUTH_USER_MODEL
waht does this do?
Xeyyam
Anonymous
Mirco
Doragonsureiyā
ok tnx
You're welcome! 😊
Dhruva
In custom 404 if I want to get image how can I get it ?!
Ali
I'm making a rest Api,
But I want to post data using Google Api, how to post data to my Api using Google api?
Ali
I'm working with Google classroom Api,
And I want to GET data from it and then POST it to my own rest API
@Pumilium
Bradypodion
Anonymous
hello all i am new here
Anonymous
@@c0x6A
can i send you a prvt msg ?
cj
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
Rahul
Is django channels suitable for chat application
Mirco
Rahul
Yes
What you will prefer for chat application channel or something else..
Mirco
Mirco
Rahul
kartik
Yes guys
Actually I'm creating school management system with rest API
And I want to create 3 types of user
One is student
One is teacher and principal
Please help me
Shubham
I was working on similar thing, so I created own user model with these permissions and checked the permission wherever I wanted.
Cris
anyone here know how to run python /opencv from vue with django DRF backend
inchidi
Mario
Hi guys. I have a question.
I know that Django stop serving static files when debug is false.
Why it is insecure to serve static files?
Muflone
Tina 🍉
Hello
Does any one know how properly working with group by in django
I read about anotation but it isn't working corret in my case
I have tabel with next fields - id(PK), state, catalog_id(FK) and I need to get id with group by catalog_id
in mySql I have run next command and got what I need
select id, catalog_id
from state_catalog_model
group by catalog_id
order by catalog_id
but I don't undestand have I can do it via django orm, I was trying
cls.objects.values('catalog_id').annotate(
Count('catalog_id'),
).order_by()
result - <QuerySet [{'catalog_id': 1, 'catalog_id__count': 2}, {'catalog_id': 2, 'catalog_id__count': 1}, ....]
and it's work but without ID. When I add ID to values() data wil grouping by ID instead of catalog_id
thank you
Cris
Dhruva
Anonymous
i try to cache ModelViewSet:
my view is :
class CommentsViewSet(ModelViewSet):
queryset = CommentsModel.objects.all()
serializer_class = CommentsALLSerializer
http_method_names = ['get']
permission_classes = (AllowAny,)
i try this but not work:
@method_decorator(cache_page(60*60))
def dispatch(self, *args, kwargs):
return super().dispatch(*args, kwargs)
how to deal with it ?
ThePresence
Is there any guide for implementing jwt with django and angular..?
Satwik
Hi,
I've experience with the Flask microframework, but I have to work on a Django project. Does anyone have any resource that I could use to quickly make myself familiar with Django (at a high-level at least)
Doragonsureiyā
ggr
I've generated token authentication for django admin but now I want to use for custom token authentication(model class email and password table) after validating and filter the email and password from database.
Bruce Wayne
How to connect Mongo DB with Django ??
🙆♂️
Anonymous
Any one doing real-time project in DJango. I wan to add my resume. Any help plz!
Anonymous
How to Filter QuerySets Dynamically
https://simpleisbetterthancomplex.com/tutorial/2016/11/28/how-to-filter-querysets-dynamically.html
cj
Nitish
message me personally i will tell you
Nitish
you just have to follow two steps to connect mongoDB with django
maroong
Ajay
How can we start two different server with different ports in single same Django project?
Naynesh
How to create custome USER model is use for AUTHONTCATE
Nitish
queryset to fetch data of column using other column or using primary id
Ajay
Id
Nitish
using the attribute which is used as primary key
Gil
Ajay
Ajay
I want to separate panels server
Deven
Can anyone help me out in installing Mysqlclient for virtual environment. I have already installed it globally as well as in env but it shows error when I run requirement.txt file
Damron
Hello!
I am a little confusing about realization of tables for Student and Teacher models. 1st one's got a lot of fields in database, but not Teacher.
So question is: How should I represent this relation in DB lvl?
I'm thinking of 2 ways
1. Create O2O relation between Student`\`Teacher and CustomUser by building 3 tables
2. Create only one table CustomUser with additional choice field with values: (S, T)
Or maybe there's much better approach?
Ajay
I don't use Django admin panel.
I create it my custom i have multiple panels
Ajay
I want two two separate panels in project
Anonymous
can i use python in my fingerprint authentication project
Pls help
Jimmies San
Jimmies San
But I think you can handle it with URL if it's the same project
Jimmies San
So maybe you have to review your idea/architecture
Jimmies San
Or be more explicit about what do you want to accomplish
Anonymous
How to fix.
keyerror access_token
Владислав
Hi there!
Tell me, I think correctly that you need to create APP ex:settings and declare global models in it for the entire application?
🙆♂️
look django.fun
🙆♂️
rus translate
Damron
Anonymous
can i use python in my fingerprint authentication project
Pls help
Anonymous
Its urgent
Gil
Its urgent
Its Django channel, maybe better other channel.
Probably yes, better if fingerprint machine has api.
And for me, backend Django , yes.
Anonymous