Abhi
What changes I have to make, in order to convert this model which will work for postgres, I have used SQL lite but now working production server.
https://dpaste.org/e1C5J
If anybody know please let me know
iam
interesting
clouded
sea has been muted for 48 hours: rule #10
clouded
Sentence doubled for the expression of disliking and therefore still disrespecting the rules.
Abhi
Abhi
MH
Abhi
MH
open the data.json file make sure the file is in UTF-8 encoding.
Abhi
MH
Okk then
now just load the data in your new postgresql db with this command:
python manage.py loaddata data.json
just commend out the db sqlite setting. and don't delete the db.sqlite file.
configure your postgresql db and than the load data from data.json. That's it
Abhi
Abhi
I have another question will I have to change anything specially for postgres db in model
MH
Abhi
Pouya
hello,
I want to show my Photos inside of the ManyToManyFields when i select an item inside of the Django Admin Panel
Khaled
So make sure to use order by if the order is important for you instead of objects.all
ali
Do you know any good curses about dbs relational and non-relational???
Anonymous
After submitting a form the values inside the field which I input isn't changing after clicking on submit button. Help me
Abhi
Abhi
Because after fill the form the data is save
Anonymous
Никита
Hello world! Tell me, please, has anyone worked with CKEditor 5? It's just that I ran into a problem: if the form is loaded onto the page using htmx, the editor doesn't work. And if you just launch the page, then everything works
Никита
And another question, what if we use django ckeditor - 5 for the admin panel, and npm for the client ckeditor?
Anonymous
If you are a developer of this app, see error details.
Error 400: redirect_uri_mismatch
request details: redirect_uri=http://127.0.0.1:8000/google/login/callback/
Mirco
Anonymous
ali
Can I use session in api??
John.
Hello family. Anyone familiar with Django daraja integration specifically on c2b ?
Here is the problem, validation url and confirmation url are registered successfully but they are not invoked when a payment is made to the paybill. What could be the problem and how can i solve it?
ali
Mirco
ali
iam
iam
and i gave up on setting up upload file feature and i am pretty sure 2 different forms can be used for client and admin
eric
Guys can someone share their finished work (🔗 to your web) I wanna get inspired
Isaac
Hi everyone, please how do I create a Django model for a my view with a description, a photo and lastly a table with 5 rows and 6 columns. The model name is Series, but the table seems complicated for me to create, because I want the rows and columns to be dynamic eg sometimes 4 rows and 5 columns and also the table heading will change mostly according to the type of Series I’m creating creating. Please is my explanation understandable? Thanks
.
Isaac
.
Gor
Hello there, I have an input field and button, how to send the text of input field to the back-end when button is clicked??
Abhi
Abhi
In view file you have write code to save the data when user click on submit button the text automatically saved
Gor
i did everything in back, but I don't know front-end programming
Gor
that is the problem
Abhi
So use bootstrap there have already made template of forms and other things
Gor
ok, ths
Maxim
@AC_D2
offtopic flood
read only 48 hours
Никита
Hello everyone, please tell me if it makes sense to divide into separate applications (authorization and registration), personal account, settings
Muflone
Hamza
Hello everyone, I'm level here I started with Django 2 weeks ago and I need small projects to train please help me
David
Make a crud with differents models, work with diferrents types fields, make a filtering queries and custom pagination, then you can use JWT authentication and Google or facebook authentication
clouded
Professional has been muted for 48 hours: rule 10
Anonymous
Harsh
hey guys, I have created a django rest app for user registration and login with email and password, but i also want to integrate sign up/sign in with google option in it,
how should i do it
Harsh
i am creating backend restapi for a mobile application
Harsh
Also how should i create registration and login with phone number and otp
Khaled
Khaled
Rupan
I want to filter the nearby shops according to their location details which I stored on by data base in map is their any ways to do that.
Nishanth Siraj
Hi i use django rest api with react fronend . I got a error while doing Google login, it is "token invalid or expired" for all my testing accounts. I already added those accounts as test users. Chat gpt , Google didn't helped. So please help me 🙏
Rathish
Hello guys ,I am doing Crud operations to track expenses,back-end works fine in Admin I can do crud ,but for front end I cannot login it shows error,even for admin and members too,
Did I miss anything or is there a problem or error
Abhi
Lord
Антон
Hello people.
Moved a WORKING project to another drive on the computer. Now any request produces a 404 error: Page not found (404) No Account matches the given query. Moreover, it says that the corresponding path is in the URLs (The current path, */, matched the last one.).
Everything worked before the transfer, what could have broken?
Mouhamadou
Anonymous
I am using the Django-allauth library. The inbuilt signup form includes a Username field, which I do not want to use on the signup page. Instead, I want to generate the Username from the email address and save it in the database.
how i can do this?
Ehsan
I have a project that I am writing so that when a person enters a mobile number or email on the site and enters an ID, a four-digit code will be sent to him, but in the admin section of Django, he cannot enter the admin panel, it gives an error, please help me.
benshi
Abhi
Anonymous
san
Sagar
I'm trying to logout from django admin but it is giving error 405
Method not allowed
Can anyone help me with this?
umarxon
bloodyru MTS
Hello
I have 2 models
1 model is Categories (transport,services)
2 model Transport ( cars, cargo equipment, water technology) transport = models.ForeignKey(Transport, on_delete=models.CASCADE, null=True)
I want that it models will be in side bar drop-down list (tap on transport and the list splits with the second model)
How it ?
san