Re: Django Queryset

2020-12-13 Thread Jorge Gimeno
On Sun, Dec 13, 2020 at 7:21 PM MAMADOU KANTE wrote: > Hi to everybody; > I have been trying to deploy an app through heroku for the past 7 days but > whenever I reach the final stage I receive a rejection message. > The message tells me the module "skbuild" was not imported or I should >

Re: Django Queryset

2020-12-13 Thread MAMADOU KANTE
Hi to everybody; I have been trying to deploy an app through heroku for the past 7 days but whenever I reach the final stage I receive a rejection message. The message tells me the module "skbuild" was not imported or I should upgrade my pip version. But when I check through the terminal I find

Re: How to access using foreing key

2020-12-13 Thread Peter of the Norse
If you are looking for all of the Restaurants with a 5.0 rating, it looks like Restaurant.objects.filter(rating_restaurant__rating = 5.0) If you are looking for Restaurants with an average rating of 5.0, that’s a bit trickier. from django.db.models import Avg

ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-13 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I

Re: Django has Future?

2020-12-13 Thread Stephen L
What? How can you look in your local area and determine the future of a framework? Here's how to tell a future of a framework: - Stars on GitHub - Tickets / issues being taken care of - Job search boards (globally) If you search python + web development you'll get requirements for django and

Re: Django has Future?

2020-12-13 Thread Atuma Samuel
Yes, django has a future. Node.js is good, but so also is django. On Dec 13, 2020 18:17, "Dhruvil Shah" wrote: > I am currently confused that Django has Future or not. Because I am not > able to find that much local companies using Django. I also see demand of > Nodejs is increasing day by

Re: Django has Future?

2020-12-13 Thread F x
if you face small companies or startups , maybe Node js will be good to get the job. but speaking of Django or python project development , I would like to recommend big companies. On Sun, Dec 13, 2020 at 9:16 AM Dhruvil Shah wrote: > I am currently confused that Django has Future or not.

Django has Future?

2020-12-13 Thread Dhruvil Shah
I am currently confused that Django has Future or not. Because I am not able to find that much local companies using Django. I also see demand of Nodejs is increasing day by day. So, should I start learning Nodejs, express for Backend due to lack of opportunities or if Django has future I will

FastCGI with recent Django?

2020-12-13 Thread Tim Chase
At one point in history long past, Django 1.8 supported FastCGI via flup https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/ but it was slated to be removed in 1.9 and there seem to be no further docs I can disinter about running Django in a FastCGI environment (all other resources I

Handle timeseries, how to model ?

2020-12-13 Thread Franck DG
Hello, I am looking for best practices in managing the registration of timeseries. I cannot find a satisfactory model for Django. The problem is to model a driving simulator made up of a steering wheel, brake pedal, clutch, gear lever, ... Following a session, the machine provides a file with

Re: How can you do a for loop with a database?

2020-12-13 Thread Andréas Kühne
The context needs to be a dictionary. Something like this would work: context = { ‘items’: Model.objects.all() } Then in the template: {% for item in items %} {{ item.text }} {% endfor %} Here ‘text’ is the property on the database model you want to display. Regards, Andréas > 12