Anonymous
from django.test import Client client = Client() response = client.get('/')
Anonymous
hi AUTH_USER_MODEL waht does this do?
Mirco
hi AUTH_USER_MODEL waht does this do?
Did u read the documentation about it ?
Anonymous
U are not entering that codes to url.py?
Hari Krishna: There are four paths in url Which one's brackets to be removed
Anonymous
Did u read the documentation about it ?
no it's used in pdf file(toturial)
Mirco
no it's used in pdf file(toturial)
Go into django official docs and look for it
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?
Bradypodion
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?
For ‘post data’ you mean make a POST request? If yes, your question does not have sense until you don’t give more infos
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
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
So you just need to take the object inside the response of your GET and make a POST request to your API with it
Anonymous
hello all i am new here
cj
hello all i am new here
read this: https://t.me/django/43365
Anonymous
@@c0x6A can i send you a prvt msg ?
Rahul
Is django channels suitable for chat application
Rahul
Yes
What you will prefer for chat application channel or something else..
Mirco
What you will prefer for chat application channel or something else..
It depends on requirements and to what I wanna build
Rahul
It depends on requirements and to what I wanna build
To send private messages one person to another like fb does
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
anyone here know how to run python /opencv from vue with django DRF backend
use celery to create a separate process that run your opencv
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?
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
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ā
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)
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Nitish
message me personally i will tell you
Nitish
you just have to follow two steps to connect mongoDB with django
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
Ajay
How to create custome USER model is use for AUTHONTCATE
Create model for it. And use it to create your new authentication method to authenticate user.
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
How can we start two different server with different ports in single same Django project?
in my knowledges, i think it isn't good path... change the planning for me
Gil
using the attribute which is used as primary key
https://docs.djangoproject.com/en/3.0/ref/models/querysets/ and https://docs.djangoproject.com/en/3.0/topics/db/queries/ Nothing better ;)
Ajay
in my knowledges, i think it isn't good path... change the planning for me
So how can we solve different panels server with common models of project
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?
Jimmies San
How can we start two different server with different ports in single same Django project?
Using a parameter if in Dev or a wsgi server with different port in configuration with nginx in front to reverse proxy the domains
Ajay
Using a parameter if in Dev or a wsgi server with different port in configuration with nginx in front to reverse proxy the domains
No you don't get my point i want two live server in same Django project. I want to use Django apps for different panels and i want to separate with different servers
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
Anonymous
can i use python in my fingerprint authentication project Pls help
If anyone having resources Let me know Any python libraries....etc
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
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.