Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Tim Graham
You want `from __future__ import unicode_literals`: https://docs.djangoproject.com/en/dev/ref/unicode/#general-string-handling On Thursday, April 14, 2016 at 6:27:07 PM UTC-4, Fred Stluka wrote: > > Django users, > > In my Django app, I want to allow users to enter Unicode > strings. But if

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Fred Stluka
Stephen, Perfect!  Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Stephen J. Butler
from __future__ import unicode_literals On Thu, Apr 14, 2016 at 5:26 PM, Fred Stluka wrote: > Django users, > > In my Django app, I want to allow users to enter Unicode > strings. But if they do, I get UnicodeEncodeError when I call > format() to embed their string into

Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Fred Stluka
Django users, In my Django app, I want to allow users to enter Unicode strings.  But if they do, I get UnicodeEncodeError when I call format() to embed their string into other strings.  Is there an easy way to tolerate the Unicode? Details: After

Re: Django capser headless test and jenkins

2016-04-14 Thread morty
I am not really looking for unittest. I am looking for running automatic QA tests that requires a "real" live instance of my app - this is what casperjs requires. Yes I would expect the "hanging" behavior but from the log I don't get any information that the server is actually successfully

Re: Django capser headless test and jenkins

2016-04-14 Thread ludovic coues
Django provide lot of builtin support for python unittest. You might save yourself a lot of trouble by reusing it. The documentation is available at https://docs.djangoproject.com/en/1.9/topics/testing/. For your specific problem, hanging is the expected behavior. manage.py runserver launch a

Automating install, start, test and shutdown of django web application?

2016-04-14 Thread morty
I have a django web application and would like to run headless tests using: https://github.com/dobarkod/django-casper I am trying to implement an automatic/CI workflow like the one below: 1) clone latest version of my django web application 2) Install Django (e.g. in a python virtual

Django capser headless test and jenkins

2016-04-14 Thread morty
I would like to run headless tests against my Django web app using: https://github.com/dobarkod/django-casper in a jenkins job. Basically what I need in my jenkins job is: 1. clone latest version of my django web app 2. Install django (e.g. in a Python virtual env. in the workspace) 3.

Re: Questions about model form views

2016-04-14 Thread James Schneider
> Since these views "will automatically create a ModelForm,", is it still possible to specify a widget to use with specific fields in that form? > > As in a 'manual' ModelFrom, ( https://docs.djangoproject.com/en/1.9/topics/forms/modelforms/#overriding-the-default-fields ) > one can specify a