Re: link multiple files to model

2019-12-31 Thread Bart Jonkers
need more time to figure this out. Bart Op zondag 29 december 2019 22:26:35 UTC+1 schreef Bart Jonkers: > > Hi, > > I have a question about one-to-many relations in models > What is best to use? ForeignKey of many to ManyToManyField? > > I want to attach files to a model.

link multiple files to model

2019-12-29 Thread Bart Jonkers
Hi, I have a question about one-to-many relations in models What is best to use? ForeignKey of many to ManyToManyField? I want to attach files to a model. The *ForeignKey* is easy to use. class Feed(models.Model): user=models.ForeignKey(User, on_delete=models.CASCADE, related_name='feeds'

Re: send_mail error

2019-10-18 Thread Bart Jonkers
You need to set https://www.dev2qa.com/how-do-i-enable-less-secure-apps-on-gmail/ Bart Op vr 18 okt. 2019 om 17:33 schreef James Gutu : > What error are you getting? Look at the traceback, or even copy paste it > here. > Ensure you have set the EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, > EMAIL_HOST_