Guru Prasad
I need a education system project by using django with ppt, is anyone here to help me!
Abdaal
I have installed pillow successfully but still error can't use imagefield, install pillow,help plz
Ξlmurod
Arsalan
What should I use instead of a filter?
No you shouldn't do other action instead of filter I mean there is a problem in your filtering
clouded
plz explain me step by step
https://pipenv.pypa.io/en/latest/
Kevin
Good evening please someone to help me to an understanding. I want to create a form with Django but the problem I have already created the form with CSS HTML I now want to connect lpas
Abhi
You already used backend?
Kevin
I'll explain to you I saved the models I have two models description and title I created forms.py I added to admin.py and I created the views, now in my post_create.html I have already created the HTML and CSS now when I put the {{form.as_p}} I can't connect the different fields
Dhanushpathi
Is there is possible to multiple database with a single app. How?
Maxim
Is there is possible to multiple database with a single app. How?
why do you need that? do you really need that?
Dhanushpathi
yes because, that app contains the necessary models
Dhanushpathi
Is there is any solution for that . It"s possible to connect
Ξlmurod
plz explain me step by step
1. Open cmd 2. go to the folder where your project is located. cd "yourprojectname" and 👇👇👇 python —version pip --version => if pip version is available: I.pip install pipenv pipenv --version II. pipenv shell III. pipenv install Pillow Enter the folder where manage.py is located and run: python manage.py runserver I hope you understand...
Arsalan
My problem is solved thank you very much🙏🏻🙏🏻
Congratulations 🎉 Did my guidance help you?
Arsalan
fereshte
Congratulations 🎉 Did my guidance help you?
Yes it was solved with your guidance thank you very much🙏🏻
Charly
yes because, that app contains the necessary models
Explain that. Thats not a reason to have multiple databases
Dhanushpathi
Explain that. Thats not a reason to have multiple databases
To connect multiple databases in a single Django app, I can use Django's database routing feature. But I am unable to migrate
Charly
To connect multiple databases in a single Django app, I can use Django's database routing feature. But I am unable to migrate
Why you can't migrate? And again, why you need multiple databases? It seems a lot of pain for no gains
Dhanushpathi
Why you can't migrate? And again, why you need multiple databases? It seems a lot of pain for no gains
I’m using multiple databases because different types of data and functionalities are better suited to PostgreSQL and MongoDB. While Django’s migration system handles PostgreSQL migrations, it doesn’t support MongoDB schemas directly. Therefore, I need to manage MongoDB schemas separately. The issue with migrations arises because Django’s migration system is designed for relational databases and doesn’t interact with MongoDB, which requires a different approach for schema management.
Charly
Is there any alternate options
Alternate options to what specifically?
Charly
The best option is to use PostgreSQL for everything
Kartik
I want django notes for study
Kartik
Can anyone help me out
Charly
I want django notes for study
https://docs.djangoproject.com/en/5.1/
Kartik
Can u give it in pdf if possible
Charly
Can u give it in pdf if possible
You can download it in PDF, ePub and HTML fro the link
Charly
The link is in the bottom of the sidebar
Disami
in my model i made two fields null true and blank true and shcema is also fine but when i try to save data it says NOT NULL constraint failed: interrpution_data_summary_datasummary.month any reason why i did every thing but i want those model to be empty rather than haing deafult
Disami
did you migrate?
yes i did ("year", models.IntegerField(blank=True, null=True)), ("month", models.IntegerField(blank=True, null=True)), i got this in migriation file
Farzad
yes
weird, do a server restart. sometimes fixes the issue. also erase the cache
Ramesh
Anybody knows how to add reward points in django project?
Charly
Anybody knows how to add reward points in django project?
That's a broad question. You need to design it according to your needs, a naive approach would be to just ad a field in the users model to track the points in their account. But unfortunately, only you can design that implementation. Or search if there is generic package that does that.
Habib
Hi there I have a question I have this page login/ And on click it reloads the page and shows the danger or success notification Can I achieve it without a reload Currently the Frontend is in Django templates
clouded
Htmx seems to work well for Django
Habib
Thanks
+=+
I am looking for a common way to display the shopping cart list in my online shop The problem is when I display this way, some items that have been removed are displayed several times, and I just want the number to appear. Django code
DJ
hello everyone i need help, all image and file urls returned with http prefix but i need https prefix. how can i replace http with https in media file url?
Shayan
Hello my brothers 👋 I need help with my project I import this jn my api/view: from .models import Todo from .serializer import Todo serializer But python didn't recognize both of them. I am learning the https://blog.logrocket.com/django-rest-framework-create-api/
Shayan
show your project file structure
https://hastebin.com/share/kaxasifeza.python
Shayan
https://hastebin.com/share/kaxasifeza.python
python didn't recognize line 6 and 5
Shayan
https://hastebin.com/share/ivajadinap.kotlin And this is my serializer
Shayan
Again it not working and recognize
Doragonsureiyā
Again it not working and recognize
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to.
Shayan
from models import Todo from serializer import Todo serializer I remove . Behind model and serializer but again python didn't recognize these lines
Shayan
What did the error message say exactly?
Using the URLconf defined in todo.urls, django tried these URL pattern, in this order: 1- admin/ 2-api-auth/ 3-todos/ api The correct path, todo/api/<7>, didn't match any of these.
Shayan
I found my problem
kim
Any recommendations on how to work on real time chat between user and admin in a django website?
ㅤㅤㅤㅤㅤ
How to redirect to cutom-login page before going to admin-login page in django?
kim
SureDigital
Pls any good resources to start learning Django fast and easy
SureDigital
I n3d help