Rahat
How to write test cases foreign key part send documents
Rahat
In models
Neeraj
Can anyone have documents of upload the Django project on EC2/VPS with uWsgi and Ngnix detailed explanation line by line of uWsgi and Ngnix.
Main part is if i pull the new changes code after set up project, then new code can't apply until if i restart the uWsgi service.
Unluncky
Hi
I need help... How to join the table in django api?
Doragonsureiyā
Victor
Yogesh
Hii anyone know how to login in admin panel at live website
Abhishek
Django Admin Panel
Hello everyone I am using django-river with my project.There are models registered in admin panel:-
function
on approved hooks
on complete hooks
on transit hooks
states
transition approval meta
transition meta
workflows
I wanted to add few more columns in states so I inherite state(model) class in a different class and added the new fields now i want to replace the states model with my newStates model in admin panel.
I am stuck here I don't know how to do it and also is this the correct way to add new field or not please let me know.
¯\_(ツ)_/¯
https://stackoverflow.com/questions/74497270/django-manage-py-migrate-errors. While working on a project I encountered an error similar to the one here.Could someone help me get around this
¯\_(ツ)_/¯
I also tried implementing the app from scratch in another project...but then I'm still getting this error
¯\_(ツ)_/¯
I'm using postgres btw
Aza
i configured settings and docker, then i run docker up
Aza
docker says that everything ok, but when i going by ip i get error ERR_EMPTY_RESPONSE
Shivani
How to save multiple images using crispy forms its show on html page but save only 1 image
M Y C
In model, how can change the format of DateField
Asad Ullah
"DATE_FORMAT¶"
https://docs.djangoproject.com/en/4.2/ref/settings/#:~:text=database%20configurations.-,DATE_FORMAT%C2%B6,-Default%3A%20%27N
Anonymous
How to learn django python i am beginner
Doragonsureiyā
How to learn django python i am beginner
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Kesav
What are the other customize admin panel packages in Django except jazmin
Anonymous
I need free video links
Anonymous
For python
samet
Hello friends, I am trying to do projects to improve myself, I am new to the software, I do not have any fee to give me a project that I can do, my goal is to improve myself
Charly
samet
samet
Miguel
Miguel
as you said in real project... join internship in any company...
or you can develop projects ownself using google and youtube there are a lot of tutorials
Miguel
don't just follow the courses ... be clear what you wanna do then work on it..
x-yro
https://hastebin.com/share/lekamatuyo.python
Hello, how can I simplify this code so that I don't have to set the variables to None before calling them?
Miguel
x-yro
Raad
Hello guys,
From your experience what is the best way to check if the model has changed or not?
It's a Bill table and it require quite complex calculations and i don't want to preform the calculations if nothing has been changed before I show them in the view.
Сэр Финли
Why the error occurs Nonetype does not have the attribute 'pgconn'
The database works but with "Model.objects.annotate(search=Search Vector('title')).filter(search=query) gives an error, I can't understand who has the time to explain?
traceback https://linkode.org/#GsduCTgYA5gLH54kMZBjR
Naggafin
Naggafin
question: if I have a model which has permissions defined in its Meta class, and I inherit that model using multi-table inheritance, do the permissions defined on the parent class carry over to the child class? I assume so since it has an implicit one-to-one field linking to the parent record
Сэр Финли
that looks to me like it's unable to establish a connect to your postgres db. do regular, simpler filter queries work?
Yes, operations such as Model.objects.all() work, everything that does not use specific sql operations works
From interesting to manage.py shell Post.published.annotate(search=Search Vector('title', 'body', config='english') does not work and gives the error 'Nonetype hac no pgconn'
But as soon as I access the database Model.objects.all(), the shell Post.published.annotate(search=Search Vector('title', 'body', config='english') becomes working
Naggafin
what if you do Post.published.all().annotate(search=SearchVector('title', 'body', config='English'))
Naggafin
querysets are lazy so that should have no additional overhead
Сэр Финли
Shivani
How to save multiple images using crispy forms its show on html page but save only 1 image
Charly
Tamerlan
i add swagger to my django application in local it work well but in server i get error
Tamerlan
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
Faissal
Hi
Someone can help me with a tutorial which develop kivy app using django as backend (Django rest framework)
Charly
Faissal
But how can I connect to the backend on kivy
RXRX
anyone have idea why static file is not working when project deployed on server with gunicorn and nginx, admin template also breaking
Sinan
In the Django project, the ram consumption reaches 30 gigabytes, and the project hangs. What is the reason?
Doragonsureiyā
Sinan
the reason of consume that large size of memory and project stop on can't create new thread error ?
Doragonsureiyā
Rahat
How to write test cases in which choice field implement another foreign key
EFK$$$
Hello here please
am trying to deploy (hosting) one project to a domain but the media is not displaying when I change it to debug=False but when debug=True it works any solution 💥
Maxim
Maxim
Юрий
Do I really have to write separate apps in project? Is the one app not anouth?
Are python packages / modules worse the django apps?
EFK$$$
Lil 97
PS C:\Users\Lil 97\Desktop\django> py manage.py runserver
C:\Users\Lil 97\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'C:\\Users\\Lil 97\\Desktop\\django\\manage.py': [Errno 2] No such file or directoryPS C:\Users\Lil 97\Desktop\django>
Lil 97
somebody help me here i dont know what to do
Lil 97
how do i change it?
Xusrav
Lil 97
then?
Xusrav
Lil 97
interesting is goin well
Lil 97
thanks but keep tabs on me pls incase i get stuck
Anonymous
Please help me with django, i am begginer in this
Anonymous
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'kak
Anonymous
here is a piece of code since I can't send a screenshot
Сашко
Hi everyone, I am creating a profile model for my project. It is not surprising that the profile has a picture (avatar) field. But I don't know how I should set the default profile picture if it is in the static files folder. As far as I understand, the default attribute leads to MEDIA_ROOT 🤷♂️. Please help me with the answer
Xusrav