Someone
Yes ... thanks .. and both apps have authentication .. one app have only one hardcoded credentials for my app to access its resources .. and i have login for users.. if am importing views and configuring url's, can I pass credentials from views?
Someone
We both are using token auth
Someone
I have few more queries 😔
inchidi
inchidi
coz thats means you guys need to share same User which is mean share same db right?
Someone
coz thats means you guys need to share same User which is mean share same db right?
No... we are in a trouble like, we both now should give access to same set of users .. if react is interacting with both apps endpoint then authentication is a problem .. like my app will separate token and another app totally different token for same user .. so we thought of having one hard coded credential for one app and to access its resource from other ..
Someone
Someone
I tried to read a lot on net.. i dint get anything that would help..
Someone
I have another prob also... for my application I am using django-rest-auth.. bcz it seems to be nice one.. we have like 1000 users .. for first login am creating a default login with employee id number..so that on their first login they should reset their password.. but django-rest-auth needs email to reset password.. on our user base many people does not got email.. so prob in resetting password also.. is there any way to resolve this? If not any other app to achieve my requirement?
Someone
Someone
🤔🧐.. if am importing his views and configuring URL's... then my authentication only will be enough right.. bcz its just isauthenticated class, my auth will also work right??...
inchidi
inchidi
Someone
inchidi
We are using JWT only
then the problem only your authentication model which is by default User model
Someone
inchidi
Someone
inchidi
inchidi
Yes sorry change password
change password doesnt need app to send new email right? user just type old password, and new password then password changed?
Someone
Someone
inchidi
inchidi
you're welcome
Anonymous
Are any of you in NYC? I'm looking to have a chat with someone with a strong Django background
Sayan
I was wondering how should I store user preferences in django,
I've made a new accounts app to handle Userprofile, but lets say i also want to add user preferences like `'dark_mode' = true, 'notif_method' = 'email_only' `etc.
Should add these as fields directly in the Userprofile model or make another class for perferences?
Sayan
I'm new to django, so just wanted to know, if what i'm doing is right
inchidi
inchidi
at gender, charfield require max_length btw
Sayan
Sayan
I'm confused as in when to subclass the User model and when to use AbstractUser to extend
inchidi
Sayan
Oh okay thanks
Sayan
I'll then merge preferences, and now i have to learn forms(or is there any other way to do it,because few people say they dont like django forms)
inchidi
inchidi
inchidi
Sayan
Ok i get it now
Sayan
And by anychance do you know whay sqlsquencereset does?
Sayan
I tried to reset my pk's it didn't work :/
inchidi
sorry i never use that
Sayan
Okay
Sayan
Thanks
Sarath
Hey guys. I have a doubt.
Sarath
How to do validations in drf
Sarath
is serializer have ?
Sarath
I am new in python .. and django..pls help
Omer
Does anyone have a good tutorial about deploying a django rest api?
Django Bot
>> Links
- pdb: Using the Python debugger in Django - Minutiæ by Mike Tigas
inchidi
Django Bot
>> Links
- Building a combined stream of recent additions using the Django ORM
inchidi
is serializer have ?
serializer do validation per serializer field type or per model field if its ModelSerializer
Sarath
Could you give me the syntax using model serializer
Sarath
I am using class based view
inchidi
here https://github.com/DimasInchidi/djangoid_kulgram1/blob/master/portofool_io/serializers.py
Sarath
How to call validator from a class based view...
Luis
Django Bot
>> Links
- PauLoX – Full-Text Search in Django with PostgreSQL
Django Bot
>> Links
- Flask vs Django
Anonymous
Do you know how create business models? Maybe give me links.
Anonymous
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
Anonymous
https://pastebin.com/mCzsdWEY
Anonymous
my codes need some help with this
Anonymous
/stat@combot
Combot
combot.org/chat/-1001146340312
inchidi
inchidi
Anonymous
but when i'm executing the code