Leonard
https://dpaste.org/vCGpG
Can anyone guide me in google meet. Please experienced developers only. Thank you.
Ak
Because i want to learn djnago and want some guidence
Doragonsureiyā
Because i want to learn djnago and want some guidence
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Ak
Okk
Ash
Hello all, I'm a full-stack web developer and I work with Django/DRF and React (and I absolutely love these 2 technologies). so in my team, we have data engineers, who do the data work, and also they usually create the tables directly in the database instead of creating the tables from the Django end. So what we usually (full-stack/backend engineers) do is, run the Django's inspectdb command, which generates the Django models from the DB (which data engineers have created the table) and add it to our [models.py](https://models.py) file. From the documentation what I've understood is Django's inspectdb command is for generating the models from the legacy DB and if we're creating a new project/new model it's always good if we do it from Django's [models.py](https://models.py) and run the migrations. So as per my understanding, I've been telling the data engineers that we'll create the models from our end instead of creating/modifying the tables since Django recommends to do it this way. Can you guys please tell me which is the recommended way to create the tables? Thank you in advance!
Aakash
Hello Guys, How can i combine a Detail View with a Create View?
API view, Viewsets and Modelviewsets are best options
Muhammed emin
In Django for example, I want users to take persistent actions without signing in so that the user saves a content without signing up and is never deleted, so that the user can see that he liked that content every time he enters it. I tried to do it with the browser ip, but it doesn't work because the ip has changed, how else can I do it? Or can you suggest a source?
Leonard
Can anyone guide me in google meet. Please experienced developers only. Thank you.
Please consider that I'm using Djongo driver for MongoDB connection.
Seun
I'm trying to loop objects from a model but I want the loop to start from the second object and stop at the 5th object not the last object. How can do this?
Seun
Customer.objects.all().[1:5]
Thanks so much dude👍
Alexander
can i do it to save the posts?
yeah.User can create posts or put likes based on his own session id.But if he delete his session info in browser, he can put likes and create new posts again.just check this video.https://youtu.be/RjykNmVdcgI
Ewuru
Thanks so much dude👍
You are welcome 🙇‍♂️
Anonymous
Hey guys, I was suspended from texting for a day, for asking on how to integrate django and ariadne. I don't understand why. Anyway, I will not let that bother me. To those who take their time to answer our questions. We're grateful.
Maxim
Hey guys, I was suspended from texting for a day, for asking on how to integrate django and ariadne. I don't understand why. Anyway, I will not let that bother me. To those who take their time to answer our questions. We're grateful.
1. it is not our practice to disable the ability to send messages 2. accordingly, in this group you can and could send messages 3. messages that get punished are deleted and the proof that you haven't been punished is that your message is still there: https://t.me/django/213300 4. this group is for thematic questions and answers only, all questions related to the rules and their violations are handled in a separate group i recommend that you: 1. make sure to delete your message (https://t.me/django/213430) 2. if you want to continue this conversation, find in the rules a group specifically intended for this 3. do not continue this discussion here
sunshine
How to Authenticate via social network in Django Rest Framework. I'm trying but not it not works when django doesn't render the template.
Exclusive
If you want authenticate with mobile apps
Exclusive
You can read firebase official dics
Dhruv
Use allauth Library
Leonard
What would be the best way to have a model which accespts list of dictionaries in django? I want to store the model data in mongodb and connector I'm using is djongo
Doragonsureiyā
What would be the best way to have a model which accespts list of dictionaries in django? I want to store the model data in mongodb and connector I'm using is djongo
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Exclusive
I have multiple database. So, how to configure ORM queries?
Mirco
I have multiple database. So, how to configure ORM queries?
Look for Django database routers on Google
Rohan
https://docs.djangoproject.com/en/4.0/topics/db/multi-db/
Rohan
Literally first result
Exclusive
Like, User.object.using()
Vaibhav
I am trying to add some external js file into one of the django template but it's not working for some reason.. not sure if we download it or what we do with it
Vaibhav
Ugochukwu
Hi guys pls I have a question
Maxim
Hi guys pls I have a question
just ask, don't announce
Brutus
data is dynamic i'm using as django variable
Ugochukwu
How do I get the initial value of a form field by calculating the value of another field. Example let say I have a form field for amount(in USD) and bitcoin equivalence. But I don't want to type in the bitcoin equivalent of the amount in USD, but rather calculate it from the current bitcoin rate
hello
Greetings to all. I recently began studying Django. I know very little about it. I want to work on a project with others so that I can fully grasp the some of Django main concept.
hello
thus if anyone is interested, please contact me.
Doragonsureiyā
Hi guys pls I have a question
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Gee
Hi all, I have a doubt plz clarify. I need to set databases- default-engine:'mssql' It is giving me error as "mssql isn't a backend database or cannot be imported. Use django.db.backends.xxx where xxx to any of sqlite, mysql, postgres, oracle". Kindly suggest. If kept as mysql, it says "lost connection during handshake" Plz help.
Brutus
hi, while updating an existing record in django it creates a new one instead. I'm having an manual id autofield set to primary key, tried using save, update added force_update = True to save all are just creating a new record. what could be the issue ??
Gee
I have to use mssql
Gee
But it's giving error as I said above
Mirco
I have to use mssql
https://docs.microsoft.com/en-us/samples/azure-samples/mssql-django-samples/mssql-django-samples/ but I suggest u to use Postgres if u can 😊
Gee
I have gone through this document...but it is giving error
Mirco
use Postgres, trust me :)
cj
I have to use mssql
is there any strong reason to use ms-sql? because that's gonna be a big headache wanting to use ms-sql with Python/Django, almost nobody uses that combination
Gee
I cloned an existing code. In it has DATABASES = { DEFAULT : { 'ENGINE' : 'mssql', }} ...but when I did .. python manage.py runserver -> I got "mssql isn't a backend database or cannot be imported. Use dango.db.backends.xxx, where xxx can be any of mysql, postgres, Oracle, sqlite3"
cj
Why? Is it more difficult?
no, just people don't care to support its connector and most of the times it doesn't work as expected, as I said, almost nobody uses ms-sql with Python/Django, thus nobody cares to update its connector, so nobody uses it, and we enter in an infinite loop here ¯\_(ツ)_/¯
عبد القيوم
Hi guys. I have a question. How can i pass data which was stored in database to js file. Because in my js file there is getData("./db/partners.json") function which was used. As far as i understand i need to pass data as database file. How can i achieve that. Can anyone help me. Thanks in advance
Dymitr
Hi guys I’m new in Django Can I join 2 tables using django.orm?
Carlos🇻🇪
Hi guys I’m new in Django Can I join 2 tables using django.orm?
If you have a relationship in the moldels.py then the ORM provide for the join
Dymitr
Do you have an example?
Carlos🇻🇪
Yes, a lot, on the django documentation pages https://docs.djangoproject.com/en/4.0/ expecially https://docs.djangoproject.com/en/4.0/intro/tutorial02/
Abdulrasheed
Hi guys Please I am developing a token project that gave investment. The problem is I have to perform a function after a specific model is saved. All what I want to do is that I want to increase the balance after 78 hrs without any admin clicking anything. I have search Google but can't find anyone
GMA
Hi, what can u recommend db for django?
GMA
Postgresql.
Thankx man🍻
Uday
has anyone here used djangochannelsrestframework?
Doragonsureiyā
has anyone here used djangochannelsrestframework?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Uday
is it better to go with the djangochannelsresframework or implement channels with rest framework manually? does the package provide anything extra over making all the views and consumers by yourself?
Uday
why do you want to overcomplicate using websockets with REST API? just use websockets and be happy ¯\_(ツ)_/¯
the frontend is written in flutter im also authenticating users and have the functionality of friends
cj
the frontend is written in flutter im also authenticating users and have the functionality of friends
you can make Flutter to connect and use websockets ¯\_(ツ)_/¯
Uday
you can make Flutter to connect and use websockets ¯\_(ツ)_/¯
right, thinking about it now, i dont think theres a need to connect rest to channels. so like create logic to just retrieve users and data through websockets for chat rooms, right?
Uday
alright thanks
Heigler Rocha
right, thinking about it now, i dont think theres a need to connect rest to channels. so like create logic to just retrieve users and data through websockets for chat rooms, right?
I had the same stack in a project, in fact, the most difficult part was to deal with state management and routes on flutter's side, since it's all about streams. But this is out of Django scope anyway
Uday
on the django part
Heigler Rocha
Yes, without DRF