Home:ALL Converter>Django use external postgresql database including File fields

Django use external postgresql database including File fields

Ask Time:2019-02-23T20:42:14         Author:Amin.B

Json Formatter

I have a Django app and I need to separate the database (PostgreSQL) and put it in another server. My question is about file fields. I have some file fields in the model and it includes models.FileField(upload_to='media/'). Do files automatically will be uploaded to the database server or not? thanks

Author:Amin.B,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54841719/django-use-external-postgresql-database-including-file-fields
yy