Re: How to get unclean data from newform?

2008-02-25 Thread shabda
Even after reading those two links I can not figure out the answer to my question. :( Brot wrote: > Hello, > > http://www.b-list.org/weblog/2007/nov/22/newforms/ > http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms > > Bernd > > On 26 Feb., 07:28, shabda <[EMAIL PROTECTED]>

Re: How to get unclean data from newform?

2008-02-25 Thread Brot
Hello, http://www.b-list.org/weblog/2007/nov/22/newforms/ http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms Bernd On 26 Feb., 07:28, shabda <[EMAIL PROTECTED]> wrote: > I have a newform form. It has data bound to it. But it may be invalid. > I want to get the data bound

How to get unclean data from newform?

2008-02-25 Thread shabda
I have a newform form. It has data bound to it. But it may be invalid. I want to get the data bound to each of its field. How can I do this? I can not use form.cleaned_data because that would work only when the form was valid. If I try for name, value in form.fields.iteritems(): print name,

Invitation from new FORUM

2008-02-25 Thread Sankar R
Hi I created a new FORUM to share the Knowlwdge Join with me... www.sankar.co.in Thanks & Regards Sankar R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Assigning Dates to DateField instances

2008-02-25 Thread David Marquis
Hi Tim, > lEvent = Event(request.POST) Are you sure it's not that line causing trouble ? -- David On 21-Feb-08, at 5:16 PM, Tim Sawyer wrote: I'm not sure I understand what I'm doing here. I'm trying to create an Event object from the data in a form (a simple html form, not a django

Re: Random UnicodeDecodeError ??

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 18:11 -0800, Jean-Pascal Houde wrote: > > > On Feb 25, 5:57 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > This means that almost certainly you don't, in fact, have correct UTF-8 > > data in your tables. Some ISO-8859-1 codepoints seem to have slipped in. > > You

Re: Random UnicodeDecodeError ??

2008-02-25 Thread Jean-Pascal Houde
On Feb 25, 5:57 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This means that almost certainly you don't, in fact, have correct UTF-8 > data in your tables. Some ISO-8859-1 codepoints seem to have slipped in. > You should write a script to run through the data and make sure it > really is

Re: Upload files to separate server from Django

2008-02-25 Thread [EMAIL PROTECTED]
Cool, thanks or the help guys! I'm going to try to figure out this JellyRoll thing and bypass all of this by using Flickr...for now at least... On Feb 25, 6:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm not certain about the practicality of this (it may have security > or

Re: Upload files to separate server from Django

2008-02-25 Thread [EMAIL PROTECTED]
I'm not certain about the practicality of this (it may have security or performance implications that i'm unaware of), but i've often thought about mounting the media server as a network drive on your dynamic server and giving Django full read-write privileges. This would mean that you don't

Re: Upload files to separate server from Django

2008-02-25 Thread Leonel Nunez
> > On Mon, 2008-02-25 at 13:34 -0800, [EMAIL PROTECTED] wrote: > > [...] >> I've had ideas of using rsync or scp but I'd like this to be as >> streamlined as possible. With rsync or scp, I'd need to have it check >> when a new file is added to a folder on my WebFaction account and then >>

Re: apache/mod_python config theory

2008-02-25 Thread Graham Dumpleton
On Feb 25, 9:53 pm, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > django is not in system/pythonpath but is in '/var/sites/test' path > which i define in PythonPath when i configure site/django project. > > is it possible not to have django in system wide path but to define in > apache conf via

Re: Upload files to separate server from Django

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 13:34 -0800, [EMAIL PROTECTED] wrote: [...] > I've had ideas of using rsync or scp but I'd like this to be as > streamlined as possible. With rsync or scp, I'd need to have it check > when a new file is added to a folder on my WebFaction account and then > automatically

Re: attributes on a many to many relationship

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 13:52 -0800, Rajesh Dhawan wrote: > > > On Feb 25, 4:04 pm, Tim Saylor <[EMAIL PROTECTED]> wrote: > > In a many to many relationship, is it possible to include additional > > attributes besides the foreign keys in the relationship table? > > Yes. See:

Re: SqlAlchemy branch status or composite keys?

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 13:33 -0800, Mike Driscoll wrote: > Hi, > > I am doing research on alternative Python Web Frameworks that I can > use at my place of work. We use legacy SQL Server and have many > databases from various vendors which include composite (multi-column) > primary keys of the

Re: "for key, value" in 0.96

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 10:21 -0800, Jose Jiménez wrote: > Hello everybody, > > i'm developing an application with the lates stable release of django > (0.96). > In the trunk version, i can do "for key, value in variable", but in > the 0.96 version i take an error: > > 'for' statements with five

Re: Django automatic admin creation

2008-02-25 Thread Russell Keith-Magee
On Mon, Feb 25, 2008 at 9:12 PM, <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I was trying to automate the creation of the Django admin profile, I > mean, I have a file with the data for the django admin creation and > when then I call: python manage.py syncdb < adminsettings.conf > > in

Re: Random UnicodeDecodeError ??

2008-02-25 Thread Malcolm Tredinnick
On Sun, 2008-02-24 at 16:12 -0800, jphoude wrote: > > I'm having the same problem with django svn (rev 7135). It happens only with > fcgi (I'm using lighttpd), not with "runserver". Also, sometimes there's no > error, but usually the second time I reload an exception is raised (so the > same

Re: "for key, value" in 0.96

2008-02-25 Thread Russell Keith-Magee
On Tue, Feb 26, 2008 at 3:21 AM, Jose Jiménez <[EMAIL PROTECTED]> wrote: > > How can i access to the key and the value of all elements of a > dictionary? If i do: for a in variable, a is the key, but i can't > access its value. The {% for key,value in list %} syntax was added in the trunk. In

Re: attributes on a many to many relationship

2008-02-25 Thread Jacob Kaplan-Moss
On 2/25/08, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Feb 25, 4:04 pm, Tim Saylor <[EMAIL PROTECTED]> wrote: > > In a many to many relationship, is it possible to include additional > > attributes besides the foreign keys in the relationship table? > > Yes. See:

Server profile

2008-02-25 Thread Anderson Santos
I am new to big scale apps and we are having a problem about server configuration. We have a shared server which is probably not holding the load of users and we probably have to find a more reliable server for the second time in a week. We have 4 facebook applications with over 3000 users per

Re: SqlAlchemy branch status or composite keys?

2008-02-25 Thread Ben Ford
Hi Mike, As far as I know the newest body of work regarding SA is the tranquil project on google code. Have a look here Hope it help, I haven't read through enough of the source to know if it does what you want. Cheers Ben On 25/02/2008, Mike Driscoll <[EMAIL

Re: SqlAlchemy branch status or composite keys?

2008-02-25 Thread Jacob Kaplan-Moss
Hi Mike -- The SQLAlchemy branch is defunct. Jacob --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this

Re: Upload files to separate server from Django

2008-02-25 Thread [EMAIL PROTECTED]
There is currently a ticket for this: http://code.djangoproject.com/ticket/5361 I'm not sure what the status of it is, but for usage(with manual uploads, or if you try the patch), check out: http://www.b-list.org/weblog/2008/feb/07/media/ On Feb 25, 3:34 pm, "[EMAIL PROTECTED]" <[EMAIL

CheckboxSelectMultiple

2008-02-25 Thread Narso
Hi, every body. How can I replace the SelectMultiple widget of the Admin Interface for a CheckboxSelectMultiple. I try using a new model field with the formfield() method overrided, but it only work with forms created by newforms, not by the Admin interface one. Thanks

Re: attributes on a many to many relationship

2008-02-25 Thread Rajesh Dhawan
On Feb 25, 4:04 pm, Tim Saylor <[EMAIL PROTECTED]> wrote: > In a many to many relationship, is it possible to include additional > attributes besides the foreign keys in the relationship table?   Yes. See: http://www.djangoproject.com/documentation/models/m2m_intermediary/

Re: Getting a UNION query in Django Models?

2008-02-25 Thread Rajesh Dhawan
On Feb 25, 3:48 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: > Rajesh Dhawan wrote: > > Hi Michael, > > >> How do I do something like this using Django Models? > > >> SELECT name,birthdate FROM friends > >>UNION > >> SELECT name,birthdate FROM enemies > >>ORDER BY

Re: Django minify and combine script?

2008-02-25 Thread Thierry
Thanks for the help :) --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Upload files to separate server from Django

2008-02-25 Thread [EMAIL PROTECTED]
I've been trying to find an answer to this question for a while and it seems like there are some ideas floating around but no definite answer. I have a photo site hosted with WebFaction that I have all my django code running on. However, I have another host that I'd like to serve all the media

SqlAlchemy branch status or composite keys?

2008-02-25 Thread Mike Driscoll
Hi, I am doing research on alternative Python Web Frameworks that I can use at my place of work. We use legacy SQL Server and have many databases from various vendors which include composite (multi-column) primary keys of the non-integer variety. Does anyone know how Ticket 373 is coming along

attributes on a many to many relationship

2008-02-25 Thread Tim Saylor
In a many to many relationship, is it possible to include additional attributes besides the foreign keys in the relationship table? For example, if "Users" and "Events" have a many to many relationship, is it possible to include an attribute for "registration status", which applies to the

Re: Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
And now I've got 'ClubForm' object has no attribute 'save'. Where the hell is that coming from? On Feb 25, 12:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Ah... that makes sense. Now how do I handle the sites hidden field? > > On Feb 25, 12:00 pm, "James Bennett" <[EMAIL PROTECTED]>

Re: Getting a UNION query in Django Models?

2008-02-25 Thread Michael Hipp
Rajesh Dhawan wrote: > Hi Michael, > >> How do I do something like this using Django Models? >> >> SELECT name,birthdate FROM friends >>UNION >> SELECT name,birthdate FROM enemies >>ORDER BY birthdate, name; >> >> I can't find any reference in the Django docs to

Re: "for key, value" in 0.96

2008-02-25 Thread Tom Badran
Do "for k,v in dict.iteritems()" Tom On Mon, Feb 25, 2008 at 6:21 PM, Jose Jiménez <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > i'm developing an application with the lates stable release of django > (0.96). > In the trunk version, i can do "for key, value in variable", but in > the 0.96

Re: Getting a UNION query in Django Models?

2008-02-25 Thread Rajesh Dhawan
Hi Michael, > How do I do something like this using Django Models? > > SELECT name,birthdate FROM friends >UNION > SELECT name,birthdate FROM enemies >ORDER BY birthdate, name; > > I can't find any reference in the Django docs to getting a UNION. The Django ORM

Re: Getting a UNION query in Django Models?

2008-02-25 Thread Tim Chase
> How do I do something like this using Django Models? > > SELECT name,birthdate FROM friends >UNION > SELECT name,birthdate FROM enemies >ORDER BY birthdate, name; several alternatives: Use a custom manager:

Re: Reconstruct User

2008-02-25 Thread Rajesh Dhawan
Hi Dave, > I'm a bit of a Django noob, coming from -- shudder -- PHP. I'm trying > to make an Ajax page that saves data from a form with a view that > requires authentication. This page also needs a lot of data that > depends on the user. I can't figure out how to get all this data back >

Getting a UNION query in Django Models?

2008-02-25 Thread Michael Hipp
How do I do something like this using Django Models? SELECT name,birthdate FROM friends UNION SELECT name,birthdate FROM enemies ORDER BY birthdate, name; I can't find any reference in the Django docs to getting a UNION. Thanks, Michael

Re: Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
Ah... that makes sense. Now how do I handle the sites hidden field? On Feb 25, 12:00 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Mon, Feb 25, 2008 at 11:55 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > >  Correction... ModelChoiceField works as expected. It's when I try to > >  

Re: Django-AssetPackager

2008-02-25 Thread isolationism
> I welcome patches, since I tried to just directly port the php version > of cssTidy to python there are bound to be bugs. Yeah, probably. The code is admittedly not the easiest thing to read; this is probably largely because the application was written in C++ first then ported to PHP. I'd

Re: newforms: emptying fields after failed validation

2008-02-25 Thread Karen Tracey
On Mon, Feb 25, 2008 at 12:25 PM, Gollum <[EMAIL PROTECTED]> wrote: > I use form.clean() method to validate two fields of my form and I want > those fields to be empty when the form is shown again. Aside: as a user, I find forms that do this annoying, since I can no longer see what it is the

"for key, value" in 0.96

2008-02-25 Thread Jose Jiménez
Hello everybody, i'm developing an application with the lates stable release of django (0.96). In the trunk version, i can do "for key, value in variable", but in the 0.96 version i take an error: 'for' statements with five words should end in 'reversed': for key, value in variable How can i

Comparing discussion forum apps

2008-02-25 Thread akaihola
Yvan Seth did a good job presenting a few discussion forum applications for Django in his blog entry [1] from December 2007. I'm now in the same position as Yvan was - I need to integrate a simple forum application to a Django site. I thought I'd share the results of my evaluation and allow

Re: Django admin error?

2008-02-25 Thread nwgadgetguy
FYI: The 'max_digits' specifies the field size, the 'decimal_places' specifies where to place the decimal point within the field. ;o) Have a nice day, and Happy Programming! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Unexpected newforms/sites behavior

2008-02-25 Thread James Bennett
On Mon, Feb 25, 2008 at 11:55 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Correction... ModelChoiceField works as expected. It's when I try to > set it as a multi-select that I get the sql error: For multi-select, use ModelMultipleChoiceField. -- "Bureaucrat Conrad, you are

Why limit comments to 3000 chars?

2008-02-25 Thread itpaul
I've read it's going to get a re-write. I hope this gets upped so I can remove my hack. Comments could be used for anything. Guides, reviews, reports whatever. How about some flexibility here. If you add on the extra markup added by markdown/textile etc, your not left with much room. Is there

Re: Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
Correction... ModelChoiceField works as expected. It's when I try to set it as a multi-select that I get the sql error: club_cars = forms.ModelChoiceField(queryset=Car.objects.filter(sites__id__exact=settings.SITE_ID), widget=forms.SelectMultiple)

Re: Random UnicodeDecodeError ??

2008-02-25 Thread Meista
On 25 Feb., 01:12, jphoude <[EMAIL PROTECTED]> wrote: > I'm having the same problem with django svn (rev 7135). It happens only with > fcgi (I'm using lighttpd), not with "runserver". Also, sometimes there's no > error, but usually the second time I reload an exception is raised (so the > same

Re: Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
ModelChoiceField does look like the best way to go, but when I try to use it I'm getting a SQL error. cars= forms.ModelChoiceField(Car.objects.filter(sites__id__exact=settings.SITE_ID)) --~--~-~--~~~---~--~~ You received this message because you are

Re: Django-AssetPackager

2008-02-25 Thread Dj Gilcrease
On Mon, Feb 25, 2008 at 7:11 AM, isolationism <[EMAIL PROTECTED]> wrote: > That said, I've come across a few bugs -- need to capitalize 'True' on > csstidy.py line 448. Opps, will fix > There is also something more serious afoot, as recompressing a > previously-compressed file results in a

newforms: emptying fields after failed validation

2008-02-25 Thread Gollum
I use form.clean() method to validate two fields of my form and I want those fields to be empty when the form is shown again. The problem is I don't know how to set fields from clean() method. Setting cleaned_data['field1'] = '' and returning cleaned_data from clean() method doesn't seem to work.

Re: Unexpected newforms/sites behavior

2008-02-25 Thread James Bennett
On Mon, Feb 25, 2008 at 10:14 AM, Doug B <[EMAIL PROTECTED]> wrote: > Assign your choices to the ChoiceField. The Field class is what does > the validation, not the widget. By passing them into just the widget > they are displaying, but not in the Fields 'approved' list. No, he really

cricketlogic.blogspot.com

2008-02-25 Thread sunnyscoop
Anyone interested in cricket, log on to cricketlogic.blogspot.com - the ideal place to share your cricketing logic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Javascript, Access Radio Button Elements

2008-02-25 Thread Little_Grungy
Thanks Daniel, Worked a treat, had tried something similar but for some reason it complained. This way worked fine. On Feb 21, 8:54 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On 21 Feb, 18:57, Little_Grungy <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I have a form definition for two

Re: single-field, single-instance models

2008-02-25 Thread Marty Alchin
On Mon, Feb 25, 2008 at 11:06 AM, Daniel Roseman <[EMAIL PROTECTED]> wrote: > > On Feb 24, 12:29 am, Jonathan Lukens <[EMAIL PROTECTED]> > wrote: > > > I am building a site for a customer, a restaurant owner, who wants to > > be able to edit virtually all of the text on the site, including the

Re: Unexpected newforms/sites behavior

2008-02-25 Thread James Bennett
On Mon, Feb 25, 2008 at 9:10 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Which - as expected - creates a multi-select box with the appropriate > cars. Problem is, when the user selects one the form validation kicks > it out, saying it is not a valid choice. If I don't use the custom >

Re: single-field, single-instance models

2008-02-25 Thread James Bennett
On Mon, Feb 25, 2008 at 10:06 AM, Daniel Roseman <[EMAIL PROTECTED]> wrote: > Sounds like a job for dbsettings: > http://code.google.com/p/django-values/ Or flatpages. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Re: Unexpected newforms/sites behavior

2008-02-25 Thread Doug B
> Which - as expected - creates a multi-select box with the appropriate > cars. Problem is, when the user selects one the form validation kicks > it out, saying it is not a valid choice. If I don't use the custom > widget everything is fine, other than it showing cars it shouldn't. > > What am I

Re: single-field, single-instance models

2008-02-25 Thread Daniel Roseman
On Feb 24, 12:29 am, Jonathan Lukens <[EMAIL PROTECTED]> wrote: > I am building a site for a customer, a restaurant owner, who wants to > be able to edit virtually all of the text on the site, including the > home page introductory text, etc. It would be simple enough to create > a model with a

Caching question

2008-02-25 Thread Constantin Christmann
Hello, I installed the CacheMiddelware with the following settings: CACHE_BACKEND = 'db://cache_table' CACHE_MIDDLEWARE_SECONDS = 300 CACHE_MIDDLEWARE_KEY_PREFIX = '' CACHE_MIDDLEWARE_ANONYMOUS_ONLY = False For testing I print the creation time of the rendered view in the corner of my website.

Re: Where to set the cwd?

2008-02-25 Thread Michael Hipp
Graham Dumpleton wrote: > On Feb 24, 11:08 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> So how do I make those lines look like that instead of having a bunch of >> absolute paths stuck in there or lots of messy stuff with >> os.path.join(os.path.dirname(__file__)...) in it? > > Don't. You

Re: Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
Along the same lines, I'm obviously using the sites framework, and the relevant model has sites as it can be in either... how do I pass the site to the form as a hidden field? I'm trying ClubFormClass.base_fields['sites'].widget = widgets.HiddenInput(attrs={'value': settings.SITE_ID}) but

Re: Django-AssetPackager

2008-02-25 Thread isolationism
Very nice. I have been using csstidy (C++ version) for a few years now to compress a rather large amount of CSS for an enterprise-class product. I have had use to call upon it rather a lot (a full build handles nearly a thousand output documents). Since my css framework compiler is written in

Unexpected newforms/sites behavior

2008-02-25 Thread [EMAIL PROTECTED]
I've got a big cars model. Some are assigned to one site, some to the other. In the form I only want to show the ones appropriate to the site, so in my view I've got: cars = Car.objects.filter(sites__id__exact=settings.SITE_ID) car_choices = [(i.slug, i.make) for i in cars] FormClass

Re: Django automatic admin creation

2008-02-25 Thread Gonzalo Delgado
El Mon, 25 Feb 2008 04:12:08 -0800 (PST) [EMAIL PROTECTED] escribió: > > Hi folks, > > I was trying to automate the creation of the Django admin profile, I > mean, I have a file with the data for the django admin creation and > when then I call: python manage.py syncdb < adminsettings.conf > >

Displaying a Tree view in template using django-mptt

2008-02-25 Thread Manakel
Hello Dear all, First let me say that i'm very new in term of web based developpemnt (the HTML/CSS Part). i've always worked on backend logic (in java, python, etc) never on the end user interface directly. This said, i'm trying to use the django-mptt to install a simple hierarchy in my

Re: scaffold with Django

2008-02-25 Thread James Bennett
On Mon, Feb 25, 2008 at 6:24 AM, bcurtu <[EMAIL PROTECTED]> wrote: > Is there any kind of utility for automatic scaffolding? By preference, Django development does not involve generation of static files of code on disk; instead, functionality like "show a form to create an object", "show a list

scaffold with Django

2008-02-25 Thread bcurtu
Is there any kind of utility for automatic scaffolding? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from

Django automatic admin creation

2008-02-25 Thread ranchogw
Hi folks, I was trying to automate the creation of the Django admin profile, I mean, I have a file with the data for the django admin creation and when then I call: python manage.py syncdb < adminsettings.conf in the file adminsettings.conf I am giving the right answers but when Django asks for

Re: Django admin error?

2008-02-25 Thread PB
That was it. Cheers! On Feb 24, 3:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Sat, 2008-02-23 at 06:42 -0800, PB wrote: > > > When trying to add 46.229253 to a floatfield > > > I get displayed error: > > > > Please enter a valid decimal number with a whole part of at most -19 > > >

Re: apache/mod_python config theory

2008-02-25 Thread Aljosa Mohorovic
this post is oriented towards high load sites, my question is not can i configure it this way but what performance issues can i expect. i'm actually asking will this kind of configuration work under high load and what would you recommend. --~--~-~--~~~---~--~~ You

apache/mod_python config theory

2008-02-25 Thread Aljosa Mohorovic
django is not in system/pythonpath but is in '/var/sites/test' path which i define in PythonPath when i configure site/django project. is it possible not to have django in system wide path but to define in apache conf via PythonPath where to find django? apache conf below is example of a way

$$$$$$$$www.200836.com----Beijing/peking 2008 Olympic Games The target of VMC Operations is to offer the best possible conditions under which accredited journalists and photographers can successfull

2008-02-25 Thread beijing olympic games--www.200836.com
$www.200836.com--- why we buy Peking 2008 Olympic Games― souvenirs 1 low price 2 best quality-- licensed products by Peking Organizing Committee 3 many products to choose 4 most precious―limited circulation 5,we accept all payment methods,such as paypal,credit card, telegraphic

Re: Django Filebrowser with FastCGI

2008-02-25 Thread David Reynolds
On 24 Feb 2008, at 1:37 pm, shabda wrote: > > I think, In a lot of old code, _ was automatically imported as > ugettext, while the newer code explicitly imports it as > from django.utils.translation import ugettext_lazy as _ > Might be when you are running fastcgi, you are hitting some path >

Re: mysqldb fails to import after following directions

2008-02-25 Thread David Reynolds
On 23 Feb 2008, at 3:51 am, newbiedoobiedoo wrote: > Am in the process of setting up the mysqldb and it succeeds to install > and build, > however, the import mysqldb test command still fails. How about: import MySQLdb (the case is important) -- David Reynolds [EMAIL PROTECTED]

Re: automatic type conversion from URL parameters

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 00:07 -0800, webheld wrote: > hi django guys, > > is there a simple way to convert URL parameter for views > automatically? > > let's say I have in my urls.py: > > (r'^myview/(\d+)/', 'myview') > > and I know that myview will *always* receive an int parameter, can >

automatic type conversion from URL parameters

2008-02-25 Thread webheld
hi django guys, is there a simple way to convert URL parameter for views automatically? let's say I have in my urls.py: (r'^myview/(\d+)/', 'myview') and I know that myview will *always* receive an int parameter, can django convert this type somehow automatically? thanks a lot, michael