محمد دلشاد
How to create signup form with name,email,mobile and password in django
first of all make a custom user model to store mobile number then use the ModelForm and UserCreationForm
cj
How to increase security of django app
you have to write good code 🤷🏻‍♂️ Django is not a magic box that will give you security just for using it
Girish
I done everything just want to know there is any chance to increase security
cj
I done everything just want to know there is any chance to increase security
yes, write good code 🤷🏻‍♂️ follow best practices, write tests, etc
Girish
Lol okay
Yuvi
In urls have you put the slash?
Yeah I already done that but same error
Girish
I want to know how to add signup from other apps like gmail fb etc
Girish
Okay
cj
and use Google for those kind of basic questions too
Girish
😅 okay
Girish
cj
Yeah I already done that but same error
it's telling you to change your endpoint on the HTML form, not in the urls file
cj
If u don't mine explain briefly
I guess you have it like: <form method="POST" action="/detect"> and it's telling you to change as: <... action="/detect/"> ... that's why you should use {% url "appname:urlname" %} instead of manually writing the URLs on the templates
Girish
I genuinely have question can i or go to Google..?
Girish
I creat an app without env so is it ok or not
Girish
But my app are working fine
cj
But my app are working fine
yes, it might work... but it's definitely not OK to create them without using virtual environments
Girish
Ohh ok if i go to use virtual environment so i need to make change in every file...?
Girish
I have created an up in which I have not used the virtual environment
cj
I have created an up in which I have not used the virtual environment
now I understand why you're worried about your app security... you follow bad practices
Girish
😁
Girish
Everything I've done is done with google
Girish
How to use virtual environment in the app that I have prepared now
Girish
What should I do now
Anonymous
I have made project
Illia
use pyCharm it makes virtualenv of ur project automatically
Nice
Ya
Girish
I have created app in pycharm itself
Illia
in configuration select ur python interpreter version
Illia
then reopen ur terminal
Girish
My question is whether there will be any problem in development
Girish
Can you please tell me in brief
Illia
You mean can we develop our projects without venv?
Illia
Alex
How to use virtual environment in the app that I have prepared now
I've would use virtualenvwrapper. Create an env with needed python version and instal there your requirements. Now you can simply activate it and run your code under this env.
Doragonsureiyā
Okay thanks bro
I'm not your bro, bro; we weren't hatched from the same egg 🐍🥚
Girish
🤦‍♂
Girish
😶
Anonymous
Is there any way to generate Bootstrap model into pdf ...
Illia
Alexander
has anyone ever encountered the fact that requests to the user model occur twice by using request.user?
Alexander
I guess it's all the fault of the middleware 'django. contrib. auth' and in particular the get_user method: def get_user(request): if not hasattr(request, '_cached_user'): request._cached_user = auth.get_user(request) return request._cached_user
Alexander
but I am at a loss why this request._cached_user is not used further inside `request.user', forcing it to make a new request
Alexander
I found the discuss about https://stackoverflow.com/questions/29679566/what-is-the-purpose-of-djangos-request-cached-user. But it is as if it remained unfinished
Anonymous
Did anyone know how to make form like choose seat at cinema ?
Anonymous
Hello I have a multilingual webapp. Now I want to share some tutorials and PDF documents to users. I have pdf docs translated in different languages so if user is browsing English website he will be shown English version of documents if he sets his language as Italian he will be shown Italian docs pdf etc. What's the best way to achieve this?
Vishal
Hello friends can u please help me I have 2 apps in a project I want to import models of app1 in the views of app 2 But it shows error of circular import What is this ??
Fuad
Hi everyone, may be someone here can help me, I already wrote question to stackoverflow, thanks in advance. https://stackoverflow.com/questions/64628802/how-get-data-from-database-to-modal-popup-page-in-django
Deepak
hi, I am trying to serialize the same model by using two different classes. in which one class serialized all field of models and other only 2 or 3 filed of same model
Deepak
but its not happening
Deepak
anyone have any idea
Deepak
why i am creating two serializer classes well one for admin user and other for normal user.
Deepak
where admin can see all serialized field of model
Deepak
anyone here?
Yuvi
How to solve this error I'm working face recognition project OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-ddu9qe0m\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
Root
Mehran
Yes
Can you please send me?
Akshay
hey can any one tell how to add a simple Angular page to Django (can you send a link that I can refer to)
M
hey can any one tell how to add a simple Angular page to Django (can you send a link that I can refer to)
angular is js and you can study how DTL works in django .. you will know how to integrate it
Akshay
thanks for your reply will check it out
Sai
Yes
Hey can I get the code?
monaou🦍
Hello. Im use AbstractUser in my models and my terminal output error (django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency main.0001_initial on database 'default'.). im cleaned my migrations history, but it didn't help