set_language view, i18n_patterns and translated urls

2012-09-22 Thread Jojo
Hi guys, I'm developing a website in three languages: English, Spanish and Italian. I let users change language through a select field {% csrf_token %} {% for language in LANGUAGES %} {% if language.0 == LANGUAGE_CODE %} {{language.1}} {% else %} {{language.1}} {% endif %} {% endfor %} For

Re: django makemessages doesn't recognize trans in templates

2012-08-24 Thread Jojo
thank you guys! very helpful! Il giorno lunedì 20 agosto 2012 12:43:20 UTC-5, Nick Apostolakis ha scritto: > > > > On Mon, Aug 20, 2012 at 8:18 PM, Jojo > > wrote: > >> what is the meaning of the fuzzy mark? >> >> > fuzzy is some kind of auto translated

Re: django makemessages doesn't recognize trans in templates

2012-08-20 Thread Jojo
what is the meaning of the fuzzy mark? Il giorno venerdì 17 agosto 2012 23:11:25 UTC+2, Tomas Neme ha scritto: > > > For example for this link > > > > {% trans "contacts" > %} > > > > I have the msgstr="Contactos". I expect to see "Contactos" in the > browser, > > but I still see "contacts"

Re: django makemessages doesn't recognize trans in templates

2012-08-17 Thread Jojo
Ok guys, I was missing the LOCALE_PATHS in settings.py, now it works properly. Il giorno venerdì 17 agosto 2012 04:15:59 UTC+2, Jojo ha scritto: > > Hi, the subject should be a little clear so, this is the project folder > structure > > project folder > locale >

Re: django makemessages doesn't recognize trans in templates

2012-08-17 Thread Jojo
Thank you Il giorno venerdì 17 agosto 2012 04:15:59 UTC+2, Jojo ha scritto: > > Hi, the subject should be a little clear so, this is the project folder > structure > > project folder > locale > en > LC_MESSAGES > django.po > es > LC_MES

Re: django makemessages doesn't recognize trans in templates

2012-08-17 Thread Jojo
i'm sorry, templates are in application folder in the templates directory Il giorno venerdì 17 agosto 2012 04:15:59 UTC+2, Jojo ha scritto: > > Hi, the subject should be a little clear so, this is the project folder > structure > > project folder > locale &

django makemessages doesn't recognize trans in templates

2012-08-16 Thread Jojo
Hi, the subject should be a little clear so, this is the project folder structure project folder locale en LC_MESSAGES django.po es LC_MESSAGES django.po it LC_MESSAGES django.po project __init__.py mochileros settings.py urls.py wsgi.py

Re: how to organize models

2012-08-12 Thread Jojo
It works! Thank you very much! Il giorno sabato 11 agosto 2012 20:25:14 UTC+2, Alexis Roda ha scritto: > > Al 11/08/12 15:57, En/na Jojo ha escrit: > > Hi, I'm developing my first web application with Django. The model is > > growing up quite fast and I started to spli

how to organize models

2012-08-11 Thread Jojo
Hi, I'm developing my first web application with Django. The model is growing up quite fast and I started to split the code in different files I putted under models directory with its __init__.py file. Everything works fine, but syncdb doesn't recognize new models, and consequently doesn't crea

philosophy behind sites and applications in Django

2012-03-25 Thread Jojo
Hi guys, I'm new in Django (I started with the 1.3 and now I'm playing with the 1.4) and I'd like to understand better the phylosophy behind the concepts of sites and applications. Ok a site can contain multiple applications and an application can live in many sites, that's simple. Now. For me

Re: form won't save my submitted form

2010-04-18 Thread JoJo
> function > > On Fri, Apr 16, 2010 at 11:33 PM, ge...@aquarianhouse.com < > > > > > > ge...@aquarianhouse.com> wrote: > > def save(self): > >   # > > > Better: > >  don't overwrite save method > > > if form.is_valid(): &g

why am i getting this error?

2010-04-18 Thread JoJo
I have a page set up where a user can submit data, they write the data into the text field and press submit but i keep getting this error Traceback: File "c:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args,

error with forms

2010-04-16 Thread JoJo
Hi all, i have an error here im not sure what it means can anyone help me here is my models.py file## class AddStuffForm(forms.Form): title = forms.CharField(max_length=100) body = forms.CharField(widget = forms.Textarea()) def save(self): new_gossip = Gossip

Re: form won't save my submitted form

2010-04-16 Thread JoJo
com" wrote: > def save(self): >    # > > Better: >  don't overwrite save method > > if form.is_valid(): >     form.save() > > and you are fine > > On Apr 17, 12:30 am, JoJo wrote: > > > > > > > Hi all, i have created a site where

form won't save my submitted form

2010-04-16 Thread JoJo
Hi all, i have created a site where users can leave messages, and their opinions on certain topics, i have the form inserting the data, and i have the data saving but when i refresh the page the data disappears, also when i insert some data into the another text area i am getting an error saying E

Re: can't display my the data in my form

2010-04-16 Thread JoJo
an wrote: > On Apr 16, 3:08 pm, JoJo wrote: > > > > > > > Hi all, i am new to django, i was following an example online of how > > to use forms, the one i am on at the min is a user page, where the > > form accepts the submitted data, i have the html page disp

can't display my the data in my form

2010-04-16 Thread JoJo
Hi all, i am new to django, i was following an example online of how to use forms, the one i am on at the min is a user page, where the form accepts the submitted data, i have the html page displaying but when i click submit i get this error Environment: Request Method: POST Request URL: http://l