Thanks
I'm new to Django and just about to install it and give it a test
drive.
What I need to know is, will the Django Framework address the problem
of "serving xhtml with correct mime-type"? This seems to me to be
something that belongs within the framework and something that v1.x
should address.
I
I hit a wall and was wondering if anyone else has hit this particular
wall. I wanted a simple "tree view" generated from my model. I figured
I might be able to do this nicely with a recursive template, but as far
as I can tell after only 3 levels (2 {% include %} blocks)
(component_tree --i
please ignore my prev mail, tab space combo in gmail!-- Forwarded message --From: Amit Upadhyay <
[EMAIL PROTECTED]>Date: Feb 4, 2006 9:56 AMSubject: Re: Multiple checkboxesTo: django-users@googlegroups.comOn 2/4/06,
Javier Nievas <[EMAIL PROTECTED]> wrote:
I have a list of items,
On 2/4/06, Javier Nievas <[EMAIL PROTECTED]> wrote:
I have a list of items, each one with a checkbox to select it. I wantto post this info to a django view, but i don't know how should I usethe name="" and value="" of the input tag to gain access to it from
django as it if was an array.The django w
Maniac wrote:
Give them all the same name but different value.
Then when you submit a form browser will send values of checked
checkboxes and then in a view you can do
request.POST.getlist('myfield')
A typo: I meant 'myfield' and 'array' to be the same name but messed
them up whe
Javier Nievas wrote:
I have a list of items, each one with a checkbox to select it. I want
to post this info to a django view, but i don't know how should I use
the name="" and value="" of the input tag to gain access to it from
django as it if was an array.
Give them all the same name but
Jamison Roberts wrote:
Well if the free DB2 acts like the OS-390 version, then I want no part
of it. Unfortunately I have to deal with mainframe Db2 for my job, and
it's no fun at all. There is nothing easy to use about it. One of our
data warehouses has several Oracle 9iR2, and they are mu
Not clear here on the authentication system. Is itdesigned for back-end
users or is it more generalized any authentication usage. Can it
handle thousands of users accounts?
Hello,
I have a list of items, each one with a checkbox to select it. I want
to post this info to a django view, but i don't know how should I use
the name="" and value="" of the input tag to gain access to it from
django as it if was an array.
I used something like that in PHP:
...
Text
Text
On Thu, 2006-02-02 at 12:32 -0800, Jason Huggins wrote:
> Hmm... Jason, your code is probably the "next logical step" for my
> hack. The following is the right link to your code, yes?
> -->http://www.carcosa.net/jason/blog/computing/django/authentication-2005-12-05-13-25.html
To some of it, heah
I recently converted my Wordpress install to a Django based solution
hosted on Dreamhost. This worked all fine and well until Dreamhost
announced the new svn over http support. I was excited to use the new
svn over http so I installed it via the admin console into the same
directory as my Django
Thanks Adrian.
My main concern was with speed, and I'm glad that's not the case.
Regards,
Sia
On 2/3/06, Siah <[EMAIL PROTECTED]> wrote:
> I have lots of views. So, I separated them into sections. I want to
> package them together with the views they are associated with. Is it
> incorrect design decision to place my URLs in the same file as my View?
> Does it make it any slower? What about
Hi,
I have lots of views. So, I separated them into sections. I want to
package them together with the views they are associated with. Is it
incorrect design decision to place my URLs in the same file as my View?
Does it make it any slower? What about my manipulators + views + URL in
the same fil
>Does this mean I have to use this in all the models?
>class META:
>module_constants = {
>'gettext_lazy': gettext_lazy
>}
>
>- or -
>
>def __repr__(self):
>from django.utils.translation import gettext_lazy
>return gettext_lazy("blah")
Exactly.
>It doesn't sound li
hugo wrote:
> >Are you sure? Because now it throws a NameError exception.
> >global name 'gettext_lazy' is not defined
>
> Yes, I am sure. I wrote that stuff ;-)
>
I'm convinced.
> >>> from django.utils.translation import gettext_lazy, activate
> >>> activate('de-de')
> >>> print gettext_lazy('Us
On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have just realized how awesome having multiple inheritance will be, so I amwondering if there is a guess at a release date for Django 0.92?I guess I just try out the branch itself until the release is made.
I have another question, my applic
On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have just realized how awesome having multiple inheritance will be, so I am
> wondering if there is a guess at a release date for Django 0.92?
The best place to look is the wiki page's "Status" section.
http://code.djangoproject.com/wiki
Hi Guys,
I have just realized how awesome having multiple inheritance will be, so I am
wondering if there is a guess at a release date for Django 0.92?
I guess I just try out the branch itself until the release is made.
Thanks for all your hard work!
Jason Pepas
On 2/3/06, sam <[EMAIL PROTECTED]> wrote:
> My bar() is a pure function defined outside all model classes but that
> gave me the error. (If I defined it inside the same class from which it
> was called, then it's OK). How do I deal with this?
This is a bit of annoying magic Django currently does,
On 2/3/06, tnleeuw <[EMAIL PROTECTED]> wrote:
> I'm storing directory names in a database. At first I was reading the
> directory-names as plain strings, and all was well. Then I ran across a
> file that was in some strange (cyrillic) encoding and the database
> (which was configured for UTF-8 enc
On 2/3/06, Luke Skibinski Holt <[EMAIL PROTECTED]> wrote:
> The FAQ is quite brief on this: "It's a list of dictionaries in order
> of query execution."
> Does it include all queries made or just those that hit the db?
It only includes those that hit the DB. I've clarified the FAQ a tiny
bit, alt
On 2/3/06, tnleeuw <[EMAIL PROTECTED]> wrote:
> Besides the unicode-problem mentioned in another post, I have a problem
> where it seems 1 directory-name, 'NEW', seems to confuse the system. It
> might be a problem with PsycoPG... perhaps with Django... I don't know.
>
> The error which I get is:
Amit,
My bar() is a pure function defined outside all model classes but that
gave me the error. (If I defined it inside the same class from which it
was called, then it's OK). How do I deal with this?
To import, what package path should I use?
Sam
The FAQ is quite brief on this: "It's a list of dictionaries in order
of query execution."
Does it include all queries made or just those that hit the db?
I have several context processors calling the db and drawing things in
on each page request, and although it may be generating these queries
(i
On 2/3/06, sam <[EMAIL PROTECTED]> wrote:
I was tring to write a custom function inside a mode class, say X:class X(meta.Model):i = meta.IntegerField()...def foo(self):return bar(self.i)If I define bar() in the same model file, django complained the
"NameError -- global name bar
On 2/3/06, hugo <[EMAIL PROTECTED]> wrote:
> Or a way for the template loader to tell the machinery that the
> template is already compiled? That way a template loader could cache
> compiled templates and on access return the compiled template to
> Django, instead of the template source?
>
> I wou
I was tring to write a custom function inside a mode class, say X:
class X(meta.Model):
i = meta.IntegerField()
...
def foo(self):
return bar(self.i)
If I define bar() in the same model file, django complained the
"NameError -- global name bar does not exist". How do I get ar
Hi,
I'm developing my first Django app (a photoalbum-app) and ran into a
problem with the database.
Besides the unicode-problem mentioned in another post, I have a problem
where it seems 1 directory-name, 'NEW', seems to confuse the system. It
might be a problem with PsycoPG... perhaps with Djan
I'm working on my first Django app (a photoalbum) and ran across a
problem with Unicode filenames (on windows XP).
I'm storing directory names in a database. At first I was reading the
directory-names as plain strings, and all was well. Then I ran across a
file that was in some strange (cyrillic)
hello, i am writting a basic form using
'django.views.generic.create_update.create_object', dict(info_dict,
post_save_redirect="/recette/") ).
It works all fine in my template ( http://django.pastebin.com/536725 )
until i decide to show errors,
Allr eferences to {{ form.error_dict }} works perfe
http://www.postneo.com/2005/08/17/django-generic-views-crud
I m following this method for my generic view, if there is any
outdatted stuff can i know which of them.
I am more interested in the generic view for create template.
34 matches
Mail list logo