Karthik
Doragonsureiyā
Brothers any suggest a better youtube channel or any playlist to learn django from scratch
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
User
looks more like you're doing a very bad design of your app
But this is the task I'm working with.i used mysql connector to create an db and tables inside of my django app
Eric
What if i have 300 clients with 300 different dbs? How can I be able to authenticate them?
you will have to explain the app you are trying to build in more detail for us to give you better advice. but Google stack overflow for Muilti Database Django. and then for the actual user logins you have a single database that keeps the user profiles rather than trying to keep user profiles in the per client DBs
Eric
looks more like you're doing a very bad design of your app
Unfortunately I agree with this. The idea doesn't seem to be architected well.
Eric
But this is the task I'm working with.i used mysql connector to create an db and tables inside of my django app
Could you explain where the requirement to have individual per-client DBs comes from? why is that a requirement?
User
Could you explain where the requirement to have individual per-client DBs comes from? why is that a requirement?
Who else my boss told me to do that. Is that anything wrong with the design?
cj
But this is the task I'm working with.i used mysql connector to create an db and tables inside of my django app
I stand with my point of view that you're doing a very bad design of your app, you'd better stop writing code and re-design the architecture of your app
Eric
Who else my boss told me to do that. Is that anything wrong with the design?
https://developers.redhat.com/articles/2022/05/09/approaches-implementing-multi-tenancy-saas-applications
Mehrdad
Hi, Is there any sample code to implement master/detail in django?
Eric
Okay
You could also do what this guy did: https://www.bbc.com/news/technology-21043693 and get someone in this group to build it for you 😅
Mehrdad
What are you talking about?
i need a form, above there is a tab control and inside it is a grid that comes from a master table below it there is another tab control and inside that also there is a grid that holds data from detail info of that header in above whenever user scroll down the header grid, the detail grid shows related details of that header am i clear?
Lalit
For OTP authentication which third party should I use
Mirco
For OTP authentication which third party should I use
https://pypi.org/project/django-otp/
Balde
i want to know how to convert html file to pdf with django
Pratap
Hii everyone I have a issue with django admin panel looks so weird how can i fix it anyone help me
Gaurav
Hay i am kind of new in django and react too but I had a project of mlm site so can anybody help me with that like Should I make app for every diff. Role like admin, distributor,and moderator and also tell me where to make these deshboard of each role like in react
Gaurav
Ya I did that
Gaurav
But now I have prob. In logic like i had a site in c# and I am converting it into react and django
Gaurav
Now
Prasanna
Hello,I am new to django project.i already have done small Project in codeignitor..I need to add data dynamic and save data to database means.i have tried many scripts but failed...so anybody help
Prasanna
I have four form in single html page.if i submit first form means data to be saved and move to next tab.. anybody help...2days I am struggling
Jan
Hii everyone I have a issue with django admin panel looks so weird how can i fix it anyone help me
You need to change ALLOWED_HOSTS IN settings.py to 127.0.0.1 if you are running on localhost.
Alaa
Hey guys I'm working on chrome extension for spell check as when it's find a mispelled word it should be underlined and a context menue displayed my api is django and its working the extension is sending the request successfully but some how no underlined mispelled words or a context menue displayed
ERMIA
What the fuck?django is backend framework while react is a library
Abuya
No you can't use django in react without creating api because django is a framework
Muflone
This doesn't change the facts
Abuya
It is not an advisable way to write code
Muflone
YouTube for learning is always LOL
Suren
Hello, page_obj.paginator.count counts all articles, how can I make it that way that article which is not active not counted?
Balde
Guys who want to do a django project as a group. And I am new to django and programming. So we need someone to organize and give direction.
ROG 💻
No you can't use django in react without creating api because django is a framework
I already have a functional Django project and what I would like is to use it with React, for example, what should I do in my project to install DRF and serialize the already existing models that I have?
Muflone
Azimov
hi i need help The following error occurs in Django when I add information to the database from the admin panel OverflowError at /admin/core/product/add/ Python int too large to convert to C ssize_t
Juan
Hosting free or cheap for django?
Muflone
Hosting free or cheap for django?
Python Anywhere (with limitations)
Naggafin
question for all: has anyone experienced an odd issue when writing a django TestCase class where you create an object (say, User) and then add other objects to one of its M2M fields (say, Permission on User.user_permissions, via the add() function) only to have it appear blank when querying from a test function? i.e., if I make a user object in setUpTestData(), and add permissions to it via user.user_permissions.add(perm), then check it at the end of setUpTestData(), everything looks as expected. BUT, when it goes to running tests, and THEN I check it, using user.has_perm() or even user.user_permissions.all(), I get nothing. literally as if I'd never added it. I am using TestCase, so the data should not be changing from test to test because they're wrapped in transactions. I'm completely lost at this. has anyone else experienced the same issue? PS: the super weird thing is that if I perform a check inside of another function called by the test function (for example, a View class' handler methods), THEN it shows! I mean if I do MyView.as_view()(request) then check request.user.user_permissions.all(), they show! but request.user and user are the SAME instance. I don't understand :(
Naggafin
Hosting free or cheap for django?
contabo does vps rentals for $8/mo. that's very inexpensive all things considering. you could rent a bare bone vps then setup your django env yourself on it. you'd need to configure apache and all that yourself though. it can be pretty technical if you don't have experience with Linux sys admin stuff
Naggafin
I already have a functional Django project and what I would like is to use it with React, for example, what should I do in my project to install DRF and serialize the already existing models that I have?
I don't know what design paradigms you need for your project, but before you consider react, I would suggest you look into htmx and alpinejs first as they integrate much better with django server side rendering model. with react, you're pretty much forced to abandon django's templating system almost entirely, instead writing a heavy frontend to handle UI transformations w/ json data (usually). it's an awfully time consuming thing to go through and it decouples your code base, which is not good
Naggafin
hi i need help The following error occurs in Django when I add information to the database from the admin panel OverflowError at /admin/core/product/add/ Python int too large to convert to C ssize_t
are you using c_types? keep in mind too that some db's have limits at the sizes of integers they can store. tell what version of Python you are using too
Sandip
In my pc i have installed django-otp but when i try to makemigrations it shows me 'no django-otp model found
Naggafin
In my pc i have installed django-otp but when i try to makemigrations it shows me 'no django-otp model found
is it in INSTALLED_APPS? be more detailed please. what did you try to fix this issue yourself?
Sandip
Yes
Andrej
Sandip
Yes
Naggafin
have you gone thru their documentation? if you're having this problem with a standard setup, chances are very high someone else also has had it, enough to the point where a solution maybe in the docs
Andrej
In my pc i have installed django-otp but when i try to makemigrations it shows me 'no django-otp model found
Have you used the same settings for the run migration and runterbetest command?
Sandip
Yes
Andrej
Runserver command'
Sandip
Setting which creates at the time of project creation
Sandip
No i haven't try runserver command
Sandip
Could you please wait for 5 min i will check
Naggafin
yes. something also to think about: did you truncate any database tables manually? if django's tables register that django-otp has been migrated, but in actuality the table for it was truncated or deleted, then you will get that error
Sandip
It still shows no module name django-otp
Sandip
Shall i share my code
Naggafin
It still shows no module name django-otp
this is a Python runtime error, not a db error. it means you do not have the module installed. install with pip sir
Sandip
How can i
Naggafin
Shall i share my code
no, not for an import error. it means you need to install the stated module with pip
Sandip
I have installed pip saperate env and also global
Naggafin
How can i
https://django-otp-official.readthedocs.io/en/stable/overview.html#installation
Naggafin
pip install django-otp
Sandip
for now i will read this documentation
Sandip
thanks to you
Naggafin
you are welcome
Sandip
wait