Doragonsureiyā
Ohhhhhh I can't send screenshot
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://dpaste.org, https://hastebin.com, https://bin.kv2.dev or your favorite one!
Jay Dwarkadhish
''' a data-toggle="modal"class="edit" data-target="#modal-{{ student.id }}"><i class="material-icons" data-toggle="tooltip" title="Edit"></i></a> <div id="modal-{{ student.id }}" class="modal fade" > ''' model not open
Minilik_muluneh
is can i use the epoch time to calculate the date difference between two date to display the year,month and days for my work experience calculator web app
♾️
OSError at /admin/b/category/add/ [Errno 38] Function not implemented You can download the image from the admin panel and Django when you receive the message. Pillow is installed
Alex
what could be wrong «Segmentation fault (core dumped)'» after «python manage.py runserver»? I just got an error after the restart and no matter what I do, nothing helps. I reinstalled venv, I tried other versions of Python. But the error still appears. What should I look at, what should I post here so that the situation is clearer?
Stanislav
What is database migration?
Stanislav
Is it when I am creating new tables from models? Excuse me for silly questions
Mohammad Hossein
What is database migration?
https://docs.djangoproject.com/en/5.0/topics/migrations/
monir
What is database migration?
Database migration refers to the process of moving data from one database to another or modifying the database schema to accommodate new requirements. In the context of web development and frameworks like Django, migrations are used to propagate changes made to the database schema (e.g., adding a new column, modifying an existing column, creating new tables) to the actual database.
Fred
Hello guys Can I change data in html dynamicly using django? I have models to get and save data to db and I got data from db and print it to html. But html changed when user update the page. I need change html without updateding. Have some way to do this?
Fred
Use js with Ajax
Oh with djangi is impossible right?
@TheHongLou
Oh with djangi is impossible right?
HTML is static,you need to use js to change the html on client end
shadab
Use ajax in script tag to get data from backend without refreshing the page
Bekzod Juraev
Guys Django orm or raw sql ?? When to use give me advice
Dnyaneshwar
File "/home/excellminds/.local/lib/python3.10/site-packages/django/utils/_os.py", line 31, in safe_join raise SuspiciousFileOperation( django.core.exceptions.SuspiciousFileOperation: The joined path (/static/admin/css/dark_mode.css) is located outside of the base path component (/home/excellminds/dnyaneshwar/DJANGO/library-management/booklib/static)
clouded
Guys Django orm or raw sql ?? When to use give me advice
ORM whenever you can and SQL if you have to.
Km
Hi folks, here is a question that is it possible to use ORM to return the data from database with changing the value from null to a specified value, like a ‘none’ string, but this action didn’t really change the value in database?
Km
http://xyproblem.info/
I will ask my question again after I figurate this explaining for XY question. Thanks.
Abhi
Guys Django orm or raw sql ?? When to use give me advice
Ohk django have a feature you have not to write raw SQL queries because when u use orm the model is working like SQL so this is the benefits when u not know about the sql
Km
Yes. A temporary data, or a mapping data in my opinion.
All I know is using the ‘annotate’ method to create a temporary column, but didn’t hear about transfer the data into another one temporary. Like this: Back-End <-> Front-End null <-> ‘no value here’ And all I know how is query them(the data) by ORM directly, even using ‘annotate’ to order the specify sequence. If it is possible as stated above, could you please provide some key words for me? I’m very thank you for the response.
Doragonsureiyā
But raw sql is faster
Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%. — Donald Knuth PrematureOptimization can be defined (in less loaded terms) as optimizing before we know that we need to.
Brian
In excel, I want an excel formula that will return the following based on date of birth in cell F4 based on if it has reached the milestone, return only one outcome. 24 months, 18 months, 12 months, 6 months and 6 weeks
Doragonsureiyā
In excel, I want an excel formula that will return the following based on date of birth in cell F4 based on if it has reached the milestone, return only one outcome. 24 months, 18 months, 12 months, 6 months and 6 weeks
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anonymous
Hi. I have question. I have problem email verify in login. Who has experience to send verify email at backend part. Help me, please.
fereshte
Hello How can I use the properties of class 1 that are foreigkeyed to class 2 in the htmlfile of class 2?
Abhi
None corresponds to null.
You are talking about if I encounter with null value replaced with string?
clouded
You are talking about if I encounter with null value replaced with string?
No. I'm saying None in Python is the same as null in SQL.
𝗮𝗯𝗱𝘂𝘃𝗮𝗹𝗶
How can I add my own 404.html page instead of 404 page not found?
clouded
How can I add my own 404.html page instead of 404 page not found?
https://docs.djangoproject.com/en/5.0/topics/http/views/#customizing-error-views
Ahnaf
please anyone suggest me a django course with some live projects ?
Doragonsureiyā
please anyone suggest me a django course with some live projects ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
But raw sql is faster
actually no if you know how to use the ORM properly
Lucifer
has anyone here ever used vercel?
Doragonsureiyā
has anyone here ever used vercel?
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.
Gotila
Guys how to host django project in Server
Nima
Hey guys I have a question from Pro django users. What is your best advice for a new guy in the path of django learning?
Samurai_SE
i want to continue as Django developer ... my qustion related to Django more than python
Charly
Charly
And this group is for Django coding specifically
Samurai_SE
And this group is for Django coding specifically
okey ... you mean the group related to Django coding qustion wright ? if
ruthless
Hello everyone gunicorn doesn't work in my desktop My error No module named "fcntl" Same error in Flask
ruthless
Gunicorn doesn't work on windows
Does gunicorn works only on Linux and macOS??
fereshte
class2_instance.class1.attribute
Should I use this code for class 2?
Km
Did u find any solution ?
Not yet, I will figure out on my today. Thank you for your response. If I find out the solution, I will post here. Thank you.
M
Not yet, I will figure out on my today. Thank you for your response. If I find out the solution, I will post here. Thank you.
As to why you cannot simply do the replacement in your front end, I have no clue because this is just a simple check, though I feel your question is not too clear. But assuming you have no control over this then yes using annotate can probably solve this issue. In this case you will need to use Case to solve this. You’ll probably need an ExpressionWrapper and FStrings too for an optimal solution but I’m just thinking from experience. This will be the way I’d go about it if I was in your shoes https://docs.djangoproject.com/en/5.0/ref/models/conditional-expressions/
Sahnoon
As a beginner Which IDE would you recommend for django
Doragonsureiyā
As a beginner Which IDE would you recommend for django
What IDE/Editor to use for Python want to start an IDE war? do that here
Cc
Hi, I have a question, I've been working with Django for a short time and I've noticed that the more queries are made to the database, the more RAM memory fills up to the point that the instance freezes (aws EC2). What is the reason? I've seen that they recommend using a cache manager, but does that really help?
Cc
PostgreSQL
Ritik Sharma
Can someone help me im creating a login page for doctor and patient i'm getting to much confused in creating 2 login page
Jay
Can someone help me im creating a login page for doctor and patient i'm getting to much confused in creating 2 login page
You just need one page for login then what you need to work is just adding usertype or role
Ritik Sharma
Thanks for helping me out
levi
Hi! Sometimes my css files are not updated even if i restarts the whole django server! Any solutions?