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
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
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"
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
>
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
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
&
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
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
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
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
> 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
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,
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
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
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
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
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
17 matches
Mail list logo