Ajn
hi, I have a requirement in which I need to implement multi tenancy with the isolated database approach i.e. each and every tenant will have its own database. I will have a master db in which we store all the tenant data and from the master db we will route the tenant to it's appropriate tenant database. so my question is can we implement this architecture using Django and mysql being the database, ie I have to route to the tenant db without hitting the master db, is this possible? I saw the source by saying that It is doable but I can't risk my time on implementing it without knowing whether it will fail or not, because this is an urgent requirement.
Hamzat
Have you hosted it on pythonanywhere.com or local
No It's still on my local machine
Mr
No It's still on my local machine
The issue could be internet connection or wrong port number, are you using django email packages or smtplib
Hamzat
The issue could be internet connection or wrong port number, are you using django email packages or smtplib
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = 'myemail@gmail.com' EMAIL_HOST_PASSWORD = '**** **** **** ****'
MR Nemo
Hi, How to use annotate whithout related name? because when i add data(example 10) into annotate i got an error: QuerySet.annotate recived non-expression:
park seo joon
https://hastebin.com/share/iragiyilas.python In this implementation though I'm not getting any error but just want to know if I'm on the right track
ishaan
I am trying to upload a word document and extracts it's content to auto fill the relevant fields.But I am unable to do it for table of contents
Charlie
As a beginner, where can I go to learn django system, please be specific
Doragonsureiyā
As a beginner, where can I go to learn django system, please be specific
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Brown
Which approach offers better performance: using 5 different views to handle similar functionalities, or using a single view to manage all 5 functionalities?
Paulo
Hi, guys! I'm a beginner in Django and I just finished a Django course (e-commerce project). I would like know if this is enough to start looking a for job as a junior Django developer.
Yagi
can you run migrations / migrate even while python manage.py runserver is running?
Yagi
is it bad practice
Yagi
my app broke
Vijay
I am trying to create a custom signal in Django but again and again i am getting a TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args' in my terminal. from django.dispatch import Signal, receiver custom_signal = Signal(providing_args=["message"]) @receiver(custom_signal) def custom_signal_receiver(sender, **kwargs): message = kwargs.get('message', 'No message provided') print(f"Custom signal received with message: {message}" # this is the code
Charly
my app broke
What exactly happened?
Charly
I mean it is not a problem if your app dies locally because on production you don't use manage.oy
Vijay
Can somebody please tell me why i am getting this error message in my terminal
Charly
Can somebody please tell me why i am getting this error message in my terminal
Because providing_args is not a valid argument. Have you checked the documentation or copied the code form an old tutorial or an LLM?
Vijay
Because providing_args is not a valid argument. Have you checked the documentation or copied the code form an old tutorial or an LLM?
No, i haven't checked the documentation, Yeah I was watching old tutorial so i tried to create to custom signal by my own
L¿<>
Dont use signals Better way Celery
Vijay
No, i haven&#39;t checked the documentation, Yeah I was watching old tutorial so i tried to create to custom signal by my own
actually, i don&#39;t know about Celery so can you send documentation or some videos link of Celery
Charly
Dont use signals Better way Celery
These have totally different purposes, and as we dont have context you should not recommend to change
Charly
ishaan
I am trying to upload a word file in my django model and auto fill my django field according to headers of that word file. for example my word file has four sections, research methodology frequent asked question table of content market overview so based on these headers I m trying to split and send it to my django field while maintaining the html styling. I have almost implemented it but for toc and some section it&#39;s not working properly
ishaan
has anyone worked on anything similar to this, plzz help
Vijay
Then you know what to do then 👍
I don&#39;t know what to do please suggest me something
Vijay
I bet you can get it in 10 seconds of google, be more proactive
Can you suggest me something how can i be more proactive in django
Charly
Can you suggest me something how can i be more proactive in django
Proactive searching things you don&#39;t know
Vijay
Proactive searching things you don&#39;t know
I don&#39;t know how to search like a proactive I normally search on google
Vijay
or Youtube
Charly
Yes
Honestly I don&#39;t know how you expect me to show you how to read
Vijay
Honestly I don&#39;t know how you expect me to show you how to read
sometimes documentation is very hard to understand at that moment iIgets confused so what should I do at that moment according to you
aytan
Honestly I don&#39;t know how you expect me to show you how to read
Can you tell me what is the best way to learn,Django.! Want to start learning,Very well+ Doc? Course? Thank&#39;s
George
Where!?
Django has an official website, its there
Doragonsureiyā
Where!?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Sahnoon
in oder to learn django is it compulsory to have solid knowledge on data structure and algorithm ?
Vergo
Any book available here?
Doragonsureiyā
Any book available here?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Самандар Шынназаров
Error: Unexpected server response: 404 Handshake Details Request Method: GET Status Code: 404 Not Found Request Headers Sec-WebSocket-Version: 13 please solution in django channels, uvicorn,nginx
Amir
How can I fix this problem
Amir
diango.utis not supported Errors Mariadb 10.5 or later is required ,(found 10.4.32)
Amir
What is a command?
MR Nemo
What is a command?
First: pip uninstall django Second: pip install django==version number
Nima
I have a problem of relative import error please help me 🙏🙏
Doragonsureiyā
I have a problem of relative import error please help me 🙏🙏
This is not a Django specific question, please delete your offtopic message. If it&#39;s a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
AZ
I have a contact page. On the contact page I have a form So when users fill the form, I want it to send the message to my email
Ok if you want to do that you should create a new email then send this info to your email, by doing this it should works
Text
Hello, in my Django project, I cannot see the products I added from my admin panel on my page, and I do not receive any error messages. hepl please
Toni
The views
Toni
Check the context
Toni
Then check the template. Make sure u r sending the same value from the context to the template
ali
need some help to solve a little problem for my django task.who can help?
Monkey.D
how can i learn django free and fast ??