Problem with aggregate(Sum())

2015-02-21 Thread Mark Caglienzi
Hello, I setup a minimal project here: https://github.com/mcagl/minimal_django_sum_test to demonstrate the problem. I'm working with Django 1.6.x and I noticed something that I don't understand. As you can see from the github repository, I have a Tag model and a Row model with a m2m towards Ta

Force date and time formats to ISO

2014-09-29 Thread Mark Caglienzi
Hello to the list, I am developing a Django website that needs USE_L10N = True, and per-user TZ settings, but I want to force the output of dates and times to ISO everywhere, once and for all (-MM-DD and HH:MM:SS). I understand that Django with USE_L10N = True overrides the output of DateField

Re: Force date and time formats to ISO

2014-09-29 Thread Mark Caglienzi
On 29 Sep 13:17, Collin Anderson wrote: > If it helps, the ISO format should always at least be _accepted_ as an > input, even it it's not displayed that way. Yes, I agree, but the main point (for what I need) is also the display of the date and times. This will allow to keep the webapp forms/ta

Re: Which Version of Django

2014-09-30 Thread Mark Caglienzi
On 29 Sep 23:21, Muhammad Ahmed wrote: > Hi, > > I am learning Django by using version 1.4 and I have completed first 4 > introductory > lessons . > > However, I see that newest Django version is 1.7 and I feel that I am using > an outd

Re: ForeignKey Fields null=True does not imply blank=True

2015-08-26 Thread Mark Caglienzi
On 26 Aug 2:59, khoobks wrote: > Hi All, Hello! > To me, this seems like an unnecessary trap for users of the Django > Framework. However there may be a design decision here and I'd love to be > educated on why there would be a situation where it makes sense for > null=True and blank=False.

Re: How to write api for sms intregartion in django I am new in django?

2018-08-01 Thread Mark Caglienzi
On Wed, 2018-08-01 at 00:26 -0700, im...@wsegames.com wrote: > Here is my code > > > class RegisterView(CreateView): > form_class = RegisterForm > template_name = 'accounts/register.html' > success_url = '/success-membership/' > > def form_valid(self, form): > url = "http