Naggafin
oops, you're correct
Sandip
and in my second project i want to remove password field which shows at the time of accessing admin panel
Sandip
i wnat to change otp in place of password field
Naggafin
probably the best thing you can do for that is to prevent session login from the admin app, instead forcing unauthenticated or under-authenticated users to your login page when they try to access /admin
Naggafin
you could make the django admin module recognize OTP, but that would be a lot of unnecessary work. you would be sifting through source code of both and tying things together. it's just easier to prevent logging in from /admin. does that make sense?
Sandip
i mean i want to create user login for android app
Sandip
in which it takes mobile no and i send otp and user can login through otp
Naggafin
what does that have to do with accessing the admin panel?
Sandip
for login
Naggafin
Sandip
sorry, i dont understand
Sandip
i didn't understand
Sandip
actually i am trying to solve this login through otp problem in my office and previous problem i am trying it at my home
Sandip
also
Naggafin
you're not very clear on what you want though. you want django OTP to handle logging in, correct?
Sandip
yes
Naggafin
and the problem is that when you go to the admin panel it asks for password?
Sandip
yes
Naggafin
so here is the easiest solution: prevent logging in from admin
Naggafin
when trying to access admin if not logged in, have it redirect to your official login page instead
Naggafin
the hard way would be to combine django-otp functionality inside of django's admin module, which will involve a lot of custom coding for you
Vishal
Hello everyone, this is bishal... I make a project on django but I face some issue, so anyone who have an experience on django.... Pls help me..!
Vishal
So, can I send my query..!
Naggafin
ask away
Naggafin
be clear about your problems though. I don't want to have to figure out what you need
Vishal
https://youtu.be/93Wl_ZePZYs
Sandip
then pls tell me what should i do
Vishal
In this project... I'd card is generated.. But I want to design the id card by own..!
Vishal
How I can do this..!
Naggafin
then pls tell me what should i do
read this: https://stackoverflow.com/questions/51265210/django-admin-remove-login-page
you need to make a RedirectView which when someone tries to access /admin/login, redirects them to your real login page which uses django-otp
Vishal
Media is not allowed.. In this group..!
Vishal
??
Sourabh
I'm learning django
I want to learn Data structure
So i can make website but i don't know from where to learn please help me I'm very beginner
Vishal
My issue is to change the design of id card so anyone who able to do this pls do. It's my humble request..!
Charly
Naggafin
before you say "I need help with XYZ", you should probably ask yourself, "If I was reading the request for help I just typed, and knew nothing about the project, would I understand what was being said?"
Reza
Any one suggest Python django free learn?
Doragonsureiyā
Any one suggest Python django free learn?
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Reza
Bangla tutorial is suggested that in better learn?
Charly
Naggafin
anyone in here experienced with writing test cases for their django projects?
Charly
Naggafin
it's one I asked previously. can I reference my prior post?
Naggafin
I seem to be running into a very obscure issue. I don't know whether it is due to the way the ephermal sqlite db acts during testing or not
Naggafin
I have noticed that the django orm behaves slightly different while undergoing testing, enough to where certain considerations need to be made (i.e. religiously using refresh_from_db())
Naggafin
I seem to be running into a very obscure issue. I don't know whether it is due to the way the ephermal sqlite db acts during testing or not
I believe I solved this myself. but another question!
does anyone have best practices advice on querying permissions for multi table inheritance models? example: I have a class BaseCryptoWallet which is a regular model (not abstract) and defines view_privkey and withdraw_crypto permissions in its Meta.permissions. I have another model name EscrowWallet which inherits from that, creating multi table inheritance. however, user.has_perm("%s.%s" % (escrow_wallet._meta.app_label, "view_privkey")) returns False. the reason is obvious: the permission was defined on BaseCryptoWallet, not EscrowWallet, and it follows user.has_perm("%s.%s" % (BaseCryptoWallet._meta.app_label, "view_privkey")) returns True, which it does. while this works, something about doing it this way smells bad. anyone have better practices for going about this?
Anonymous
which course do you recommend to beginners
I started watching maximilian. is it ok?
JairamJavv
Django for beginners by William s Vincent is a good book to start for beginners
JairamJavv
Pratap
Hii everyone can anyone help in django rest framework project I am stuck in a problem how can i solve it
Pratap
Error shows user() got unexpected keyword arguments: 'password2'
Lokendar Singh
Send code
Pratap
This happen in userregistration serializer
Rev3rce
How can I solve this problem in Django: django.core.exceptions.improperlyconfigured? It is because I use include()
Charly
Sandip
i am trying to create custom user but i got this error "in get_user_model raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'users.CustomUser' that has not been installed"
Sandip
i also inserted in AUTH_USER_MODEL in setting also
Anonymous
Im looking for the best django rest framework course link (youtube)
Karthik
Данил
Hello everyone, I want to ask, I am making a database with a connection many to many: actors = models.ManyToManyField(Actors).
But with this error: <class 'movie_app.admin.MovieAdmin'>: (admin.E109) The value of 'list_display[4]' must not be a ManyToManyField. Help please, with what this error can be connected and how to solve it?
Kazem
SoibovR
Hello everyone!
I'm getting error
Origin checking failed - https://ridp.uzrd.uz does not match any trusted origins.
CSRF validation failed. Request denied.
this is my settings:
ALLOWED_HOSTS = ['ridp.uzrd.uz']
CSRF_TRUSTED_ORIGIN = ["https://ridp.uzrd.uz" "https://*.uzrd.uz", "ridp"]
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
how can I fix it?
bar
Hi everyone, i am new to django and i look for a free course/guide that you can recomand me?
In the end i need to use it for backend with angular as front
JairamJavv
Anzz
Hii i been practicing django for past 2 months and still sucks at writing views.py
I just wanna if there is someone who have gone through this and how did you overcome ??
Pratap
Jaloliddin
mahdi
Hello friends, good time
I have a task, can anyone help?
To have a database, my sql has about 4 tables
The name of each table is the name of a class in Python
And for each class
You have to do the crud operation
I want to make such a completely object-oriented model
Can anyone help?
KingFx
Jaloliddin