Re: Request works with sqlite not with Postgres

2016-04-03 Thread Simon Charette
Hi Tazo, The default `output_field` of the `Avg` aggregate is a `FloatField`[1] hence the error raised here. In the case of SQLite, `DurationField`s are stored as large integers of microseconds[2] and the result returned by the database is already a float making `float(value)` a no-op in

Re: Looking for ways to improve my skills

2016-04-03 Thread Mario R. Osorio
Hi Devrhoid, I'm not an expert myself but, as with anything else; it is nothing but your own needs that will improve your knowledge. I can recommend what I think is the very best Django tutorial EVER, bar none ( http://www.marinamele.com/taskbuster-django-tutorial) It does, however introduce

Re: Multiple values to Django

2016-04-03 Thread bob gailer
On 4/2/2016 6:20 PM, Denis Makarov wrote: Hello! I have a MyForm which have name, quantity and quandesc fields. I have a basic UI form for adding this fileld. I added button for adding another instances of field on web page. Jquery func below: | functionaddContainer(){

Re: Migrating older 1.4 project to 1.9

2016-04-03 Thread Mike Dewhirst
On 4/04/2016 12:58 AM, Larry Martell wrote: I import models in the top level of each app so I can say "from app import >this, that, other" and it works fine. Django 1.8. The above is wrong. I don't import models at the top level of each app. In fact I import them at the top of each models

Empty static files are generated by django-pipeline with BrowserifyCompiler

2016-04-03 Thread Taras Matsyk
Hi guys, I am trying to create a django-rest app together with react and I stuck and point where assets generated by collectstatic are empty. Even if they are in the right directory I get 404 error on the main page. I see here 2 issues and help at least with one would be highly appreciated.

Re: django template {% url %}

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 11:50 AM, 颜刚 wrote: > > > i have this code in my template: > > {% for action in actions %} > > {{ action.name_short }} > > {% endfor %} > > but that's error: > > Exception Type: TemplateSyntaxError > Exception Value: > Could not parse the remainder:

django template {% url %}

2016-04-03 Thread 颜刚
i have this code in my template: {% for action in actions %} {{ action.name_short }} {% endfor %} but that's error: Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '{{' from '{{' i want to use var in {% url {{}} %},can i? anyone can help me ? --

Django and Plesk

2016-04-03 Thread 'David Turner' via Django users
Does anyone have any advice/recommendations for hosting a Django Site via Plesk running Centos 6.5/nginx? Our understanding is that the ideal route is Passenger? Any advicerecommendations would be greatly appreciated. -- You received this message because you are subscribed to the Google

Re: ¿Como hacer mi primera aplicacion con Django en Ubuntu? ¿How Can I make my first project with Django?

2016-04-03 Thread Vijay Khemlani
Leiste el tutorial? https://docs.djangoproject.com/en/1.9/intro/tutorial01/ On Sat, Apr 2, 2016 at 3:25 AM, Kike Martinez wrote: > Hola quisiera saber como puedo hacer un proyecto con Djando desde cero > gracias > > -- > You received this message because you are

Re: Migrating older 1.4 project to 1.9

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 2:52 AM, Mike Dewhirst wrote: > On 3/04/2016 11:01 AM, Larry Martell wrote: >> >> On Wed, Mar 30, 2016 at 10:07 AM, Fred Stluka wrote: >>> >>> Roger, >>> >>> Yeah, I too have a large project that I'll hopefully be migrating >>> from

Re: Migrating older 1.4 project to 1.9

2016-04-03 Thread Mike Dewhirst
On 3/04/2016 11:01 AM, Larry Martell wrote: On Wed, Mar 30, 2016 at 10:07 AM, Fred Stluka wrote: Roger, Yeah, I too have a large project that I'll hopefully be migrating from 1.4 to 1.9 soon. It's about 3.5 years worth of work, over 200,000 lines of code in about 1000