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

2020-10-31 Thread David Nugent
It's been a while since I used heroku, but iirc it just uses a formatted pg url. Install the module dj-database-url and use this in settings instead of the default DATABASES layout, something like: DATABASES = { 'default': dj_database_url.config(os.environ['DATABASE_URL'], conn_max_age=1800

Re: How to access using foreing key

2020-10-31 Thread David Nugent
Restaurant.objects.filter(rating_restaurant=5.0) Regards /d -- 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 to django-users+unsubscr...@googlegroups.com. To view t

Re: Deploying an app on heroku

2020-10-31 Thread Ayser shuhaib
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 guys i want to deploy my app on heroku and i having a bad time this is > the website that i deployed > https://khadijaoumelmouminine.h

Deploying an app on heroku

2020-10-31 Thread programmer 262
hy guys i want to deploy my app on heroku and i having a bad time this is the website that i deployed https://khadijaoumelmouminine.herokuapp.com/ if someone could help me on deploying it. i will be very GLADE and i will be very thankful if someone can talk to me on facebook https://www.facebook

Re: Question about permissions for django.git

2020-10-31 Thread Christopher Keith
Hey Kasper- Many thanks! Tried your suggestion and it works. Does this mean that my specific git configuration is such that the 'git' URL will not work? If so, it is possible that https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/ could be updated to s

Re: Question about permissions for django.git

2020-10-31 Thread Kasper Laudrup
Hi Chris, On 31/10/2020 17.02, Christopher Keith wrote: Folks - I am following the instructions from https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/ . However, when I try to 'git fetch' the source repo, I get 'Permission denied' PS C:\Users\chr

Newbie looking for some help with Postgres <> Django connection

2020-10-31 Thread Marc Johnson
Hi All, I'm looking for tips/resources for a problem I'm facing with my Django app: https://ndcportal.herokuapp.com/ I'm attempting to connect my Dockerized Django app with a PostgreSQL db. The postgres db is already populated, and I can access the data via pgadmin, but I cannot figure out th

Question about permissions for django.git

2020-10-31 Thread Christopher Keith
Folks - I am following the instructions from https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/ . However, when I try to 'git fetch' the source repo, I get 'Permission denied' PS C:\Users\chris\Documents\Github> git clone https://github.com/chrisxke

Problem with For and Forloop

2020-10-31 Thread Bak4nimE Oficial
Hello good, I have a problem using the for and for loop, what I want is that this process is repeated in all pages, so I put it in the base page.html. I want the last added in all pages like, in the blog, login and index. At this moment you can only see it in the index. This is code inside the