Re: looking for a basic model form example

2015-10-24 Thread Tim Graham
Have you tried: https://docs.djangoproject.com/en/1.8/topics/forms/ - for form basics https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/ - for model form specifics If you can explain your confusion in any more detail, it might help us improve the documentation. I'm not sure what yo

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-10-24 Thread frocco
Did not solve problem. They pointed me to this fix. http://stackoverflow.com/questions/15238506/djangos-suspiciousoperation-invalid-http-host-header/19534738#19534738 Just wanted to share. On Wednesday, October 21, 2015 at 8:08:55 PM UTC-4, frocco wrote: > > I spoke with webfaction and they advi

looking for a basic model form example

2015-10-24 Thread Becka R.
Hi there, I'm seeing a lot of pretty conflicting explanations for constructing a basic model form that gets and posts data. Can anyone point me to a succinct example? I'm looking at the official tutorial, and don't understand which parts are fundamental, and I'm seeing a lot of other possib

Re: Locking / serializing access to one element in database

2015-10-24 Thread Joakim Hove
Hi Collin; thank you for your suggestion: [...] if the thread thinks that the object is new, it could try using > .save(force_insert=True). > I have read to read the force_insert documentation without understanding 100%. Assume threads t1 and t2 are racing to create the first element with th

Re: Locking / serializing access to one element in database

2015-10-24 Thread Joakim Hove
> > > This only covers the case where the object with the given ID already > exists, doesn't it? > Yes - it must be so; thank you for pointing out. In my particular case I can get around it be pre creating an empty element, but that is not very nice - I will look at Collins suggestion. --

Re: Dynamic Formset Radiobutton Issue

2015-10-24 Thread Collin Anderson
Hello, That formset jQuery script it quite ancient (2009). You could try using jQuery 1.2.6 and see if it works correctly with that version. Collin On Friday, October 23, 2015 at 8:54:49 AM UTC-4, Jur Remeijn wrote: > > So I'm using a dynamic formset within django: > https://github.com/elo80ka

Re: Locking / serializing access to one element in database

2015-10-24 Thread Collin Anderson
Hi Carsten, Something that might help: depending on how your unique keys are set up, if the thread thinks that the object is new, it could try using .save(force_insert=True). That way it won't overwrite a different object with the same PK. Thanks, Collin On Thursday, October 22, 2015 at 9:56:

Re: Complex form in modelform

2015-10-24 Thread Collin Anderson
Hi, For starters, here's an example of a formset for multiple images: http://stackoverflow.com/questions/32889199/how-to-upload-multiple-images-using-modelformset-django Collin On Monday, October 19, 2015 at 4:56:18 PM UTC-4, Arnab Banerji wrote: > > Hi - I am trying to create a form from a mode

Re: Reverse relation lookups with multidb

2015-10-24 Thread probleem support
working on that -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@goog

Re: Reverse relation lookups with multidb

2015-10-24 Thread Tim Graham
It would be helpful if you could create a minimal example project (without unnecessary fields and methods) with a test that passes on Django 1.6 but fails on Django 1.8. On Saturday, October 24, 2015 at 9:13:42 AM UTC-4, probleem support wrote: > > this worked fine in django 1.6.1 but fails in

Re: Template variables not showing up in web-page

2015-10-24 Thread CTA2052
Thank you for the very speedy reply. I really apprceciate that. Actually I had tried the page/file name in place of the path as well and it still would not work. What it turned out to be is, on the back end of a reboot (because I took a break to up the memory on my macbook pro,) I rebooted and

Re: Reverse relation lookups with multidb

2015-10-24 Thread probleem support
this worked fine in django 1.6.1 but fails in 1.8.5 -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post to this g

Re: Reverse relation lookups with multidb

2015-10-24 Thread probleem support
same for nieuweklanten = ProfielenUserprofile.objects.values('user__profielenprofielen__profielnaam')[:1] for nieuwe in nieuweklanten: print(nieuwe['user__profielenprofielen__profielnaam']) -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Reverse relation lookups with multidb

2015-10-24 Thread probleem support
> > nieuweklanten = ProfielenUserprofile.objects.all()[:1] >> for nieuwe in nieuweklanten: >> print(nieuwe.user.profielenprofielen.profielnaam) >> >> >> this for example works fine >> > but doing the same thing but then like this with works fine on i do a similar test on the default db but i

Re: Reverse relation lookups with multidb

2015-10-24 Thread Tim Graham
I don't think this has anything to do with multi-db. I'm not sure what that query is trying to accomplish. Can you simply use: ProfielenUserprofile.objects.values('profielnaam') You can't use values() across a reverse ForeignKey ("foo_set") as this might return multiple values. On Saturday,

Re: Reverse relation lookups with multidb

2015-10-24 Thread probleem support
we also tried without _set etc. -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to d

Django JET - new fresh looking Django Admin interface with improved functionality

2015-10-24 Thread Денис Кильдишев
What do you think of it? http://jet.geex-arts.com/ https://github.com/geex-arts/django-jet -- 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, send an email to django-users+unsubscr.