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
Patrick
Shrenika
How to make fields mandatory under Authorization in swagger view
Shrenika
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
Frenchie
https://linkode.org/#cpD2o4cPBU5zhQCs9lxNg2
.
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
.
O'ktamjon
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
YnB
Вы че пидоры
YnB
Удалили мое сообщение
YnB
Understand?
Arman
Bhabani
Hi i want to learn django, video any reference would be much appreciated
Nazim
Danila
Hi guys, we have server on ubuntu 22 and after reboot it showing 502 error
Danila
can someone help us
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
Maxim
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.
Nazim
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
Maxim
Ali
https://blog.theodo.com/2020/05/django-migrations-without-losing-data/
Ali
Ali
but i confused
Maxim
Ali
explain more
sometimes i need to update model and show error
Ali
but after delete database, don't show error
Ali
and when delete database,i lost my data😐🤦♂️
Maxim
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
DV
can i show me about your site
Arman
Mr
Hello everyone i m new here. I can start learning Django?
dev
How to do api rest with django
Maxim
Mr
dev
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
Marc
Marc
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?