R
Railway10mo ago
tom021.

Django

Hello good people of Railway! I would like to ask for a bit of help and advice about Django deployment. - i saw a few problems with deployment, where the pdf function for checking mime time on model and validation of uploaded pdfs caused an error on Railway - i also run into a problem with .env file. I have created .env with secret keys and whatnot, but again Railway showed an error message and the deployment didn't work until i have moved all from .env to settings.py but that is not what we want... - do i need to setup postgresql for each project, in settings.py before i deploy to Railway Thank you
1 Reply
Brody
Brody10mo ago
- you probably are just missing some system libraries - you do not want to use an .env file, store your variables in the service variables - if your app needs postgres then yes you will need to add postgres to the project, be sure to use reference variables