𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Use sp takes us a lot of time
t
hello
i want to deploy my app to cloud with docker and i use this repo
https://github.com/LondonAppDeveloper/django-docker-deployment-with-https-using-letsencrypt
but i get errors so much errors
any tutorial to containerize django app with redis celery postgresql certbot ?
aditya
1. Consider a situation where you need to migrate your database from MySQL to Postgresql , but at the same time live data for your site from users keep on coming, without downtime how would you migrate?
2. In production, migrations folder is deleted (database is still alive) so, if you want to change the table schema then how did you do that ? (Because current changes depends on previous migration)
cj
Priyanshu Pratap
I am assigned with a project and there are multiple endpoints like to register user there is endpoint to fetch the data of user there is also endpoint and it is said to secure the endpoints using token authentication...how can i do with it JWT ( I am new to this topic )like if i create a token which is generated at the time of register how can i use it in all the other views where authentication is required. Like to fetch the token from different view and send it into header
aditya
Charly
aditya
And what did you answered?
1. Kitchen sync can help us to do this. Once our system completely gets sync we can migrate our database from MySQL to pgl
But he was not happy with this answer.
Charly
Doragonsureiyā
Priyanshu Pratap
Doragonsureiyā
kaka
Hello everyone. I'm new here.
And I'm new to Django as well. But a teacher gave us a project to design a management system using Django without even teach us the basics. Please can anybody help me. The project is due in 2 weeks 🙏
Doragonsureiyā
Pius
Can someone pls recommend a book or YouTube channel that properly explains how to use JWT with DRF
Carlos Alberto
Alex
Hari
How to do form validation in django
Doragonsureiyā
How to do form validation in django
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
Taha
Hi guys
I have a question from you
I want visitor to enter a file in one file field in the site with file input and I want to get it and put it in admin panel for admin to submit and accept it
How can I do that?
Rajesh
Taha
Pius
KENNEDY
Just Add Python to path
Temur
Le_chy
Hello need help on the mpesa integration
Lords
Hi team , any one have idea how to integrate interpreter like w3 schools if we want to run query we need to run it and needs to show result how to do it through python
٩ʕ•͡וʔ۶
Maria
Hi team..
I am facing an issue.
I am having a django app that works in local env
But it works wrong in prod. But the data in models and code in both environments is same.
Has anyone faced a similar issue?
Cc
Hi,
Has anyone used the Pandas to_sql function doing unit testing?
It happens that when I run the unit tests, the data is tried to be inserted into the dev environment database and not into the Django test database. Has anyone had this problem?
cj
Cc
Thanks for answering.
This is exactly what I do, I mock the connection, when I insert data into the database through the django ORM it works, the data generated by the tests is deleted when they finish but when I use the pandas to_sql function it uses the dev database :(
cj
Cc
Yes I understand, the question is because I am working with files with millions of lines of information and since we have the BE and FE separated, I wanted to try with large files on the BE side.
And given that when I insert data normally in the unit tests they are deleted at the end, the question arose as to why the same thing does not happen when I use df.to_sql. Anyway, thank you very much for your help.
cj
cj
that's why you'd better mock DB connections
Marco dev
good morning! When running python3 manage.py test
I get the error: return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "eventos_produtora" does not exist
but makemigration, migrate and runserver work normally.
$@£d@®
Marco dev
Shohruh
Hello
There was a post model, I migrated it to the database
then I added new fields to the post, and if I migrate to the database by doing makemigrations, a new column is not added to the table
Can you tell me the solution?
KENNEDY
Shohruh
$@£d@®
Save your changes in models.py then do python manage.py makemigrations then migrate
Shohruh
$@£d@®
When you run makemigrations you seen your changes in terminal
салли
Guys could anyone help me with sending push notifications to iOS app without using any third party libs?
Charly
ruthless
Hello, I can't send mail
My error:
SMTPAuthenticationError at /profile/
(535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials a640c23a62f3a-a780a6bcccasm269907966b.12 - gsmtp')
My code:
msg = EmailMessage('Request Callback',
                       'Here is the message.', to=['ruthlessfront@gmail.com'])
msg.send()
$@£d@®
Use email host user and email host password in settings.Py
Chrvieldarara
ruthless
In my settings.py Is that correct?
DEFAULT_FROM_EMAIL = 'ruthlessfront@gmail.com'
SERVER_EMAIL = 'ruthlessfront@gmail.com'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'ruthlessfront@gmail.com'
EMAIL_HOST_PASSWORD = 'password'
ruthless
Charly
Admin
hello,how to do horizontal scrollbar for each row move in admin site list display?
Chrvieldarara
How can i login to smtp?
from django.core.mail import send_mail
send_mail(
"Subject here",
"Here is the message.",
"from@example.com",
["to@example.com"],
fail_silently=False,
)
$@£d@®
$@£d@®
And also paste that password in email host password
$@£d@®
Maria
$@£d@®
If you are use pc right now go to crome and go to manage your Google account and search app password
$@£d@®
And create
Daice
Plz I need help with this [no attribute 'get' ] how do I fix this error in my django plz I need ur help
Charly
Daice
Daice
Vasily
Any way to make migrations not for model but for db rows? Idea is to create migration for django-cms current content state.
Charly
Charly