Re: A beginner question

2020-09-14 Thread Annick Sakoua
Hi , Here is the documentation link, follow every steps of the tutorial and it gonna be fine. https://docs.djangoproject.com/en/3.1/ All the best :) Le dimanche 13 septembre 2020 à 13:17:37 UTC+1, neginha...@gmail.com a écrit : > Hi, I'm a beginner, just now I installed Django, how can I use

Re: In app Template's

2020-09-02 Thread Annick Sakoua
Hi, Plz,can you share a tree of your directory, it will be simpler to help you Le mercredi 2 septembre 2020 à 16:37:30 UTC+1, divyansh@gmail.com a écrit : > i am using Django 3.1 and the template loader is not looking in the > template directory of the app, why ? > its only looking in t

How to get a user from a Modelform

2020-09-02 Thread Annick Sakoua
Hi all, I have a model from which I had a form. I would like to show in the form a MultipleChoiceField: customer that shows only the user's customers. Nothing show in the MultipleChoiceField. I don't know how to succed to get the user in my form. Please help. Thanks a lot *models.py* class Cus

Re: Django security releases issued: 3.1.1, 3.0.10 and 2.2.16

2020-09-02 Thread Annick Sakoua
Thanks :), didn't see that Le mardi 1 septembre 2020 à 10:20:39 UTC+1, carlton...@gmail.com a écrit : > Today the Django team issued 3.1.1, 3.0.10 and 2.2.16 as part of our > security process. These releases address two security issues, and we > encourage all users to upgrade as soon as possib

Re: Many to many field does not save in the main object

2020-08-28 Thread Annick Sakoua
I found the mistake, I removed the 'for item in instance' in my addcustomer function and Elesire suggestion about iterating in the {{customer.gp}} object in my template helped me a lof. Thank you soo much. Le mardi 25 août 2020 à 14:57:48 UTC+1, Annick Sakoua a écrit : > Hi

Many to many field does not save in the main object

2020-08-25 Thread Annick Sakoua
Hi all, Please Help. I have been on this problem for 2 weeks now :( I have an object: customer that has 1 manytomany relationship with another object: gp. I created some gp instances in the admin page. When I select one gp in the select dropdown list of existing gp in my addcustomer form an