𝐄𝐫𝐟𝐚𝐧
I've been watching various videos and reading the official Django documentation for a few months now, but I don’t feel like I’ve made any real progress. I think this might be because I haven’t developed a deep understanding of Django yet. I want to truly understand the reasoning behind everything to learn it in a way that allows me to confidently write code on my own and build the things I want. I feel like I still haven’t figured out the right way to learn it. I’d really appreciate any guidance you can offer.
Mahmoud
I've been watching various videos and reading the official Django documentation for a few months now, but I don’t feel like I’ve made any real progress. I think this might be because I haven’t developed a deep understanding of Django yet. I want to truly understand the reasoning behind everything to learn it in a way that allows me to confidently write code on my own and build the things I want. I feel like I still haven’t figured out the right way to learn it. I’d really appreciate any guidance you can offer.
Learn by building a medium-level project. Write down the concepts you learn on paper and apply them one by one. Start by analyzing the project, then draw the ERD, and move on to creating the Django project. Learn how to organize your project files this is extremely important.
After that, build your models and use the best structure for your project. Use any AI you feel comfortable with to assist you, but never copy code without understanding it. Read it carefully, understand what it’s doing, then use it in your project.
AI is very helpful and designed to make our lives easier if we use it the right way.
The most important rule: never skip something you don’t understand.
Once you finish the project, you’ll have gained solid knowledge. Then do the same again with a bigger project, and keep going like that. Eventually, you’ll reach a point where you can build anything on your own with deep experience and confidence.
~~~
Hi all,
I am new to django, i am currently building one book listing app in django.in that currently i added the book listing, now i need to add filtering. How to implement search and filtering in django.
Which is the best way to add search and filters in django?
Alex
E
Hey. I have problem with n+1 and i don't know why. I tried to make prefetch but it does not hepled. I need this inline in GeographicalRegionAdmin to add countries there.
https://dpaste.org/KD9WH
H0scein
Ibrohim
CHANDRU S
π-meson
Any resource for django channels iot protocol.
π-meson
Django channels is a package that allows django to support protocols other than https some of them are websocket , chatbot and iot I just want to know is there any resource like blog , article , tutorial, book where I can learn about how django apo can communicate with iot devices using iot protocol
cj
π-meson
https://channels.readthedocs.io/en/latest/
Read this
π-meson
What are the other options
Charly
π-meson
Thanks
cj
https://channels.readthedocs.io/en/latest/
Read this
you are the one that should read that... "IoT protocols" means, the protocols used in an IoT environment, it doesn't mean IoT is a protocol itself...
by the way, do you even know what IoT means?
Angle
Hello Every Developer,
what is the best affordable Hosting service for python project?
tried Digital ocean but it costs alot ,
Hetzner blocked my account before registration
so any other affordable service ? what about Vultr?
Charly
Angle
HAve you checked the prices of vultr?
checked already but how it is compared to Digital ocean?
which one is prefered if i will deploy few scripts and flask scripts not heavy projects
Charly
Stephen
Hello Devs, i have been using ckeditor but now its no longer maintained, which is the best alternatives out here... i have tried markdownx, markdown-ng and these didnt work for me
Charly
Angle
Charly
You can use any service, some will offer some specs other not. Is not that one is the preffered, use the one that works for you.
Aditya
hello guys , currently im llearning pyhton , so along wit can i learn django also ?
Deepak
Hi Aliens, can anyone confirm how to deploy django application on web Free. Is there any site or tool ? Kubernete, docker. AWS rms all are costly
Charly
Deepak
Sivaraj
Suggest any low cost VPS providers?
👑 Dharmzeey
Hetzner
Neo
Hetzner will hold your grandma hostage for 5 euros
Neo
but they are a cost effective vps solution
Neo
oracle provides a low resource vps instance free forever but good luck getting them to accept your credit card
Neo
and i think azure gives you enough credits for a vps instance for 12 months
Alex
Hi everyone! Good afternoon.
Doragonsureiyā
Hi everyone! Good afternoon.
"Hi", "hello" and all other socializing goes to @pythonofftopic! Feel free to chat there, and ask for help with Python code here. Don't forget to delete your message from this group!
🏅♐Mark
🏅♐Mark
Charly
🏅♐Mark
🏅♐Mark
🏅♐Mark
E
In our Django project, we have two apps: company and asset. Each app contains a service class:
AbstractCompanyDigestService - company app
AbstractAssetDigestService - asset app
Both of these classes should inherit from a common abstract base class (e.g. AbstractDigestService) and many other abstractions in between.
My question is:
Where is the best place to define this shared abstract class, from an architectural and Django best practices point of view?
Should it be:
- In one of the existing apps (e.g. move it to company or asset)?
- In a dedicated common or shared app?
- In a services package at the project level?
Are there any conventions or principles (e.g. from DDD, Django architecture patterns) that guide such decisions?
Ahithophel
hi, anyone with a tutorial on how to host a django app on a VPS, and how to have have django and flutter work together as a stack ?
Only
Only
IM~Exynos
clouded
Yeah, why answer the question if we can introduce different frameworks and even different languages and thereby add to the confusion instead of resolving it?
Stock man
Hello guys please guide me for django new project setup from beginning.
Charly
Stock man
But where from.
Charly
But where from.
So you didn't even search on Google for Django to know where is the official website?
Pablo
Stock man
Stock man
Doragonsureiyā
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.
Alexander
Hi, could anyone provide best practices creating ids for Model, should be Sync with external api.
Example:
BOOK Api has an endpoint Book with book_id inside. I'm going to create an Book Model and also going to use the same book_id for relations. Should i set then book_id as a PK or its better to leave default id and add book_id as additional field? Thank you!
The Inspired
Saman
Noddy
Shainkey
Hello team
I have added on column that is active as boolean field and default it's True. But when the request hit from php side and does pass any is active field from raw SQL query it's is changing to false in django orm it's working fine not changing True to false. Is there an any solution for that one?
▓▒░ 𝗗𝗲𝗺𝗶𝗴𝟬𝗱_𝗦𝗹𝘆 ░▒▓
clouded
clouded
Shainkey
Not able to send the screen shot I can send you while writing here
is_active=models.BooleanField(default=True)
Charly
Charly
Shainkey
Actually while inserting data I haven't pass is_active key default it's true but when data is inserted it's automatically change to false. This is my issue.
Shainkey
If I sending data from orm it's doesn't change only changes using raw SQL query that is send from PHP side.
Charly