Hi,
One of my customers also wants this. One thing I thought of is making
the e-mailadress case insensitive; only storing lowercase e-mailaddress
and lowercase the user input address when loggin in. Another thing when
not really using the username field is to fill it with an as long as
possible r
http://jtauber.com/blog/2006/05/23/primitive_python_version_of_gwt_working
Someone posted this to our site: James Tauber has built "a Python
equivalent to the Google Web Toolkit (GWT)" -
http://code.google.com/webtoolkit
It's interesting :)
--~--~-~--~~~---~--~~
Adrian Holovaty wrote:
> On 5/23/06, Gary Wilson <[EMAIL PROTECTED]> wrote:
> > Yes, I guess I could split the text entered and then do a search for
> > each word in both first_name and last_name like the admin interface
> > does... just seems like this would return many more results than wanted
>
On 5/24/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> I also look at some alternatives there, including one that I'm really
> excited about. I think it could be integrated on top of Django rather
> easily, but I'm not sure if my Python-fu is up to the challenge.
>
> It's just my 2 cents, but, hell,
I used to code stuff with TurboGears, which started sucking rather
fast. I still liked their templating engine, Kid. Sort of. I've also
tried Zope 3's and Django's, a couple of homegrown ones, Interchange's
as used on our big webstore and a bunch of others. As far as I'm
concerned, they all have f
I went ahead and filed a patch with Trac,
http://code.djangoproject.com/ticket/1994
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@goog
On Wed, 2006-05-24 at 23:22 +0200, Christian Schneider wrote:
> Hi all,
>
> I'm using django in a server that is written as a twistd application.
> I've noticed that the memory footprint of the server grows heavily the
> longer it runs. When I commented out all sections calling django
> memory us
On 25/05/2006, at 3:11 AM, Bill de hÓra wrote:
>
> tomass wrote:
>>
>
> I actually like that solution (among other things it scales on a
> cluster
> without hammering a central db or having to distribute sessions).
> But if
> you want you could store data on the server and pass a form 'sessi
On 5/24/06, Christian Schneider <[EMAIL PROTECTED]> wrote:
>
> USER PID %CPU %MEM VSZRSS TTY STAT START TIME COMMAND
> dwasrod 3487 48.7 0.7 18648 15164 ? Ss 22:48 0:01
> /usr/bin/python2.3 /usr/bin/twistd -o -y jobs-application.py
How big is your peak usage?
Co
Hi all,I'm using django in a server that is written as a twistd application. I've noticed that the memory footprint of the server grows heavily the longer it runs. When I commented out all sections calling django memory usage stays constant. So on first sight it seems the guilt lies with Django.
Be
And in addition, for anyone who's interested, if you change the
default path from /comments/ for your commenting, you'll need this
patch:
http://code.djangoproject.com/ticket/1997
It will rectify an issue with posted forms redirecting to the wrong location.
-Phil
On 24/05/06, Phil Powell <[EMA
Well, I found a simple solution to my own problem, so for the archives:
If you place files form.html and freeform.html in a directory called
comments/ within your templates/ directory, they will override the
default templates!
Nice and simple, and obvious when I thought about it a little - this
I think so...
In the other hand, maybe I must borrow other concept from dotnetnuke.
Leveraging the template system, I have:
templates\basetemplateshere.htm
templates\blog\blogtemplateshere.html
Maybe if I go this way:
templates\Site1\customizedbase.html
templates\Site1\blog\customizedblogtemp
I know...
I have the option to get Linux as a fallback.
The reason? I have everything now under this package, the databases,
the sites, the expertise. I have almost zero experience in run linux
and configure this...
Anyway, despite the fact if I go to Linux or not, I think that persue
the optio
Seems like you would get better results from your time by writing a
script to replace relative paths with absolute urls.
On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Ok.
>
> Like I say, I understand the reason in separate the dynamic from the
> static, despite the fact this is the
On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The problem is this:
>
> I have designers.
I'll be sure to let our designers know that they're a problem, because
they sure haven't had this issue.
> Some have a webserver, some not. So, I get the desing I need to remake
> the links or f
On 5/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I seem to be able to log in as a user with the is_active flag not set
> to True.
> A validator in django.contrib.auth.forms.AuthenticationForm should test
> for that.
>
> I'd log a bug, but as far as I can tell there's no place in the bug
On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> And I think is very confusing. Is not starnge then people fear to test
> python for web hosting: is far more dificult that any other web-enable
> language in the deploy side of the things...
In your own self-interest: you've said you plan
Ok.
Like I say, I understand the reason in separate the dynamic from the
static, despite the fact this is the first time I learn about this
arguments (never before from my ASP.NET experience or PHP experience I
read anything like that)... however this is not my issue.
The problem is this:
I hav
tomass wrote:
> Hi Folks,
>
> I'm sure there's a better solution for this, just not sure what it
> is...
>
> I have a 4 step form and I'm currently capturing all posted data
> between each step and then re-posting it through hidden input fields
> and recapturing it at each successive step. URL r
I read anything I get in google about IIS/FastCGI/Django
deployment/WSGI and that stuff..
And I think is very confusing. Is not starnge then people fear to test
python for web hosting: is far more dificult that any other web-enable
language in the deploy side of the things...
I read the ActiveS
I just wanted to pose this question before raising a ticket, or
starting to work on a patch, just incase someone's got a workaround.
I'm implementing contrib.comments, and everything works fine in a
basic dev setup. However, I'm running into a problem when trying to
deploy on a more complex setu
On 5/24/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> I would prefer self.upload_to to be restored to its original value after
> call. Otherwise a call to save_*_file with a custom parameter would
> change object's "global" behavior which is very counter-intuitive. In
> fact I think custom uploa
On 5/23/06, pbx <[EMAIL PROTECTED]> wrote:
> Just wanted to offer my thanks to Adrian (and anybody else who worked
> on this) for adding some spam defense to the Trac server. For those of
> us who check the timeline often, it's a big relief.
Hey, it's my pleasure. The spam defense appears to be w
Bill de hÓra wrote:
>One tip: don't start your path with '/media': it might conflict with the
>admin app if you have it installed.
>
>
BTW you can overwrite admin's media path with ADMIN_MEDIA_PREFIX
(http://www.djangoproject.com/documentation/settings/#admin-media-prefix)
--~--~-~--
Jay Parlar wrote:
>+def save_func(instance, filename, raw_contents, upload_to=""):
>+if upload_to:
>+self.upload_to = upload_to
>+instance._save_FIELD_file(self, filename, raw_contents)
>+setattr(cls, 'save_%s_file' % self.name, save_func)
>
Is this patch useful/correct enough to warrant submitting a ticket?
Index: django/db/models/fields/__init__.py
===
--- django/db/models/fields/__init__.py (revision 2970)
+++ django/db/models/fields/__init__.py (working copy)
@@ -56
[EMAIL PROTECTED] wrote:
> For example, the "feature" of not serve static files. The worst? I
> don't can relly in the available workarounds to this "feature" (yeah I
> put "feature" for be sarcasting... I understand the reason, the why,
> but be patiente: I have a deadline too and this experimen
We had a long discussion about this very topic recently, search for
the thread "Accessing a field's upload_to strftime". It didn't start
out with what you're asking, but it certainly ended there.
Jay P.
On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I'm using Django 0.9
I dont want my users to have to bother with a username. I want them to
authenticate with their email as their username. But django wont allow
valid @ signs (and other stuff) in a username. I could patch that but
that could bite me badly. So I found a better way.
First I create a manipulator:
fro
Hi All,
I'm using Django 0.91 and I have a slight problem with overwriting
files.
In seems that by default admin does not allow one to overwrite an
existing file and I want to do that.ie, if I save a file call
myfile.jpg and upload and identically named file to the same location
using the admin
I got an idea and i am tring it now and i think it will succeded
if we considered the xml file as normal file and we write in it as we
write in files using output.write('test here') this idea will solve the
problem without using any python xml i think
Howver thanks for all the people that answere
wiz wrote:
> On 5/24/06, Mary Adel <[EMAIL PROTECTED]> wrote:
>> How could i return the data from the database in a xml file with certain
>> format using the views in Django
> You can use generic_views + templates for printing XML in your format.
> Or views + some pythonic XML-streamer.
>
> >
Is
You might be able to use Django's Syndication Framework to output the
XML by setting up a custom feed that uses your required format instead
of RSS. Lots of information can be found at
http://www.djangoproject.com/documentation/syndication/
Hope it helps. : )
Mary Adel wrote:
> Can any one help i
On 5/24/06, Mary Adel <[EMAIL PROTECTED]> wrote:
> How could i return the data from the database in a xml file with certain
> format using the views in Django
You can use generic_views + templates for printing XML in your format.
Or views + some pythonic XML-streamer.
--~--~-~--~~-
Hi,
I'm trying to cache an individual page (thus using the simple
cache_page decorator) and I came across those questions :
- why is it necessary to add CACHE_MIDDLEWARE_SECONDS to my settings ?
I dont use the middleware, just the cache_page decorator
- is there a way to cache a page (using
On 24 May 2006, at 9:47 am, Mary Adel wrote:
>
> Can any one help in the following
>
> How could i return the data from the database in a xml file with
> certain
> format
> using the views in Django
You could perhaps try Python/XML...
http://pyxml.sourceforge.net/topics/howto/xml-how
There's one very good reason why Django (and any other framework / CMS
worth it's salt) deliberately avoids serving static files, and that
reason is "performance".
Your content serving mechanism should be about retrieving and
manipulating content data, and performance can be haevily impacted if
a
Can any one help in the following
How could i return the data from the database in a xml file with certain
format
using the views in Django
Thanks,
Mary
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
hironobu wrote:
> nkeric wrote:
>>> I guess it should be something reated to mysql's internal encoding?
>>> AFAIK, you will need to specified mysql's encoding to utf-8 before
>>> using it :)
>> - since mysql version >= 5.0 :)
>
> Thank you.
>
> MySQL version is 4.1, so it may differ a little fro
Malcolm writes:
>I think you forgot to attach the patch. :-)
Yes, indeed. Thank you.
I posted the patch.
And now I'm checking MySQL settings and 5.0's handling.
This problem may disappear on another environment,
then I'll report details later.
--~--~-~--~~~---~--~--
nkeric wrote:
>yep, agree too :) did you ever open a ticket with your patch?
>
>
No I didn't. Feel free to do it and make a patch :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
Can anyone help in this
How to create a drop down box in the admin interface that takes it is
data from the database
Thanks,
Mary
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
nkeric wrote:
>> I guess it should be something reated to mysql's internal encoding?
>> AFAIK, you will need to specified mysql's encoding to utf-8 before
>> using it :)
>- since mysql version >= 5.0 :)
Thank you.
MySQL version is 4.1, so it may differ a little from your guess,
but this is reall
Ivan Sagalaev wrote:
> This is the question of where you stop adding functionality to
> generic views. On one end there is a solution so basic that it is not
> useful to anyone and on the other end there is a solution so bloated
> that nobody event wants to start to learn how to use it :-). I thin
nkeric wrote:
> I guess it should be something reated to mysql's internal encoding?
> AFAIK, you will need to specified mysql's encoding to utf-8 before
> using it :)
- since mysql version >= 5.0 :)
--~--~-~--~~~---~--~~
You received this message because you are
FYI, we're using django's 0.95 trunk version to handle Chinese
contents, django works properly whether with sqlite3 or postgresql as
its db backend. pre-magic-removal django worked properly too.
I guess it should be something reated to mysql's internal encoding?
AFAIK, you will need to specified
nkeric wrote:
>btw, how about creating a more generic patch for django's generic view
>methods? Since this is really a "generic" scenario - I usually need to
>"get some object list by some condition" :)
>
>
Actually I asked on django-dev if this thing would be of any interest if
I implement it
Matthew McDonald wrote:
> That would be extremely handy to have. I too thought Nkeric's first
> pattern should work how it looks:
hey, that's a good idea IMO :)
I guess I'm going to spend sometime on it to see if I could create a
patch for this base on Ivan's approach & Matthew's idea :)
--~--~
49 matches
Mail list logo