Re: Heroku testing

2024-06-23 Thread Reddy Tintaya
Short answer: Create your test db the same way you created the one that your application already uses. Run your tests using the keep db flag: python manage.py test --keepdb or —reuse-db in case you are using pytest https://pytest-django.readthedocs.io/en/latest/database.html#reuse-db-reuse-the-t

Re: Help deploying to vercel

2024-06-23 Thread ASAMOAH EMMANUEL
No, you put all the management command you'll need in a build.sh file. so you can put say: python manage.py migrate and so on. On Sun, Jun 23, 2024 at 8:24 PM Gabriel Soler wrote: > Hi, I am curious how do you deploy on a function base system with Django, > when you need to much to access the ma

Re: Hola comunidad django, soy nueva

2024-06-23 Thread Gabriel Soler
Hola, soy bastante nuevo también. Debug true significa que te va a decir que problemas tiene tu código al hacer runserver. Eso es normal y es bueno hasta que lo publicas. La segunda parte tiene que ver con que cambiaste en urls.py. ahí tienes que registrar el admin y alguna página. Como lo cambi

Re: Help deploying to vercel

2024-06-23 Thread Gabriel Soler
Hi, I am curious how do you deploy on a function base system with Django, when you need to much to access the manage.py? How do you deploy in vercel? Does it have a way to reach the command line? Gabriel On Friday 14 June 2024 at 15:17:34 UTC+2 Augusto Domingos wrote: > Hey, sorry for the late

Heroku testing

2024-06-23 Thread Gabriel Soler
Dear all I am doing my first deployment and using heroku. I am using the eco tier and connected a postgres database. When I try to run tests with heroku CLI it tells me I am not allowed to create a database. As Django creates a database and destroys it after, I wonder how you have solved this i