'placeholder' attrs in forms.TextInput not translated on the fly

2013-12-19 Thread Chang Sun
Hi, everyone! I add placeholder attrs to forms.TextInput so it can show in html5 widget=forms.TextInput(attrs={'placeholder': _('Username or Email')}), However, once I run manage.py runserver and request any web page using one language, then the tran

Re: wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Donald Casson
Should be gui driven approach. :) On 20 Dec 2013, at 12:48 pm, Donald Casson wrote: > Hi, > > While not as flash as a the guy driven approach. You can use a simple python > one liner to setup a test mail server that will display emails to the > console. > > sudo python -m smtpd -n -c Deb

Re: HTML format-able inputbox

2013-12-19 Thread Mrinmoy Das
Thanks man :) Mrinmoy Das http://goromlagche.in/ On Fri, Dec 20, 2013 at 4:01 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Mrinmoy, > > There isn't anything baked into Django itself, but there are plenty of > third-party packages that have this feature. You can get a fairly bi

Re: wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Donald Casson
Hi, While not as flash as a the guy driven approach. You can use a simple python one liner to setup a test mail server that will display emails to the console. sudo python -m smtpd -n -c DebuggingServer localhost:25 Cheers Don On 20 Dec 2013, at 6:57 am, Arnold Krille wrote: > Hi > > On

Re: HTML format-able inputbox

2013-12-19 Thread Russell Keith-Magee
Hi Mrinmoy, There isn't anything baked into Django itself, but there are plenty of third-party packages that have this feature. You can get a fairly big list of them here: https://www.djangopackages.com/grids/g/wysiwyg/ Yours, Russ Magee %-) On Thu, Dec 19, 2013 at 2:43 PM, Mrinmoy Das wrote:

Re: How to display different contents when refresh every time.

2013-12-19 Thread Bill Freeman
If the page is cacheable then, in the wild, all bets are off. On Thu, Dec 19, 2013 at 4:14 PM, Jonathan Baker < jonathandavidba...@gmail.com> wrote: > I agree with Avraham, and you can easily accomplish this by using > .order_by("?") when using the Django ORM (@see > https://docs.djangoproject.c

Re: Where exactly in the django source code, the default permissions are created?

2013-12-19 Thread C. Kirby
https://github.com/django/django/blob/master/django/contrib/auth/models.py Take a look at the classes Permission, PermissionMixin and AbstractUser On Thursday, December 19, 2013 1:16:45 PM UTC-6, Fabio Caritas Barrionuevo da Luz wrote: > > Hello guys, I'm trying to understand the inner workings

Re: How to display different contents when refresh every time.

2013-12-19 Thread Jonathan Baker
I agree with Avraham, and you can easily accomplish this by using .order_by("?") when using the Django ORM (@see https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.order_by ) On Thu, Dec 19, 2013 at 2:08 PM, Avraham Serour wrote: > yes, django has sessio

Re: How to display different contents when refresh every time.

2013-12-19 Thread Avraham Serour
yes, django has session management, but why would you need to do that based on session? I mean, you could just get a different content every time you render the page, of course showing something in random have a chance of repeating the same, if you have no control on what was already shown to the c

How to display different contents when refresh every time.

2013-12-19 Thread Chen Xu
I am currently working on a web page using Django to recommend people food, basically when people refresh the page, it shows a different food which is from the database. I am wondering if there is a way to show different food every time when people refresh (people dont need to login), does Django p

Re: wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Arnold Krille
Hi On Thu, 19 Dec 2013 01:23:58 -0800 (PST) Michał Pasternak wrote: > I would like to announce a GUI app, written in wxPython, that I > quickly assembled yesterday mainly using some code from StackOverflow > and Google. > > The app is called wxMailServer and all it does is: it acts as a mail > s

Re: Why serializer only works for QuerySet

2013-12-19 Thread Leon Sasson
That would definitely work. I guess it's missing from the docs— only 'xml', 'json', and 'yaml' formats are documented. The 'python' serialization format was documented until version 1.1, but then removed, althoug

Where exactly in the django source code, the default permissions are created?

2013-12-19 Thread Fabio C. Barrionuevo da Luz
Hello guys, I'm trying to understand the inner workings of the permissions django system. My question is where exactly in the django source code, the default permissions are created? -- Fábio C. Barrionuevo da Luz Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins - FACTO Pa

BPMN2 and Django

2013-12-19 Thread John
Hello, List, I am looking at building an application which uses workflows that will probably be designed in BPMN2. Ideally, I would like the workflow engine to be a Django app, but I also open to integrating a Django app with something like Activiti/Bonita/jBPM. Has anyone any experience with inte

Overriding an abstractmodel field

2013-12-19 Thread João Oliveira
Hey there guys While trying to override the email field, extending the AbstractUser class i looked for ways to do that, eventually sticking with the one this user suggested

What is the point of ATOMIC_REQUEST in Django 1.6

2013-12-19 Thread j1z0
Guys, Looking for a little bit of help here understanding ATOMIC_REQUEST in Django 1.6 I've posted the question on Stack Overflow http://stackoverflow.com/questions/20682954/atomic-request-and-transactions-in-django-1-6 But I thought I would try here as well. I'll copy the question below (wo

Re: django-facebook

2013-12-19 Thread Hajime Branko Yamasaki Vukelic
On Thu, Dec 19, 2013 at 10:26 AM, Michał Pasternak wrote: > How about a log with the failure from the installation and some basic > information on your platform and operating system? Information about the platform is listed in the original post: > Using python v2.7 win64 / Django 1.6, and Micros

Re: Django app for text selection and time measurement

2013-12-19 Thread Rafael E. Ferrero
Really, imho your django skills to do that shoudn't be so high... just a model that suite your needs for render a html page with sentences where select text and save the selections and the time). Create some view to render the template where you show sentences, and other to save selected text and t

Re: Django app for text selection and time measurement

2013-12-19 Thread Mario Hari
Vicherot, okay. I know how to create a basic django app like blog etc. If you guide me to some tutorials/blogs/apps that specifically or closely deals with what I need, It can be much helpful to me. Thanks:) Mario > -- You received this message because you are subscribed to the

Re: Django app for text selection and time measurement

2013-12-19 Thread Rafael E. Ferrero
uhm... imho you must to do that with javascript maybe? and use django to render the sentences and then to store the thing (time, selected text, etc.) maybe with sqlquery for database (for simplicity). Hope to help you in some way. 2013/12/19 Mario Hari > Hi, > I want to develop a django

wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Michał Pasternak
Hi, I would like to announce a GUI app, written in wxPython, that I quickly assembled yesterday mainly using some code from StackOverflow and Google. The app is called wxMailServer and all it does is: it acts as a mail server (it listens for traffic incoming at localhost port 25) and when an e-

Re: django-facebook

2013-12-19 Thread Michał Pasternak
How about a log with the failure from the installation and some basic information on your platform and operating system? W dniu wtorek, 17 grudnia 2013 14:05:08 UTC+1 użytkownik Duncan Bates napisał: > > Testing django for my next web app, but encountering image library > problems when I've ad

Django app for text selection and time measurement

2013-12-19 Thread Mario Hari
Hi, I want to develop a django app where the users have to select some text in a given sentence; And I need to store the selected text and the time taken for selecting that text. I'm a newbie to django. Can you help me with how should i do this? Is there any relevant apps that I can make us