Where you use the field JSONField?

2016-06-18 Thread Seti Volkylany
Just wondering -- 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@googl

Re: Prefetch Related with Multiple Column Join

2016-06-18 Thread Ram Jayaraman
Hi Simon, Thanks a lot for the response again! I really appreciate your time. I saw the uniq_together but didn't realize checks can be silenced in Django. ( `0 silenced` in the log should have been a clue! ). I silenced it and it does work great. I am not sure if I missed this in the Django d

Re: Please help me with CBV template_name behaviour.

2016-06-18 Thread James Schneider
> I EXPECT the Views with CRUD in their names (CRUD Views) to behave THE SAME AS the others EXCEPT items are listed with read, update & delete links, because that is how `contacts/crudlist.htm` displays them. > > THE PROBLEM IS that the CRUD Views display the items using the Plain Template (contact

Re: Prefetch Related with Multiple Column Join

2016-06-18 Thread Simon Charette
Hi Ram, As PublisherMediumBilling.publisher and medium are unique together it's safe to silence the `fields.E310` check failure in this case. By the way the check was adjusted in Django 1.10 to also take `unique_together` into account[1]. Cheers, Simon [1] https://github.com/django/django/co

Re: Stripe Not Returning Token (test mode)

2016-06-18 Thread Chris Kavanagh
I understand. I was able to get things working using Stripe Checkout (along with csrf). The Token was returning fine. However, for some odd reason, using Stripe.js just wouldn't work. I could create a customer that would show in the Dashboard, but would never return a Token. Anyways, thanks again

Please help me with CBV template_name behaviour.

2016-06-18 Thread JoeCodeswell
Dear django-users, In an effort ot learn Django, i am writing a blog post, "Simple Django Tutorial ", to remind myself & possibly others of some Django Basics. I ALMOST finished when i noticed some strange (to me)

Re: Prefetch Related with Multiple Column Join

2016-06-18 Thread Ram Jayaraman
Hi Simon, Thanks for the post. I just tried this and ForeignObject requires one of the 2 columns being referred to be unique. But thats an interesting object! On Saturday, June 18, 2016 at 8:34:31 PM UTC+5:30, Simon Charette wrote: > > Hi Ram, > > I don't have a complete solution for you but I s

Re: Python NoReverseMatch when Viewing the Page

2016-06-18 Thread James Schneider
On Jun 17, 2016 12:06 PM, "'antanas skiudulas' via Django users" < django-users@googlegroups.com> wrote: > > I'm a newbie trying to make a wiki page with Django, however, I keep running into this very annoying problem: > > NoReverseMatch at /wiki/page/Start/ Reverse for '' with arguments '()' and k

Re: Stripe Not Returning Token (test mode)

2016-06-18 Thread Kristofer Pettijohn
Yes, I am using CSRF on the form and do not have any issues with it. {% csrf _token %} https://checkout.stripe.com/checkout.js"; class="stripe-button" data-key="{{ stripe_publishable_key }}" data-amount="{{ stripe_amount }}" data-name="..." data-description="..." data-zip-co

Re: Prefetch Related with Multiple Column Join

2016-06-18 Thread Simon Charette
Hi Ram, I don't have a complete solution for you but I suggest you take a look at the django.db.models.fields.related.ForeignObject class. If I'm not mistaken it should allow you to define multi-column relationships on both your Article and PublisherMediumBilling models and refer to them using

Prefetch Related with Multiple Column Join

2016-06-18 Thread Ram Jayaraman
I apologize if this is an old question, I did search SO/google for a good few hours. I have the following models. Publisher() name = CharField() Medium() name = CharField() Article() publisher = ForeignKey(Publisher, related_name="articles") medium = ForeignKey(Medium, related_name="ar

Re: Python NoReverseMatch when Viewing the Page

2016-06-18 Thread ludovic coues
Can you post the INSTALLED_APPS part of your settings.py ? 2016-06-17 21:01 GMT+02:00 'antanas skiudulas' via Django users : > I'm a newbie trying to make a wiki page with Django, however, I keep running > into this very annoying problem: > > NoReverseMatch at /wiki/page/Start/ Reverse for '' with