Vaibhavi Bandi
Doragonsureiyā
I am new to django from where should I start
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Vaibhavi Bandi
Okay
Anonymous
Anyone knows jQuery ( Ajax )
Doragonsureiyā
Anyone knows jQuery ( Ajax )
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Anonymous
I need help with django Ajax
Doragonsureiyā
I need help with django Ajax
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Rajni
How to search if a table has foreign key?
Khumoyun
Hi there, What to do to give the user multiple roles in Django, I only saw one. But the user must be able to play the role of another user at the same time. I need a simple example of this, or at least a line For example: userA: reads only and redirects to the page created for userA ✅ userB: only writes and redirects to the page created for userB ✅ userC: also performs userA, userB, and other calculations sorry for my english☺️
Khumoyun
Thank you!👍
محمد دلشاد
Thank you!👍
https://django-role-permissions.readthedocs.io/en/stable/ check out this blog or help
Sumit
Hi Anyone has worked with django_plotly_dash?
Doragonsureiyā
Hi Anyone has worked with django_plotly_dash?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Ruby
Hey anybody know how to make price calculator for website?
Ruby
Using html css and js
Ruby
If anu body know plz respond this query
Sumit
I want to upload file of six larger than 1GB through dcc.upload but not able to do because of it's limit, although dash.upload can do this but using this with dash is given on the docs but not with django dash, I want to apply similar approach but get error as djangodash has no config parameter
Anonymous
hey can anybody plz tell me how to use firebase api for CRUD operation
Near
How to link flutter with flutter api ?!
Anonymous
guys I need a book with exercises in django. Do you whare can I find?
Manuel
ValueError: You have multiple authentication backends configured and therefore must provide the backend argument or set the backend attribute on the user.
Manuel
I'm having this authenticating with ldap
Manuel
please I need help
Manuel
AUTH_LDAP_SERVER_URI = "ldap://localhost:389" AUTH_LDAP_BIND_DN = "cn=dasr,dc=ssas,dc=rimas,dc=csau" AUTH_LDAP_BIND_PASSWORD = "sa" AUTH_LDAP_USER_SEARCH = LDAPSearch( "o=domains,dc=ss,dc=rimed,dc=cu", ldap.SCOPE_SUBTREE, "(uid=%(user)s)" ) AUTH_LDAP_USER_ATTR_MAP = { "first_name": "givenName", "last_name": "sn", "email":"mail" } AUTHENTICATION_BACKENDS = ( "django_auth_ldap.backend.LDAPBackend", "django.contrib.auth.backends.ModelBackend", )
Manuel
somebody help me
Manuel
anyone can help me please
Manuel
but how
Ghorz
Read the error
Ghorz
AUTHENTICATION_BACKENDS = ( "django_auth_ldap.backend.LDAPBackend", "django.contrib.auth.backends.ModelBackend", )
Ghorz
Choose one
Manuel
yeah but when I put django_auth_ldap.backend.LDAPBackend gives me this error
Manuel
yeah ok
Manuel
AUTHENTICATION_BACKENDS = ( "django_auth_ldap.backend.LDAPBackend", )
Manuel
I chose this
Manuel
but check this out
Manuel
class LDAPLogin(APIView): """ Class to authenticate a user via LDAP and then creating a login session """ authentication_classes = () def post(self, request): """ Api to login a user :param request: :return: """ user_obj = authenticate(email=request.data['email'], password=request.data['password']) print(user_obj) login(request, user_obj,backend='django_auth_ldap.backend.LDAPBackend') data={'detail': 'User logged in successfully'} return Response(data, status=200)
Manuel
I got this view
Manuel
this class based view
Manuel
and when I print out user_obj gives me none
Manuel
I use email because on my ldap I got multiple domains
Manuel
AttributeError: 'AnonymousUser' object has no attribute '_meta'
Manuel
this is the error I got when I use just one authetication backends
Doragonsureiyā
Using html css and js
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Doragonsureiyā
How to link flutter with flutter api ?!
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Sadra
guys I need a book with exercises in django. Do you whare can I find?
Google for sample projects in Django. Otherwise, you can browse on Github.
DD
guys I need a book with exercises in django. Do you whare can I find?
Django by example. Google it. You will find it easily.
Anonymous
Hi i am using Postgrassql using in our project so could setup schema in our settings.py in database setting please help me which statement I type hare please explain 🙏
Rishikesh
Hi i am using Postgrassql using in our project so could setup schema in our settings.py in database setting please help me which statement I type hare please explain 🙏
Update your dictionary here like this. DATABASES = {     'default': {         'ENGINE': 'django.db.backends.postgresql_psycopg2',         'NAME': ‘<db_name>’,         'USER': '<db_username>',         'PASSWORD': '<password>',         'HOST': '<db_hostname_or_ip>',         'PORT': '<db_port>',     } } Ref: https://www.enterprisedb.com/postgres-tutorials/how-use-postgresql-django#
Anonymous
Okay I will try this
Near
!ot
Flutter to Django api*
Darth✧
Hey .... can anyone help me with AWS EC2?
Darth✧
Django related?
Yes actually I am using using ec2 for my django project
Darth✧
I know this is like a off topic ....please tell me if u can help .we can discuss in private chat
Darth✧
Then just ask your question
Sure ...in your inbox
Darth✧
Okie
Darth✧
For my django app I m using EC2 instance and there is a lot of computation performing in backend ..... The ques is when I am using virtual machine then why my internal hardware is being used when performing computation tasks
Charly
I don' t understand what do you mean with "internalhardware is beign used when performing..."
Darth✧
I don' t understand what do you mean with "internalhardware is beign used when performing..."
My machine ram is being consumed when computation is being performing at backend instead of ec2 resources
Charly
maybe a wrong url?
Charly
and you are sending requests to your local env instead the reight one?
Darth✧
No....I m in local env
Charly
try to stop you local env
Darth✧
and you are sending requests to your local env instead the reight one?
Yeah that is the problm .... I think so but how can I check ?