Francis
Ak
Because i want to learn djnago and want some guidence
Ak
Okk
cj
Aakash
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?
Alexander
Muhammed emin
Leonard
Ashish
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?
Ewuru
Seun
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
Alexander
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.
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
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ā
Exclusive
I have multiple database. So, how to configure ORM queries?
Rohan
Mirco
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
Alexander
Alexander
Vaibhav
Ugochukwu
Hi guys pls I have a question
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.
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 ??
Mirco
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
Edmond
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?
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/
Edmond
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
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?
cj
Uday
cj
Doragonsureiyā
Uday
alright thanks
Uday
Uday
on the django part
Heigler Rocha
Yes, without DRF