Mirco
will pytest-django not prevent the sending keys to them?
once again during testing you don't have to send real email just use the emailoutbox fixture and check the length and the body
Small Smaller
From . Import views Output ImportError: attempted relative import with no known parent package How can i fix this error
Zakx
How to use signals
Doragonsureiyā
How to use signals
These single steps will help you a lot: 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
gadghimuradm
How to use signals
https://letmegooglethat.com/?q=how+to+use+signals+django
HamidReza Fekri
https://bin.kv2.dev/~62742d6d410e7c32e669ccd3 hello i want write permission for my course to check login user is owner or not but this line is my problem return obj.owner.user == request.user how to access user from obj
HamidReza Fekri
You are accessing the user already, whats the problem?
hey i don't get correct result bs in a special url if is not owner must make post and put methods forbidden
HamidReza Fekri
i can't understand
may i expain you in pv
Doragonsureiyā
may i expain you in pv
Can i send you a private message? No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Morteza
may i expain you in pv
may you can explain a little more clear so we can help you.
HamidReza Fekri
I need create permission for course model if logged in user is owner of that course can modify and delete it if not only read
HamidReza Fekri
but Its not working
Morteza
Ok now i get it let me check
HamidReza Fekri
Ok now i get it let me check
i found the problem bro by mistake I had added permission_class instead of permission_classes in views 🤦🏻‍♂️🤦🏻‍♂️
HamidReza Fekri
Sorry if I bothered you
Morteza
no problem glad your problem has been solved
HamidReza Fekri
no problem glad your problem has been solved
what do you recommend me before I read django source code
Morteza
what do you recommend me before I read django source code
reading the django source code for what?
HamidReza Fekri
reading the django source code for what?
Deeply understand whats happening behind because it can help me so much in some projects
Ali
+ books
Morteza
Deeply understand whats happening behind because it can help me so much in some projects
I understand Basically you should know python in a good level then Read the docs and understand the workflow behind django and what provides for you then if you want to know django deeper and see the code behind it then you can read the source code but in my opinion, when you are using django, you will understand the process part by part, base on what you are working on unless you have another reason for that.
Shubham
Did anybody ever use deepdif module of python? I am currently working on json schema! I need help... Anybody...
Matuo
Hi guys
Matuo
Please can someone help me
Matuo
I want login my user, but django automatically set session cookie
Matuo
But i not want this look like this, and i want its be manualy
Matuo
I have one check box in my temlpate, i want when check box(Remmber me ✅) be true
Matuo
Than set login session
Matuo
Check box like, my profile photo
Matuo
Please if someone can, Help me 🙏🙏
Monday
try using using condition with the check box
amar
Hi i need help
amar
In swagger django restframe work file uploader is not showing
amar
Can any one tell how to upload file using swagger in django rest frame work
Fan of Thunder
Getting error., from django.conf.urls import url ImportError: cannot import name 'url' from 'django.conf.urls'
Maxim
Good day. I'm starting in Django. Some problem with "makemigrations". Python 3.10 / Django 4. PyCharm. Maybe someone helps me to understand it.
Maxim
(venv) C:\Users\usr0654216\PycharmProjects\DjangoProject\STK_MANAGER>python manage.py makemigrations
Maxim
Traceback (most recent call last): File "C:\Users\usr0654216\PycharmProjects\DjangoProject\STK_MANAGER\manage.py", line 22, in <module> main()
Maxim
It would be more convenient to send a photo from the screen
Maxim
ModuleNotFoundError: No module named 'crm.apps.CrmConfigdjango'; 'crm.apps' is not a package
Maxim
In the course on Udemy that I'm taking, the author does everything in Python 3.7 and Django 3. Perhaps in new versions I need to perform this procedure differently?
Abdullaev
Guys how do you implement multilingual site?
Mirco
Guys how do you implement multilingual site?
by following Django's i18n
Mirco
It would be more convenient to send a photo from the screen
nope, it will be more convenient pastebin.org
Gordey
Hello i want csv upload form to dynamically give options to user based on model fields passed to form constructor class CsvImportForm(Form): choose_options = () def __init__(self, model_instance, *args, **kwargs): super(CsvImportForm, self).__init__(*args, **kwargs) self.model_instance = model_instance self.all_fields = get_all_field_names_without_id(self.model_instance) choose_options = () for field_name in self.all_fields: choose_options += (field_name,field_name) self.choose_options = choose_options csv_file = FileField(label=_("CSV file")) choose = ChoiceField(choices = choose_options )
Gordey
it is not working, what is wrong?
Doragonsureiyā
it is not working, what is wrong?
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Gordey
i could't find any solution
Shubham
In the course on Udemy that I'm taking, the author does everything in Python 3.7 and Django 3. Perhaps in new versions I need to perform this procedure differently?
Django 4 is the lastest version but Django 4 is almost backward compatibile with Django 3 so no worries. Also you can simply use Django 3 if you want
LazyCoder
Guys, how can create a form builder (that drag and drop) with django
Shubham
use javascript
Can you give a example?
Doragonsureiyā
Can you give a example?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
André
im pretty new to Django and just found out about the reverse_many_to_one_manager - i love it
André
just wanted to tell you guys....
André
Like select related but in reverse, kind of. Like using Model.othermodelname_set()
André
I can use this in a loose relationship between a model I use that’s slightly related to User but not a OneToOne and an AbstractUser would be too much. I don’t want to struggle with many queries so I just set a foreign key to User that can be null and sometimes query User with othermodel_set then with just one query
Doragonsureiyā
what's that
These single steps will help you a lot: 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
Nancy
How to deploy the django ptoject
Doragonsureiyā
How to deploy the django ptoject
These single steps will help you a lot: 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
Nancy
Project
Sayidbek
Project
https://docs.djangoproject.com/en/4.0/howto/deployment/
Sayidbek
Project
Have you heard of Google and googling?