Moe (محمد)
Im not sure I’m getting it still I’m using DRF, and i have models that are managed by the secondary db not django. In the settings.py i have a db connection that has a default DB_NAME, whenever a user logs in i want to modify the DB_NAME
Shrenika
How to make fields mandatory under Authorization in swagger view
Mirco
How to make fields mandatory under Authorization in swagger view
Fields mandatory ? Do you mean the endpoint protected by Auth ?
Shrenika
Before going to swagger API's we have an Authorizations
Shrenika
So I have to make some fields are mandatory in that Authorization one
Mirco
Nooo
don't write in PM
Mirco
So I have to make some fields are mandatory in that Authorization one
they are already mandatory if your endpoint requires the auth
Frenchie
https://linkode.org/#cpD2o4cPBU5zhQCs9lxNg2
Frenchie
https://linkode.org/#cpD2o4cPBU5zhQCs9lxNg2
Guys can u check this code and tell me what the # operator doing there is it getting passed as parameter?
Frenchie
Looks like a comment to me
Yes I also thought it was a comment
Frenchie
But the compiler think it a argument
Frenchie
If I remove the line after the # the code doesn't work
O'ktamjon
#django_admin There are three models: Region District (fk to region) Location (fk to region, fk to district) How to display district drop-down list based on the value of region field? If user chooses A region, then in districts it must show only A based districts.
Sukhmanjeet
When trying to deploy django project on heroku. I am adding import django_heroku in settings.py but it is showing error as import cannot be resolved
.
#django_admin There are three models: Region District (fk to region) Location (fk to region, fk to district) How to display district drop-down list based on the value of region field? If user chooses A region, then in districts it must show only A based districts.
Have you tried using inlines? “The admin interface has the ability to edit models on the same page as a parent model. These are called inlines.” https://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-objects
Didas
Sup guys, i'm making an api for tech support app I have a ViewSet with post: create and alot of custom actions in it for trouble ticket creation I want to make a cron job wich would create trouble ticket automatically once per day but i dont want to duplicate ViewSet code Question is: can i call ViewSet directly and pass json with params to it through code in DRF? Without using request lib ofc.
umarxon
hey guys, need help w something. I have models: collection -title item -collection(manytomany) -title vote -user -collection -item items have vote and belong to collections, the problem is that, as items can be in multiple collections its vote count is displayed in all collections instead of being displayed in its respective collection
Nivas
How to validate html manual form using javascript or any other option in django ,any one ans me
Arman
Hi I have problem in my site When i open the site , it show me this error: [an error occurred while processing this directive] Any one know how to fix it?
DV
I will fix it
Arman
I will fix it
Can you help me
YnB
Вы че пидоры
YnB
Удалили мое сообщение
Arman
Вы че пидоры
Speak en please😂
YnB
Speak en please😂
My en pizdech xyina
YnB
Understand?
Bhabani
Hi i want to learn django, video any reference would be much appreciated
Nazim
Hi i want to learn django, video any reference would be much appreciated
Use Django docs for learning, it would be much better
Danila
Hi guys, we have server on ubuntu 22 and after reboot it showing 502 error
Danila
can someone help us
Doragonsureiyā
can someone help us
Not until you explain your difficulties.
Danila
Not until you explain your difficulties.
We have server on ubuntu 22 and there is around 5-6 clients projects. All of them on Django. And everthying was fine untill today we have restarted our server.
Danila
now every projects is showing error 502
Danila
and we don’t know whats going on. Our developer who made and deploy this projects left us without instructions couple months ago
Danila
we’ve checked files and founded config for nginx and gunicorn, but doesn’t found gunicor.service file
Rashi
How to add upload option in html..not able to do..pls consider my prblm
Aggrey
Hi! i get this error via cpanel terminal, help me please >pip install mysqlclient note: This error originates from a subprocess, and is likely nota problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> cffi note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
Ali
i need to update model without losing data
Ali
please help me🤦‍♂️🤦‍♂️
Ali
???
Maxim
???
google django migrations
Ali
i know
Ali
and read this blog
Ali
https://blog.theodo.com/2020/05/django-migrations-without-losing-data/
Ali
but i confused
Maxim
but i confused
explain more
Ali
explain more
sometimes i need to update model and show error
Ali
but after delete database, don't show error
Maxim
sometimes i need to update model and show error
general phrases do not give us specific information to help you
Ali
and when delete database,i lost my data😐🤦‍♂️
Maxim
sometimes i need to update model and show error
you're doing something wrong do it right and you won't have any problems that's all you can count on with that description
K. S. R.
Hello please I'm trying to implement the add to cart function to my e-commerce website but I only find complicated examples. Can someone help me with a detailed an understandable example? Even if it is longer
Ali
Maxim
Arman
Hi I have problem in my site When i open the site , it show me this error: [an error occurred while processing this directive] Any one know how to fix it?
Maxim
Hello please I'm trying to implement the add to cart function to my e-commerce website but I only find complicated examples. Can someone help me with a detailed an understandable example? Even if it is longer
shopping cart can be implemented in many different ways you have to learn something more complicated than just copying other people's solutions
DV
can i show me about your site
Mr
Hello everyone i m new here. I can start learning Django?
Doragonsureiyā
Hello everyone i m new here. I can start learning Django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
dev
How to do api rest with django
dev
DRF
What's is that ?
Maxim
What's is that ?
use google or other search engine
Berkan
hello i am a django developer and i am looking for a remote full time job in this field i have the necessary certificates if you can help i would appreciate it
Delnold
Boolean Field class Boolean Field(**options) I have a question related to Django documentation. I always see everywhere this thing called (options) as an example above. I understand that this is kwargs, and this is being used to pass variables as a single dictionary, but I don't understand the point of using it as a declaration inside class. Does anyone know the usage of it?
{% Mohammed ALKHAFAJI %}
Hi guys, I need a plan to learn django and focus on all the important things that lead to professional Any advice?