Charly
it won't be slower it won' t be less maintenable, it won' t affect other areas
Charly
So it is an efficiency way there are no any better way?
Point anything that is wrong with it so we can try to suggest soemthing ebtter
Charly
I mean, you have one only page that is statics as you said, why then is bad to have only one record for it?
hamid
I mean, you have one only page that is statics as you said, why then is bad to have only one record for it?
Im saying a database table designed to store multiple records and I fell guilty by creating a table just for one row .
hamid
feeling guilty is not a good reason
So it is okay to do that? I mean create a table just for one row and there are no better way?
hamid
tell a technical reason that would be bad
Just said what I've been thinking about I'ma create a table
Mohammed
Hi guys What does Django mean? Because I am a beginner
Mohammed
a beginner at what?
Programing world at all
Mohammed
and python
Mohammed
Web-framework
What is it doing?
Charly
What is it doing?
Have you done even a small search on google so you can ask something more specific here?
Charly
I mean if you don't know what is it maybe this group is not for you
E
Hi guys! When I want to assign 3 groups to user, update() method make 3 duplicated queries. How to avoid id? duplicate queries: https://dpaste.org/fG66j code: https://dpaste.org/kHZ2G
Charly
Hi guys! When I want to assign 3 groups to user, update() method make 3 duplicated queries. How to avoid id? duplicate queries: https://dpaste.org/fG66j code: https://dpaste.org/kHZ2G
Is not the same query, it seems to be a classic N+1 queries issue: https://dev.to/herchila/how-to-avoid-n1-queries-in-django-tips-and-solutions-2ajo
Robinson
Hi guys , What is the perfect roadmap to learn Backend Development with Django ?
The Inspired
Hi guys , What is the perfect roadmap to learn Backend Development with Django ?
Django -> Django REST Framework -> Projects
cj
Hi guys , What is the perfect roadmap to learn Backend Development with Django ?
there's no "perfect" road-map, just learn what you need to achieve your goals in your project
cj
Django -> Django REST Framework -> Projects
why not include graphql, async, websockets, celery, etc? see? no perfect road-map? you can't just recommend something randomly as "perfect" answer
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Can someone tell me fastest way to learn Django? I know lil bit, i did CRUD projects only. What should I do next, please help me to learn and get a job faster
The Inspired
plus a "perfect" roadmap, which is kinda hard to quantify
The Inspired
so I simply answered their question
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Maxim
DRF resources plz
https://www.google.com/search?q=django+rest+framework
The Inspired
DRF resources plz
http://django-rest-framework.org/
🏅♐Mark
hii i have a issue with my django project ,the user profile picture and about not showing on the author.html and i checked in the database the image is there
Doragonsureiyā
hii i have a issue with my django project ,the user profile picture and about not showing on the author.html and i checked in the database the image is there
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
cj
plus a "perfect" roadmap, which is kinda hard to quantify
that's why you shouldn't throw random answer for someone asking for a "perfect" thing
Sams
dashboard
Pablo
hii i have a issue with my django project ,the user profile picture and about not showing on the author.html and i checked in the database the image is there
We will need more info on this like what your model looks like and how you are rendering out or passing in the image in your author.html file
🏅♐Mark
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
1, I am working on a blogging project where people can share their thoughts and experiences 2, I want to show user profile picture and about on the author html and I am collecting data from the complete_profile.html 3, I am working using Django framework 4, running using Visual Studio Code 5, python version : 3.12.1 5, default packages are using Please Wait let me share my code
ZAHER.KRYEM
Here is my code https://dpaste.org/RS5GL
On lines 193 and 194 you use alt="Profile Picture" twice for <img>
The Inspired
wait, you have already written that code
The Inspired
then what's the issue?
The Inspired
oh, picture not showing.
The Inspired
I don't see anything wrong with the code. Are you sure the DB has the picture?
Pablo
Here is my code https://dpaste.org/RS5GL
Try console.log or inspect elements to see what gets rendered in the src tag of the img element
Fred
Hello, I have a question. We are retrieving data via API and uploading it to DB. I have a question. If I make this process a page by adding a view and then uploading data from API to DB, will the site freeze, meaning will this process not affect other views?
Arsen
Recommendation please. I have implemented jwt auth via djangorestframework-simple-jwt but can't find a package for registration functionality too, please help
Ibrohim
dj_rest_auth maybe can help you
F
How can i deploy django application in Ubuntu 22 using Apache 2 ?
F
I have created VirtualHost . But still getting Forbidden error
Dev
why are you using Apache
F
why are you using Apache
The option available as per company policy
F
why are you using Apache
Is there any problem using apache2 on ubuntu 22
F
ModuleNotFoundError : No module named 'encodings'
F
ModuleNotFoundError : No module named 'encodings'
This is the error that I got when i check the log
Shiva
Can you guys tell me why we are getting chunk load error
Charly
Can you guys tell me why we are getting chunk load error
No, impossible to help without any detail
Zack Al murissi
ModuleNotFoundError : No module named 'encodings'
Maybe miss spilled name or you haven't made migration
ANIRUDH
Gys anyone know how to configure the docker compose and .env file ? My compose can't find the .env values becouse the .env file is inside of the user_service dir but when I put my .env same as my compose file it works well. Iam building microservice using django that's the reason I creating .env file for each service.
##00
Hello everyone, I wanted to host a project made with reactjs and Django, can someone explain this, I couldn't find it on youtube
🌺🌸🌎🌑🌌
Peace be upon you. Is there a way to recover a stolen .txt.requirement file if it was deleted by mistake?
Charly
Peace be upon you. Is there a way to recover a stolen .txt.requirement file if it was deleted by mistake?
Let this be a lesson for using a control version system. And from the python side no, you can try tools for your OS to recover deleted files. Or just reinstall known packages and hopefully versions will work.
cj
Peace be upon you. Is there a way to recover a stolen .txt.requirement file if it was deleted by mistake?
what do you mean by "stolen"... did you stole them from somebody? was it stolen from you by other people?
Дмитрий
This Will frees your currently activated env dependency in file
t
hello im strugling with a problem my Product model logic is such that if product saved it approve product status and also approve all images inline inside product from ProductImage it was fine until i added is_featured to images and now it updates product status to aproved and all other pending images status to approved except the featured image status remains pending here is my models.py: https://dpaste.org/kWThX
وافي
Is there knowledge base about Django easy from document Djangoproject ?
clouded
Is there knowledge base about Django easy from document Djangoproject ?
There is a comprehensive documentation, if that is what you are asking for.
وافي
Documentation is complex, I need easy documentation