On Dec 5, 6:05 am, Tsung-Hsien wrote:
> I have been delete the "#, fuzzy" and remain the "#, python-format",
> but the string still show English.
You do need to remove the ", fuzzy" in order for the translations to
be used.
But you also need to recompile the .mo files
> Hi! If I have some html file somewhere (i.e. /var/file), how to
> redirect user to it? It is not a template and not in a template
> folder. Thanks :)
"Redirect" probably isn't the word you wanted there. If you really
meant "How do I make my view function display the contents of an
arbitrary
> when I use this command
> ./manage.py makemessages -l nl -e=html,txt,py --
> pythonpath=apps_pinax,templates_pinax
>
> It finds also text in the txt files.. but it also comments out parts
> of translations I found with the first command like
>
> #~ msgid "Discussion Topics for Tribe"
> #~
On May 12, 6:47 am, zachp wrote:
> ... I need the user who does this to be able to select a
> month (and possibly a year) for the drawing she wants to run. I need
> django to convert those two data points into a datetime object for me,
> but it's not readily obvious how to do
On May 11, 3:47 am, phred78 wrote:
> I've specified translation string, got the translations done and
> compiled.
>
> It's working for the most part, but some of the strings don't show up
> correctly translated, where others do.
> What could be causing this? Has anyone come
On May 8, 8:06 pm, Stephen Sundell wrote:
> Can I wrap something like : "Click here to go
> back." inside a blocktrans tag?
Certainly! The only caveat is that the person doing the translation
work (often a hired contractor, sometimes from outside of the Computer-
> Also, what does 'fuzzy' mean in my .po file?
I'm not an authority on the subject but have dealt with translations
and .po files quite a bit.
The term "fuzzy" in this context means it's not an EXACT match, but
it's very similar; i.e. a "fuzzy match".
The "fuzzy" usually shows up when the
> {% for machine in web %}
> {% for status_message in status.machine %}
> ...
> So, i want to be able to do something like status.machine..
If there's a BETTER way, I'd love to hear it too, but this is usually
accomplished with a custom filter.
It's commonly named "getattr", and your template
On Jul 13, 9:58 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote:
> You should create your custom widget for this.
Also see the thread from a couple weeks ago titled "choices",
http://groups.google.com/group/django-users/browse_thread/thread/d373794afef19e39/0009b671ebd91ac1
On Jul 3, 8:13 am, urukay <[EMAIL PROTECTED]> wrote:
> no, no i mean it otherway, just like Rajesh Dhawan wrote (link he sent).
I will rephrase your original question; it's not obvious to everyone
that the REASON you want two of your six choices to be "not
selectable" is because they are
> urlpatterns = patterns('',
> (r'/step-1.html', 'billpay.views.DoPayDetailForm'),
> )
>
> Wouldn't this call the dopaydetailform view if you went to the page /
> step-1.html ?
At this stage, while you're still learning, I would AVOID making URL
mappings that "appear" to be HTML files,
On Jun 24, 4:22 pm, Tye <[EMAIL PROTECTED]> wrote:
> Semi-off-topic:
> Does anybody know how to get notepad to save as UTF-8 by default? It
> keeps trying ANSI, and I keep hating.
Unlikely; Notepad is REALLY lightweight.
Wordpad is MUCH better; it handles files >64K, files with UNIX-style
Ahh! That helps. Sorry, I haven't ever used form_for_model() and
didn't recognize that IssueEntryForm in the original post was NOT a
form instance. Corrections embedded below.
On Dec 21, 8:48 am, mike <[EMAIL PROTECTED]> wrote:
> Sorry if I was unclean, I just discovered this and I am still
On Dec 21, 2:59 am, brian corrigan <[EMAIL PROTECTED]> wrote:
> try using
>
>
Seems like a good idea, but remember that a DISABLED field's value
does _not_ get sent back with the HttpRequest submission, and will
therefore be flagged as missing input if the form's field definition
doesn't have
On Dec 20, 2:58 pm, mike <[EMAIL PROTECTED]> wrote:
> anyone know how to auto assign a variable to my form field?
>
> IssueEntryForm.base_fields['customer'].widget = widgets.HiddenInput()
> IssueEntryForm.base_fields['customer'].widget = HELP
I'm not sure I understand the question; what exactly
> On Sun, 2007-12-16 at 10:56 -0500, Tim Riley wrote:
> > Is there a way that the admins can limit the amount of spam coming
> > from this mailing list?
I've never moderated a google group, but it seems like a nice feature
would be the ability to require moderator approval of the FIRST post
made
On Dec 14, 1:03 am, Steve Freitas <[EMAIL PROTECTED]> wrote:
> Only, it doesn't work. It seems like . lookups
> require the argument to be a literal, not a variable.
Grindizer addresses your specific problem of enumerating key/value
pairs in a template (piece of cake!), but if you still wanted
On Oct 16, 5:35 am, Divan Roulant <[EMAIL PROTECTED]> wrote:
> I loose request data when I call a view with reverse from a previous
> view. Here is what I do:
>
> def my_first_view(request):
> # Processing here
> return HttpResponseRedirect(reverse('my_second_view,
> args=(request,)))
>
>
On Oct 17, 1:52 pm, jacoberg2 <[EMAIL PROTECTED]> wrote:
> I am trying to create a checkbox form so that the user can delete a
> large number of
> registrations at once. I am wondering how I should set up the view in
> order to deal with
> the incoming data. Any suggestions?
The template can
> The html code isn't being rendered properly.
I'm assuming this is a slightly-noobish question (I'm still a novice
myself, so if the problem is something more subtle, nevermind me).
Your template seems a little light on the use of the "|escape"
filter. So if any of the values in your database
On Aug 24, 7:28 pm, "Ariel Mauricio Nunez Gomez"
<[EMAIL PROTECTED]> wrote:
> Note: The user profile part was taken from this useful blog entry on James
> Bennet
> site:http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
Yeah, that's the advice I keep seeing when this
On Aug 9, 7:34 pm, [EMAIL PROTECTED] wrote:
> So, if I use clean_annotationvalue to do both how would I be able to put an
> error
> message on the annotation type ...
I think you were on the right track the first time. Philosophically,
the Form's clean() method is where you're supposed to be
On Aug 9, 11:23 am, "Lic. José M. Rodriguez Bacallao"
<[EMAIL PROTECTED]> wrote:
> can I include more than one template tag definition in a single template tag
> file? Right now I was trying to do that and I can't.
I'm still a novice, but I know you can define multiple filters in
one .py file,
(I know I can't simply _NEST_ {{}}'s in a template, but I'm using it
as pseudosyntax to help express what I'm _trying_ to do.)
Is there any way, in a template, to get an attribute of an object when
the NAME of that attribute is dynamic (i.e. in/from another object)?
What I really want is:
{{
Newforms has a spiffy way to dynamically set the "initial" values of
fields, in the view code when the Form is constructed.
choosecolorform = ChooseColorForm(initial={'color': 'black'})
I was hoping it would be just as easy to dynamically define the
choices available in a ChoiceField, too...
On Jul 22, 10:16 am, "Daniel Kvasnicka jr."
<[EMAIL PROTECTED]> wrote:
> errors = form.get_validation_errors(data)
>
> which in effect calls prepare() on every field, my data from those
> selects are trimmed and contain only the last checked item. So when I
> have the following choices from which
Jason F. McBrayer wrote:
> james_027 <[EMAIL PROTECTED]> writes:
>
> > what if I need additional fields or methods for my apps? Do i inherit
> > it or edit the user class?
>
> The standard approach is here:
> http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
I'm glad this
On Jul 16, 3:36 pm, "Lic. José M. Rodriguez Bacallao"
<[EMAIL PROTECTED]> wrote:
> How can I make a recursive one-to-many relation?
>
> --
> Lic. José M. Rodriguez Bacallao
According to
http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships
``To create a recursive
Jeremy Dunck wrote:
> On 5/23/07, Michael Lake <[EMAIL PROTECTED]> wrote:
> ...
> > return render_to_response('lab/user.html', data)
>
> Yeah, that's your problem right there.
> :
> ... I imagine this bites a lot of people on the ass. :(
Add me to the list of ass-bitten and extremely
rskm1 wrote:
> Any chance of getting the _DOCS_ updated?
>
> For example, it would be nice if the first place {{perms.foo}} was
> mentioned would at least hint that it wouldn't work in conjunction
> with the render_to_response() shortcut, or perhaps it could introduce
> the Re
30 matches
Mail list logo