Re: Ajuda

2023-05-13 Thread Abrao Roberto
nao consigo criar ambiente virtual no vscode, para iniciar um projecto django On Thu, May 11, 2023, 15:42 Michael Edet wrote: > What help do you need? > > On Thu, 11 May 2023, 14:09 Abrao Roberto, > wrote: > >> Olá pessoal, sou um programador iniciante e quero migrar para Django pois >> uso

Re: Masonry card columns

2023-05-13 Thread ALBERT ASHABA AHEEBWA
This is a simple css issue. You need to change the width of the card. Making it compact will result in the desired outcome. If you are using bootstrap use grid instead of flexbox. Set width to w-50. i.e <-! Card here --> Best Regards, Albert Ashaba Aheebwa +256 781 435857 On Sat,

Re: Add single object(most recent) from foreign key relationship to django queryset

2023-05-13 Thread Andrew Kos
Could you do a separate query or use select_related() to retrieve the most recent comment then combine the two in your table building logic? You're going to be constrained by the structure of the models anyways and so will probably have to make a couple queries to the DB. On Friday, May 12,

Re: Masonry card columns

2023-05-13 Thread Michael Edet
Yes I'm using bootstrap Or should I show you my code?? Because I was using card-colum But I will try your I.e. out On Sat, 13 May 2023, 22:06 ALBERT ASHABA AHEEBWA, < ashabaaheebwaalb...@gmail.com> wrote: > This is a simple css issue. You need to change the width of the card. > Making it

Re: Queying 3 tables in Django

2023-05-13 Thread _M_A_Y_A_N_K_
You could follow the steps below. - Create a view function that takes the search parameter as a keyword argument. - Use the QuerySet object to filter the Skill table by the search parameter. - Use the prefetch_related() method to load the Recruitment objects

Queying 3 tables in Django

2023-05-13 Thread Oduwa Imade
Hello Guys! How do I write a model query in django python to get the User details(Recruitment) when i pass a search parameter( skill) to the Skill table? class Recruitment(models.Model): fname = models.CharField(max_length=50) lname = models.CharField(max_length=50) address =