null=True and blank=True? null=False and blank=True?

2020-11-03 Thread rik...@gmail.com
https://djangodoctor.medium.com/the-real-difference-between-blank-true-and-null-true-may-surprise-you-982a9ac3b9da -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email t

Having issues with django and Heroku

2020-11-03 Thread Odeyale Kehinde
Can any one assist me to fix this issue, I uploaded my django website on heroku but I'm get this errors ImportError at /Your WhiteNoise configuration is incompatible with WhiteNoise v4.0 This can be fixed by following the upgrade instructions at: http://whitenoise.evans.io/en/stable/changelog.ht

Re: Having issues with django and Heroku

2020-11-03 Thread Farai M
I used whitenoise 5.0.1 it works fine you can updated your version and see what will happen On Tue, Nov 3, 2020, 6:31 PM Odeyale Kehinde wrote: > Can any one assist me to fix this issue, I uploaded my django website on > heroku but I'm get this errors > ImportError at /Your WhiteNoise configurat

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-03 Thread Marc Johnson
Hi David, Thanks for the feedback! I'm checking out dj_database_url and have a few follow up questions I was hoping you (or someone) could help me with. 1. Since this app is dockerized, I have my existing env vars in my docker-compose-prod.yml file. Is that where I should list DATABASE_URL? Like

reusable App XOR custom user model?

2020-11-03 Thread guettli
Quoting the Docs : *> If you’re starting a new project, it’s highly recommended to set up a custom user model, even if the default User

Re: Deploying an app on heroku

2020-11-03 Thread programmer 262
thanks a lot man i already deployed it but thanks i appreciate it Le sam. 31 oct. 2020 à 23:54, Ayser shuhaib a écrit : > please set debug value to True then deploy, that will allow us to see what > is causing the server error > > On Sun, Nov 1, 2020 at 12:46 AM programmer 262 > wrote: > >> hy

Linking an Image detection Project to Django

2020-11-03 Thread ahmed.he...@gmail.com
Hi, I am working on a colour detection project and I am trying to link it to my Django Project, but I don't know where to start. In my Django project, I have a Post CreateView where users can upload images. Here is the function that I am trying to link the colours in the image to Post.colors

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-03 Thread David Nugent
On 4 Nov 2020, at 03:45, Marc Johnson mailto:marcjohnson...@gmail.com>> wrote: ... 1. Since this app is dockerized, I have my existing env vars in my docker-compose-prod.yml file. Is that where I should list DATABASE_URL? Like: db: image: postgres:11 volumes: - postgres_data:/var/l

Replicating complex query with two dense_rank() functions using ORM

2020-11-03 Thread Brad Buran
I have a "puzzle of the day" that users can answer. I track the puzzle of the day using the Puzzle model. I track the answers using the PuzzleAnswer model. I would like to calculate the number of consecutive puzzles a particular user (i.e., the author) gets right in a row. The current SQL I use