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
;) text=models.TextField(blank=False, max_length=500) files=models.ManyToManyField(FeedFile) class FeedFile(models.Model): file = models.FileField(upload_to="files/%Y/%m/%d") Is not so intuitive for the user, but I can get the correct queryset. Any advise on good practise? Bar

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

Re: What is the best combination of components when installing Django on Windows 10?

2016-12-27 Thread bart
10? My current environment for Windows 10 : Django 1.10Python 3.4 Visual Studio 2015 community edition with PTVSMS SQL Express 2012 and Azure for deployment  Sent with Mailtrack 2016-12-26 21:56 GMT+03:00 bart : Beter Linux gebruike. Windows is shit to u se Django. Wysłano z t

Re: What is the best combination of components when installing Django on Windows 10?

2016-12-26 Thread bart
Beter Linux gebruike. Windows is shit to u se Django. Wysłano z telefonu Samsung Oorspronkelijk bericht Van: Varuna Seneviratna Datum: 26-12-16 07:11 (GMT+01:00) Aan: django-users@googlegroups.com Onderwerp: What is the best combination of components when installing Django

Re: Mysql GeoDjango Distance search

2016-11-28 Thread bart
Het ip adres vertelt ongeveer waar iemand woont.  Groet,Bart Wysłano z telefonu Samsung Oorspronkelijk bericht Van: Sergiy Khohlov Datum: 27-11-16 20:57 (GMT+01:00) Aan: django-users Onderwerp: Re: Mysql GeoDjango Distance search MySQL  does not have  this support. I&#x

Form/widget Media urls not using the hashed names from ManifestStaticStorage?

2015-11-18 Thread Bart van der Schoor
rride or setting? All this was using Django 1.8.6 with Python 3.4 on Ubuntu. Any ideas what is intended here? Bart -- 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, sen

Custom storage question

2013-01-23 Thread Bart Grantham
t I missed that has the one or two sentences that I need to read that will clear it all up? It doesn't seem complex, but it's turning out that way. Bart -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discu

Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Bart Nagel
At 2012-01-01 14:23:50 -0800, Chris Kavanagh wrote: > On Jan 1, 4:44 am, Bart Nagel wrote: > > At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote: > > > > > On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > > > > When I run that I get > > > >

Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Bart Nagel
At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote: > On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > > When I run that I get > >     3 arguments: ['args.py', 'startproject', 'mysite'] > > > > Paste your own output. > > I get the sa

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
in the Scripts Folder or should I move it?? If I > do move it, will that cause other problems?? You should probably move it. It should work anywhere, again, as long as it can find Python properly. --bart -- You received this message because you are subscribed to the Google Groups "

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
At 2011-12-31 18:47:13 -0800, Chris Kavanagh wrote: > Forgive my ignorance, but if that's the way it's supposed to work > (script must be in current dir) then how would Python know to run > django-admin.py if I'm NOT in the same directory it is > (Python27\Scripts\)??? In other words, the tutorial

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote: > On Dec 31, 6:48 pm, Bart Nagel wrote: > > Does this little script tell you correctly the number of arguments you > > pass to it? > > Yes, it tells me the number of args. Okay, in that case the arguments should also be g

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
t directory, it's correct to give you an error message. Does this little script tell you correctly the number of arguments you pass to it? --bart -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
At 2011-12-31 15:01:39 -0800, Chris Kavanagh wrote: > On Dec 31, 11:58 am, Bart Nagel wrote: > > What about other Python programs? Do they have the same problem? > > > > Put this next paragraph in a file and run it with different numbers of > > arguments and see what

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
At 2011-12-31 19:47:35 +0300, Timothy Makobu wrote: > File associations are fine i reckon, because django-admin is giving you the > help message because for some reason it thinks you're *giving it improper > input*. What about other Python programs? Do they have the same problem? Put this next pa

Re: django-admin.py startproject will NOT work.

2011-12-31 Thread Bart Nagel
At 2011-12-31 08:40:26 -0800, Chris Kavanagh wrote: > While looking for a solution, I found someone with a similar problem. > he thought there was a problem with the way Python Files are > associated. So I did what was suggested on the command line, using > "assoc.py" and ftype Python.File. What I

Re: Constraints on a one-to-many relationship and related problems

2011-12-29 Thread Bart Nagel
hen just have logic in the views and templates to account for > existence/nonexistence of a given customer's billing address. Would this approach mean implementing my own forms to populate customers and addresses and not using the built-in Django admin forms at all? They were a major draw

Re: Constraints on a one-to-many relationship and related problems

2011-12-29 Thread Bart Nagel
o be billing if none is. Is that the best solution to this problem? But even then the problem of how to stop a customer being created if no addresses are given remains. Thanks. --bart -- You received this message because you are subscribed to the Google Groups "Django users" group.

Constraints on a one-to-many relationship and related problems

2011-12-28 Thread Bart Nagel
;s just getting way too messy. So this solution is not working for me. In fact, looking back, none of my solutions for any of the problems are adequate. I'm stuck. Please help! Any suggestions are appreciated. Hopefully there are just some really easy things I've missed in the docume