Bujji Hemanth
i did but no use
Mirco
i did but no use
read it better and try to understand
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 ?
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
Doragonsureiyā
Could You recommend and advance Django Course
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Common mistake
JL
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?
Did you do "migrate", after "makemigrations". Is It the App registered and data base properly configured? If all of this is checked... Is the folder migrations created and has content?
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
Have you integrated your database in Settings.py ?
Everything is integrates... migrations also done but it is making only one column that is default column of Id
R
In Database I'd column is created after migration
R
Ok There is an error in your implementation
How to check it please give solution
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
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
What error comes out in the terminal?
No errors that's what the problem is
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
Doragonsureiyā
Need help in getting some APIs done for our payments engine https://pay2mate.com
Rule 🔟: Job-related offers are only allowed in the offtopic group. To not be considered spam, Job offers must include: • Skillset/techstack • Contact information • Brief job description • Pay figure • And can only be posted in @PythonOfftopic.
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
Charly
How can I paste from my Pc to my phone
Paste it in your computer, then send the link to your 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.
Shyam
Hello guys I am getting error in project url file importerror "can not name url from django.conf.urls"
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
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 ..!
𝙸𝙱𝚁𝙰𝙷𝙸𝙼
Sure!
I have already database postegreSQL and I wanna to connection with django
Klaus
What I should do?
Change the settings of the database in settings.py
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
Azizbek Xushnazarov
Make sure you create a postgreSQL container and configure your production settings to use it, likely with dj_database_url
I just realized that heroku has created a postgresql database for me and using it. After deleting the database from heroku. it started to use my database as defined in settings.py lol.
Anonymous
You mean total data?
Specific fields from column
Вова
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)
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.
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