Mirco
Bujji Hemanth
i did but no use
Y
Hi I give youtube url in my input after in backend I download that video with pytube but video downloaded to server but I want to that video download client computer. How can do I ?
cj
George
tushar
Data="date eq 2016-05-01 AND distance gt 20 OR distance lt 10"
How can I pass this in
Mymodel.objects.filter(data)
Return queryset
Valentin
Hello Group
Valentin
Could You recommend and advance Django Course
R
I was creating a database using Django Orm...but models I imported on Models.py doesn't work..when I make migrations my objects are not storing in tables...what to do can anyone help?
rr
rr
Common mistake
R
R
R
In views.py when I am calling objects and changing it...it is not changing
R
For some reason models imported on Models.py not working
R
In Database I'd column is created after migration
rr
R
rr
No need to do any thing at first, when you run migrate it will automatically create tables for you and then ready to go.
So if you can manipulate data it means that there is a problem in your implementation. Check out docs. Just google django models
DL
R
DL
Because I send a script that clears all migrations and the entire database as if it started.
R
Actually when I didn't pass models.Model in class my model was not even activated in Vs code it is like blurred and after adding models.Model it is activated but not performing
DL
What you want to tell me, is that your models are wrong?
DL
Is your db sqlite?
DL
What error comes out in the terminal?
R
DL
show me your database configuration in settings.py
DL
I suggest you momentarily switch to the sqlite db that comes with django, if everything works then you know where the problem is
DL
you already have psycopg2-binary installed
DL
pip install psycopg2-binary
DL
This is for postgres
Pay2mate
Need help in getting some APIs done for our payments engine https://pay2mate.com
R
R
Doragonsureiyā
How? Should I Dm?
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
R
How can I paste from my Pc to my phone
Maxim
or just install Telegram Desktop
Sai
Hi keyclock add user not working for me. Followed the docs, still not getting the token. Response I getting is Invalid Credentials
इमरान عمران Imran
Has anyone worked with Constance
Anu
Hi...can anyone please say ...ORM query to get first five records from table?
Doragonsureiyā
Has anyone worked with Constance
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
Azizbek Xushnazarov
I have a problem with Postgresql database connection.
In settings.py I have set postgresql server as a default database.
But when I deploy the project to heroku, it is creating a sqlite db and using it.
I have no idea why this is happening.
Azizbek Xushnazarov
Shyam
Hello guys I am getting error in project url file importerror "can not name url from django.conf.urls"
Anu
Anonymous
The data should be encrypted in database while retrieve it should be actual data how to do this... I tried my way if anyone worked on it happy to discuss database postgres
Tanner
𝙸𝙱𝚁𝙰𝙷𝙸𝙼
web
How can i do "archive_year" for example in a school system,that display only (2021/2022) students,teachers data and keep past shool years data as archive..
can i get tutorial about that ?
i have searched many times but not get what i need ..!
Tanner
𝙸𝙱𝚁𝙰𝙷𝙸𝙼
Sure!
I have already database postegreSQL and I wanna to connection with django
𝙸𝙱𝚁𝙰𝙷𝙸𝙼
Tanner
What I should do?
Just need to configure the DATABASES dictionary in your settings - you’ll need login credentials, host, port etc
𝙸𝙱𝚁𝙰𝙷𝙸𝙼
Tanner
In prod, if you’re doing a containerized approach with heroku or Dokku or something which is definitely nice, use Dj database url to generate those settings automatically
Sai
Вова
Hello everyone!
I have a problem - there is an authorization form on my site, after the user enters his data (login and password), he goes to his profile page, from where other actions are available to him (for example, creating his own post). I have a question - how can I save user data (login and password) when going to the page to create a post?(i.e. transfer them to the next page)
Azizbek Xushnazarov
Вова
Mohammad Hossein
Hello everyone,
How I can just use slug for all urls in django without anything before or after?
Ex:
path('<slug:slug>' , Article.as_View(), name="articledetail"),
path('<slug:slug>', Category.as_View(), name="category"),
Amal
In my django form made from models, FileField (FileUpload is not working) is not getting submitted to database! I am using Microsoft azure blob. Files are getting stored to azure when I manually upload in the admin panel, but it does not work on form submission.
Amal
Manpreet
Iam
Hey! I am getting an error during my first migration. I executed makemigrations first, and then during migration i get a "TypeError: list indices must be integers or slices, not str" @ File ".../django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params). I am guessing that its not a Django error since I am not seeing anyone with the same issue on the web but its also not pointing me to anything particular to my code at all. (i am using postgres but it works fine with sqlite)
Yergali
Hello. I also came across when passed the wrong type. Look it might help
https://stackoverflow.com/questions/32554527/typeerror-list-indices-must-be-integers-or-slices-not-str?rq=1
Iam
yeah i read up on that earlier but the migrate command generates the parameters and calls the function
Iam
and the error doesnt identify any code values that i may have provided that are causing the error
Anonymous
How is set fcm django server key
Kalandhar
1. Admin/
2.
The empty path didn't match any of these