🤟🏻
i'm using 3.2
Stark
how to use pipenv --venv but in virtualven
Alex
Guys, please give me an idea on how can i pass the current requesting user as argumet to reverse_lazy() function inside class-based delete view
Maxim
how to use pipenv --venv but in virtualven
python -m pipenv after activate or just full/path/to/python -m pipenv even without activate
RoyalBosS
How can I learn advanced django for free?
William
how to use pipenv --venv but in virtualven
virtualenv venv or virtualenv nameOfTheEnvironment --python=python27 or python3
Laja
How to implement raw data and HTML form on Django rest framework page
Laja
Is it during serialization or view you implement that
...
hello guys, please I need tutorials on RabbitMQ with python, I will appreciate if anyone can point me in the right direction, thank you
Suhaib_0.0
How do I encrypt passwords? Is there an explanation? help me please
⟨ Simon |
How do I encrypt passwords? Is there an explanation? help me please
You shouldn't encrypt passwords you should hash them using a hashing function made for it, read this: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
Anonymous
How to setup lock screen working in django
Anonymous
Any example of lock screen setup ni django project ?
Rakshan
Anyone explored Django for making mobile apps for android and/or IOS ?
....
$ heroku config:set EMAIL_HOST_PASSWORD="<your app password>"
i did this . but not working . again the server issue . .
ARBAAB
signal is good for this approach or when you save the student in the view also create a payment for it.
i did the same after saving student in the view in the same view i retrieve the last student inserted id and trying to add that new created student id to the payment table but facing errors
ARBAAB
Ooh thanks
welcome
M❄️hdi
https://t.me/django/181337 ??
Anonymous
Can i access all model data in template ??
Anonymous
Can i access all model data in template ??
Well, you have to pass the data in veiws.py You can do modelname.objects.all()
Anonymous
After that go with the context
Chauhaan Tushar
you profile picture has recursion
 ‌‌‌‌Hamed
Hi what's do relay in django graphql? When we use relay??
alexander
I joined to large enterprise project(payrolls, insurance, human resources information system, employees and etc) that was written on django 2.1, we have mobile apps also. System uses email notifications. We should add real-time notification channel with help of websockets. There is no chats. What websocket library is more suitable for django 2.1? channels, socket.io? If channels - why channels? If socket.io - why socket.io? If other lib - why other lib? Can I find somewhere comparisons between websocket libraries, pros, cons? Thanks, I appreciate any suggestions.
Alex
Self.request.user
Ohhhh. Thanks
User
Hey guys, if I extend abstract user model with just a pass statement will I be able to add functionality later on? Is this the right way or should I use base user class?
Alireza
Hey guys, if I extend abstract user model with just a pass statement will I be able to add functionality later on? Is this the right way or should I use base user class?
If you do that, as you preceed further you will be able to extend and add properties and functions you need to the User model
User
I am pretty new to django
Alireza
Should I use base user model or abstract ?
AbstractUser is a full user model and contains everything but AbstractBaseUser only contains authentication functionalities
Alireza
I am pretty new to django
Do not forget to set AUTH_USER_MODEL in settings.py
Pragati singh
Self.request.user
does self.request.user and request.user are different I mean request.user means logged in user...
Alireza
does self.request.user and request.user are different I mean request.user means logged in user...
Yeah but request object is not available in class based views so you will need self.request
William
does self.request.user and request.user are different I mean request.user means logged in user...
self.request.user is mainly used for class-based views and request.user is used for function-based views. If we just using APIView and get() post() function we can use request.user. When we use generic views then self.request.user should used
Alireza
William
Do you want to sort by the sum of (1,2,3)?
User
Anyone know how much to charge for a web app? I know the question is very generic but generally what the range of amount charged for django apps?
ㅤㅤㅤㅤ ㅤㅤㅤ◡̈⃝ㅤㅤ ㅤㅤㅤㅤㅤㅤ ㅤㅤㅤ
Hi Has anyone worked with django-debug-toolbar? That doesn't show up on my templates. I created a new project, configured all steps in the docs and a full structured html template, but it doesn't show anything.
ARBAAB
provide some code
tnx i did it another way
Ionut
what database is indicated to make a site in django?
Alireza
fn
Hi, guys! Need little and simple help!) Three models: 1. Customer (has foreign keys: region and district) 2. Region 3. District Question: How to render Customer model to the template and display values of foreign keys relatively to each other (user selects region, and depending on region shows districts of it) in HTML (select and option tags)?
Alireza
Hi, guys! Need little and simple help!) Three models: 1. Customer (has foreign keys: region and district) 2. Region 3. District Question: How to render Customer model to the template and display values of foreign keys relatively to each other (user selects region, and depending on region shows districts of it) in HTML (select and option tags)?
You can iterate over customer.region.all in your template and the same for distinct But if you want to access reverse relation outside template files you should use the cunstruction below User.region_set.all() User.district_set.all()
fn
thnx)
Abishek
how to add tailwind css ui component like(DaisyUi) in django?
Doragonsureiyā
how to add tailwind css ui component like(DaisyUi) in django?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
ㅤㅤㅤㅤ ㅤㅤㅤ◡̈⃝ㅤㅤ ㅤㅤㅤㅤㅤㅤ ㅤㅤㅤ
Any error?
Nothing
ꪉꫝꪖꪹᦋꪖꪜ
Getting error this page isn't working HTTP error 405
Maxim
Getting error this page isn't working HTTP error 405
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
Anonymous
template tags
Template tags will catch wath ever you send for them in the views.py
Anonymous
Any Idea releted Lock Screen Setup ni Django Project
Parth
Django website in how to show ads
Maxim
Django website in how to show ads
same as in any other websites or what do you mean?
Parth
Adsense TXT files setting
Veinx15
Auto complete python trace ball output .. how to fix it ??
Павел
Hello everyone! Question: I have described signals for certain actions with the model (for example, post_save). After the new data is saved in the model, I notify some users about this. Is it possible somehow, when receiving a signal, to find out who was the author of these changes in the admin panel? At the moment my signals.py file looks like this: https://hastebin.com/xodogiweqe.py
Позывной "ПАПА"
Why svg image is not displayed in django? i try <object type="image/svg+xml" data="{{ project.icon.url }}" class="card-img"></object> in browser i get: <object type="image/svg+xml" data="/media/fa.svg" class="card-img"></object> but SVG is not displayed it works on pure HTML also <img type="image/svg+xml" class="card-img" src="/media/fa.svg"> work in django
Roman
How to add keycloak auth in django admin?
Anonymous
Hello!, My question: Is there any Service for storage files(Images) in the cloud with a free plan good? I'm working a new open source project and seeking for that. Maybe even in Heroku?
N
Hi, I am still rookie.. This is my first experience with CBV. My goal is to create one template with list that i can filter by my models field, like Date, Category, and more. My first try was to create more than one ListView, each for category but it's just doesn't look and feel right and I can't find anything to solve that on Google or django documentation.. What am I missing? This is the code.. https://bpa.st/BRKQ Thanks
ꪉꫝꪖꪹᦋꪖꪜ
I am having appointment table in which apt_id,pat_id and in patient table i have pat_id how can i fetch patient email id from appointment table?