𝐄𝐫𝐟𝐚𝐧
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?
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
π-meson
Any resource for django channels iot protocol.
Charly
Any resource for django channels iot protocol.
django channels is not an iot protocol, can you explain what do you mean?
π-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
π-meson
https://channels.readthedocs.io/en/latest/ Read this
Charly
https://channels.readthedocs.io/en/latest/ Read this
IoT protocols is not the same as IoT Protocol, and I dont know aboutpeople using channels without Websockets, I really thik there are better options than django channels for IoT
π-meson
What are the other options
π-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?
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
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
Is not like one isprffered, maybe you can say digital ocean has more products an reputation but vultr should work
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
Angle
Is not like one isprffered, maybe you can say digital ocean has more products an reputation but vultr should work
thanks alot , i checked Vultr it is good but Contabo " german hosting service " offer 32 Tb bandwidth while Vultr offer only 1tb for the same price
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.
Charly
yes at least 5 tb
So that thing about afew scripts was not true
Aditya
hello guys , currently im llearning pyhton , so along wit can i learn django also ?
Hima
hello guys , currently im llearning pyhton , so along wit can i learn django also ?
Stick with python. Make yourself at home with OOP and Http methods and you are good to start with django.
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
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
Cloud providers have free tiers that to could use even if these are costly. Otherwise try render or pythonanywhere
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
Suryo Adhy Chandra
pythonanywhere is very slow
slow in what? i am always using pythonanywhere 😃
🏅♐Mark
Suryo Adhy Chandra
Okay,but I said from my experience
you try the paid version? you can add more worker here.
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 ?
SKG
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 ?
Depends on the web server configuration u would like to use , whether nginx or apache , cus most works with nginx and u need to configure the static files well .
Professor
Why django and flutter? You can try fastapi and flutter.
Why fastapi and flutter , You can try spring boot and jetpack compose
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?
clouded
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 ?
You can get content from Django using Flutter when creating an API to do so. Django REST framework is a popular solution to do so.
Stock man
Hello guys please guide me for django new project setup from beginning.
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
Hello guys please guide me for django new project setup from beginning.
https://docs.djangoproject.com/en/5.2/intro/tutorial01/
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!
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?
Shainkey
Not able to send the screen shot I can send you while writing here is_active=models.BooleanField(default=True)
Charly
Not able to send the screen shot I can send you while writing here is_active=models.BooleanField(default=True)
Also this doesn't say anything show the code where you are calling raw sql which may have the issue
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.