Almaz
......
In a machine learning based project, I need acces to camera for estimating length of ulna my model is ready but how do I do it with django at the backend and react at the front end?
Almaz
Nayan
Nayan
I couldn't able to find how to use absolute path with upload_to
Nayan
If anybody know could you please help me how can i use absolute path instead of relative path with upload_to
Maxim
Stark
you can use it for me
Ionut
how do i edit an image field?
Alex
Ionut
Alex
Update
https://docs.djangoproject.com/en/3.2/ref/models/fields/#filefield-and-fieldfile
https://stackoverflow.com/questions/4787141/django-how-to-replace-overwrite-update-change-a-file-of-filefield
Брат
Update
Alex literally googled it for ya)
Огни
Greetings. I need help in understanding the Django.
I want to do something like research tree: research area -> research direction -> list of elements
I assume that there will be about 4 areas, no more than 8 directions in each area, and then there are connected lists in the areas, as I said, like skill trees in games
and here are my questions
1. How i can link models together? I'm confused about the connections of the tables like many-to-many etc
2. for that i need to make an app for each tree part? or i can insert models & views into one app, is it a clean tone?
Sanjay Krishnan
Sanjay Krishnan
Огни
Sanjay Krishnan
Or you can use three models
Огни
everything will rest on the size of the selected line field
Sanjay Krishnan
1 model for area
1 model for direction
You have to decide whether to add a new model named element or add a charfield in direction and record that.
Огни
the field is not suitable because additional information will be stored there
Огни
Sanjay Krishnan
Огни
but how i can link elements into directions?
Огни
one-to-many?
Sanjay Krishnan
Put foreign key of direction in element model
Огни
elems will have to have an order
Sanjay Krishnan
Add that also as FK
Огни
Okay, I'll try to do it. I hope that no new questions will arise. thx
Anonymous
Anonymous
Any documents is available for the process?
Prakhar de
Aman Jain
Why Djongo slow when use mondodb
Rishu
Thanks Luvis
github.com/akjasim/codeband-django-heroku
Unique@pp++
Thanks Luvis
Herokuu it's like a github --- where you can upload your project regarding backend development.
Jitendra Kumar
How to read .dat file ?
игорь/igor
игорь/igor
People, please don't DM other group members. I don't have time to deal with your errors/problems.
игорь/igor
All the stuff you sent in private just send it here, explaining clearly
Alex
Celery has an entire article about it in it's doc
Maxim
hint: don't put the same requests in multiple groups - remove them where they are not needed
Ethan
Ok
Sergey
Good day everyone! I have another service that will work as callback, how can I manage with it?
Alex
Doragonsureiyā
Good day everyone! I have another service that will work as callback, how can I manage with it?
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
Poppu
How can I override over default Django authentication with firebase authentication with Phone, Google, Facebook, Email?
I planned to build a mobile application where I used firebase for authentication ( why firebase because with this I can easily access cloud databases, more control over ads, analytics, testing, and distribution )
But the rest of the things I planned to used Postgres / MongoDB and Django ( why Django it's easy to build pre-build admin panel and manage )
But the problem is that how can I control my Django authentication because 90 to 95 % of databases are stored in Django so I also need that authentication so we can get more control over data with security
Like we have a comment, like, a poll system in my application, and the data are stored in Django. So if we have a users model in Django so we can easily map the data in Django otherwise it's taken a lot of effort and it also compromises the security.
Note: there might be one solution is there but I don't want to use that because it makes an application is more complex and it also has security issues. The solution is to create a custom Django model and implements Google authentication with the rest framework which we are normally doing and on the mobile side whenever new uses create via firebase simultaneously can Django authentication API so it authentically creates a user in Django also
But the problem with that there are unwanted space utilizes because the user is already created on firebase so why do we waste our memories here or what happened if some kind of network error occurred on any one side?
And the second solution which I personally like but I don't know I possible or not firebase is nothing just a Google cloud platform everything is happening of firebase are stored in Google cloud platform so is it possible to can directly fetch user from GCP rather than create a new one.
Thanks
ADI
i ma creating one project i.e resume project but unfortunaitly my images not dispaly i ma using 3.0 django version
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/media/images/adi_ftjdJGx.png
Raised by: django.views.static.serve
“C:\Users\akuma\Desktop\deployment\resume\DjangoADIResumeProject\media\images\adi_ftjdJGx.png” does not exist
///////////////guid me any one//////////////////////
Deepak
add images to static folder
Вин Король Саксов
You can generate unique ids per user with uuid and store them in sessions/cookies/local storage
Sanjarbek
hello
[Service]
User=buxoro
Group=www-data
WorkingDirectory=/home/sanjar/O'rmonTexnoServis/buxoro/BuxoroITS_2.0
ExecStart=/home/sanjar/O'rmonTexnoServis/buxoro/BuxoroITS/venv/bin/gunicorn \
--access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
config.wsgi:application
Sanjarbek
/home/sanjar/O'rmonTexnoServis/BuxoroITS_2.0 its pwd project
Poppu
Can we setup this without rest framework https://www.oscaralsing.com/firebase-authentication-in-django/
Dk
I'm using multi tenant schemas (subdomain) , how to create superuser for every subdomain in django
Eng.Ra'ed Al-Omisi
Hi
What is the structure of python?
Anonymous
How do I please fix the "Cannot resolve keyword 'published' into field." when i try to create a custom manager
Anonymous
I seems to follow the documentation procedure, but still don't where the error is coming from. Could some please assist me ?
Брат
Hey backend developers! How I can set up the start of ID = 100000, I mean I don't wanna my ID starting from 0
id = models.AutoField(default = 1000000, primary_key=True)
default didn't work and whenever you add something new it just replaces it and you got only 1 object, it doesn't increase
Alex
Брат
Вин Король Саксов
Depends how you implement, and what you want
Alex
Thank you mate☺️
for mysql it's smt like this
https://stackoverflow.com/questions/1485668/how-to-set-initial-value-and-auto-increment-in-mysql
Брат
Брат
I appreciate that
Tamojit
Any teachers are here??
Anonymous
I have lot of fields in a querset object and want to run a loop to be presented these fields as two column table ..how can I acheive this? Any direct code that I can use?
Najim patel
What do you do after DRF Rest API??
we created Rest API then test postman
Najim patel
Najim patel
How to connect another API to drf??
Example indian whether application, Google map this API we have to do that in drf projects
Najim patel
@AzikDev thanks
Ramadhan
Hi guys, i just started learning django but i got "django-admin is not recognize"
I already install django, using virtual env, and i already setting up my environment variable. But it's not working
Azizbek Xushnazarov