Freddy
image cropping in django project?
Холод
I have in settings.py several databases are defined, I can choose the name of one of them on the client. Depending on the selected database, I need all the work to go through it. How to implement it?
Aristote
Hey! I would like to create my own and personalized authentification system. What can I do please!
Холод
Models are tied to the databases using routers
What if I have the same models for different databases
Холод
This is not managed by Django
Then what should I use for this? Depending on the choice on the client, I need to use the database that I choose
Muflone
Muflone
https://books.agiliq.com/projects/django-multi-tenant/en/latest/introduction.html
Muflone
Of course is a mess, not supported natively by Django
Холод
Of course is a mess, not supported natively by Django
But it's realizable, as I understand it
Muflone
Sure it is
Холод
Sure it is
I can do this with Using raw cursors with multiple databases in Django db routes? https://docs.djangoproject.com/en/4.2/topics/db/multi-db/#using-raw-cursors-with-multiple-databases
Muflone
https://docs.djangoproject.com/en/4.2/topics/db/multi-db/#manually-selecting-a-database-for-a-queryset
Холод
https://docs.djangoproject.com/en/4.2/topics/db/multi-db/#manually-selecting-a-database-for-a-queryset
Okay, every time you refer to the database in the code, use using('name_db')? Then what about the admin panel?
Jairaj
image cropping in django project?
I can help in that I have created a project in django rest framework that does this plus more image processing tasks such as orm
Jairaj
Then what should I use for this? Depending on the choice on the client, I need to use the database that I choose
I use multiple databases for multiple tables. But I'm not able to get what you are saying
Muflone
The book linked before has a lot of hints how to proceed, including having multiple indipendent processes running
NN
How to start learn Django framework. What you think about sentence 'Django bad solution for big business logic'
Doragonsureiyā
How to start learn Django framework. What you think about sentence 'Django bad solution for big business logic'
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rohit
*Netflix
Charly
Rohit
What?
Pure example of it
Charly
Pure example of it
Example of what?
Rohit
Regenerate again....
Charly
.... 🚶‍♂️🚶‍♂️
How Netflix is an example of leaning Django?
Sunil
I have created an api endpoint. What I need to do is that I have to upload a file (txt, pdf, etc.) and then in response instead of json I have to extract the text out of the file and show it as response whenever we upload a file using the endpoint
rahman
Django-admin startproject hello
rahman
It was showing error
Obsessed Programmers Team
Django has scope or not
The CAPN
Django has scope or not
Every thing has scope
Charly
It was showing error
We can't see your screen to see the error
The CAPN
Scope?
I think he means career scope
Charly
I think he means career scope
Ok let's wait for OP
Alaa
Hi there Can anyone help me to integrate my django API with a chrome exrension. Just see my code and tell me where is the problem
مريم خالد
how can I protect the view so no one will be able to use the url to navigate when I use dj-rest-auth with allauth
Alaa
SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 8880 and this is thread id 14348. how to resolve
Vipul
I want to create an API That will show a list of routes Using GET METHOD
Vipul
Can anyone advice?
Vipul
Can you send me any link or something?
Admin
Hi guys! Need your help. I’m working on Django project and want to import my python script file named as myscript.py in Django app views.py. Script file is in the django app directory. Error I’m getting is no module name found. How can I do that Tried following from .myscript import * Thanks in advance
Admin
Now its working thanks a lot.
:q!
Hi, a have a problem with session in django. I have 2 project on django: 1 with session authorization, and second with jwt. I login in first module and get session id. Where i authorization in second module by jwt, i get empty session_id and my older session_id removing, then i had logout from first module. What i have to do, that save session _id and have permissions to first project, also after authorization in second project
siarhei
that what?
watch and draw conclusions
! ermurat
hi guys, can you help? i can't understand why django calling wrong view when i'm trying to log-in or log-out Exception Type: DoesNotExist Exception Value: Category matching query does not exist. Exception Location: C:\Users\aynat\PycharmProjects\tilt\venv\lib\site-packages\django\db\models\query.py, line 637, in get Raised during: blog.views.category_list btw, calling view is just: logout(request) and redirect same with login
Saeid
sorry friends I want to know does chat GPT work today?? I think it is not working here "Germany" right now.
Doragonsureiyā
sorry friends I want to know does chat GPT work today?? I think it is not working here "Germany" right now.
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Felix
Hello I need some help working with sqlite3 Does any one have documentation on it covering things like Create, updating and viewing data bases
Doragonsureiyā
Hello I need some help working with sqlite3 Does any one have documentation on it covering things like Create, updating and viewing data bases
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
siarhei
there's a little bit there https://github.com/wnesbv/Bottle-gevent
siarhei
you can find it with a simple search, no need to ask in gp
https://github.com/wnesbv/Bottle-gevent
Anonymous
Whenever i go to run this command : pipenv install mysqlclient, i get this error message ERROR:pip.subprocessor:[present-rich] Getting requirements to build wheel exited with 1 [ResolutionFailure]: File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pipenv/utils/resolver.py", line 701, in resolve [ResolutionFailure]: raise ResolutionFailure(message=str(e)) [pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies. You can use $ pipenv run pip install <requirement_name> to bypass this mechanism, then run $ pipenv graph to inspect the versions actually installed in the virtualenv. Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: Getting requirements to build wheel exited with 1 However, when i use pipenv graph to check for dependencies i dont have any. Moreover, I have successfully downloaded mysql but for some reason, i cannot install mysql client. Any help on this matter will be appreciated. Thank you
,
hey, I am using planetscale database and getting this error: django.db.utils.OperationalError: (2026, "TLS/SSL error: no valid certificates were found, CAFile='/etc/ssl/certs/ca-certificates.crt', CAPath='<not set>'. O") Please help if anyone know...
Saleh2
Hello Friends, do you have any experience in this field, that there is a tool for creating a Django template that can create the ui graphically and drag and drop and automatically create and use the html css codes? (only to advance the front faster) In general, a package, a tool, or even an extension for Paycharm
Anonymous
Like an online django template editor? I think there might be for other templating libraries. You could always switch using them with a little bit of configuration
Saleh2
So why you are suing django if you don't want to code? You may use atro builder or similar
No, I have no problem with coding. But I want to focus more on the back-end and not lose time for front-end design
ERMIA
No, I have no problem with coding. But I want to focus more on the back-end and not lose time for front-end design
You may use astro or i bleive there is a package to convert you python oop code to ui similar to fluteer