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
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
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
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
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
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
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
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.
> 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
9 matches
Mail list logo