Re: Having trouble understanding Timezone

2016-01-07 Thread Ryan Causey
Thank you everyone for your responses. I believe I have a clear understanding of how it all interacts and what I need to do on my end. -Ryan Causey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: How to show a list of products as checkboxes?

2016-01-07 Thread Michael Molloy
Forgot to post the link to the guy who had this code: http://devdens.blogspot.com/2014/04/django-multiple-choice-field-and-how-to.html -- 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

Re: How to show a list of products as checkboxes?

2016-01-07 Thread Michael Molloy
Found what I was looking for. In my form: LINEITEM_CHOICES = [[x.id, x.descr] for x in LineItems.objects.all()] class LineItemsForm(forms.Form): food = forms.MultipleChoiceField(choices=LINEITEM_CHOICES, widget=forms.CheckboxSelectMultiple(), required=False) In my view: {% for radio i

Re: How to show a list of products as checkboxes?

2016-01-07 Thread Michael Molloy
Thank you. crispy_forms are on my list, but I'm trying to learn Django's forms first. --Michael On Thursday, January 7, 2016 at 6:35:29 AM UTC-6, Derek wrote: > > You may want to look at Django crispy forms as a way to simplify form > creation and layout; > > For example, handling of checkboxes

Re: Amazon + Django each 12 hours appears that [Errno 5] Input/output error

2016-01-07 Thread Bernardo Garcia
Hi, luisza14 You have the reason, I had my project in DEBUG=True in production, and the main problem was a print sentence in some of my CBV's in the code in production Here, recently I can write how to fix this http://stackoverflow.com/questions/34643170/amazon-django-each-12-hours-appears-tha

Re: Using Django with Microsoft SQL Server

2016-01-07 Thread whycrying
Sorry. `inspect` -> `inspectdb` . On Fri, Jan 8, 2016 at 12:54 AM, whycrying wrote: > Using django-pyodbc for connecting to SQL Server as Sid said. > > Then use the `inspect` management command to build the models :: > > $ python manage.py inspectdb > models.py > > via: > https://docs.django

Re: Using Django with Microsoft SQL Server

2016-01-07 Thread Sid
I think if you install sql_server.pyodbc it should be fine UNDER databases in *settings.py * 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': '--', 'HOST': '', 'USER': '-', 'PASSWORD': '-' documentation: *https://pypi.pytho

Re: Amazon + Django each 12 hours appears that [Errno 5] Input/output error

2016-01-07 Thread Bernardo Garcia
This is my error, which again I get despite that yesterday was solved restarting my server This error did reference to some function of my application Environment: Request Method: GETRequest URL:

Using Django with Microsoft SQL Server

2016-01-07 Thread Gerry Seidl
Can someone please provide me the details, or point me to documentation on how to connect an existing SQL Server database to a new Django app? How would the models be built from it? Thanks, Gerry The information transmitted in this email

Re: How to show a list of products as checkboxes?

2016-01-07 Thread Derek
You may want to look at Django crispy forms as a way to simplify form creation and layout; For example, handling of checkboxes: http://django-crispy-forms.readthedocs.org/en/latest/layouts.html#bootstrap-layout-objects On Wednesday, 6 January 2016 06:39:31 UTC+2, Michael Molloy wrote: > > My

Re: Having trouble understanding Timezone

2016-01-07 Thread Juan Miguel Paredes
On Wed, Jan 6, 2016 at 11:06 PM, Ryan Causey wrote: > 1. The documentation says that when USE_TZ = True that "Django stores > datetime information in UTC in the database, uses time-zone-aware datetime > objects internally, and translates them to the end user’s time zone in > templates and forms."