Re: Integrating Selenium web tests with django test suite

2007-06-05 Thread Almad
On Jun 4, 4:15 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/2/07,Almad<[EMAIL PROTECTED]> wrote: > I haven't played with Selenium integration extensively; however, the > broad use case (tests against a live server) is one that I am > interested in supporting. > #2879 contains a pa

Re: edit_inline causing problems with multiple relations

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 13:01 -0400, James Punteney wrote: > I'm having this issue as well. > > Anyone know if a ticket was filed for this or have any fixes been > done? I looked in Trac and didn't anything. > > If not I'll go ahead and submit a ticket. As far as I know, there is no open ticket f

Re: Using login_required with direct_to_template?

2007-06-05 Thread Malcolm Tredinnick
On Wed, 2007-06-06 at 04:12 +, [EMAIL PROTECTED] wrote: > I'm trying to use the login_required decorator with the > direct_to_template generic view. I've read through the "Extending > Generic Views" section of DjangoBook (as recommended in a similar post > in this group) but I must be missing

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > > This will grab _all_ score objects, and sort them by baseball score. > > If there isn't a baseball score, then 'baseball' will have a value of > > None, which is still a sortable value. > > Alright, so just to be safe, I really shouldn't be

Re: Form input to csv + file upload

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > > I have been searching for examples but everything that I see has a link to a > database. How to you 'get' the data from a form in django? What is the > equivalent of 'data = cgi.FieldStorage(keep_blank_values=1)' I would use > with a Python cg

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> This will grab _all_ score objects, and sort them by baseball score. > If there isn't a baseball score, then 'baseball' will have a value of > None, which is still a sortable value. Alright, so just to be safe, I really shouldn't be showing the values for all players, since that risks showing v

Re: Form input to csv + file upload

2007-06-05 Thread Vincent Nijs
I have been searching for examples but everything that I see has a link to a database. How to you 'get' the data from a form in django? What is the equivalent of 'data = cgi.FieldStorage(keep_blank_values=1)' I would use with a Python cgi script? Thanks, Vincent On 6/5/07 7:22 PM, "Russell Keit

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > > Score.objects.order_by('-baseball') > > > > will return all the objects in reverse order. > > Does this only grab the baseball scores? Or grabs all of them and THEN > sorts them by score? > (Just for future reference.) This will grab _all_

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> Score.objects.order_by('-baseball') > > will return all the objects in reverse order. Does this only grab the baseball scores? Or grabs all of them and THEN sorts them by score? (Just for future reference.) > However, it looks like your table is intended to be at least partially > sparse (i.e.

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > Alright, new problem for you guys. Here's an example model in an app > called "scores", which contains all the scores for a particular > player: > > # Baseball > baseball= models.PositiveIntegerField('Baseball Skill > Level', b

Re: Another Django Site with Source Code

2007-06-05 Thread queezy
Wow! Thanks Kelvin! That's awesome!! Sincerely, -Warren - Original Message - From: "Kelvin Nicholson" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 05, 2007 10:14 PM Subject: Another Django Site with Source Code > > Dear all Djangoers: > > When I first started learning Django I fou

Using login_required with direct_to_template?

2007-06-05 Thread [EMAIL PROTECTED]
I'm trying to use the login_required decorator with the direct_to_template generic view. I've read through the "Extending Generic Views" section of DjangoBook (as recommended in a similar post in this group) but I must be missing something. Here's my best attempt: urlpatterns = patterns('',

Re: yearless date

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, dailer <[EMAIL PROTECTED]> wrote: > > looking for ideas on the best way to handle this. I have a need to set > up date ranges not tied to a particular year, like Jan 1 - Feb 12. I > like that the admin interface provides a date selector so I'm tempted > to just use a DateField and ignor

Another Django Site with Source Code

2007-06-05 Thread Kelvin Nicholson
Dear all Djangoers: When I first started learning Django I found the docs better-than-average, yet looking at code was the way for me to really grasp certain concepts. Cheeserater (thanks Jacob!) was great to look at a way to do voting, Cab (thanks James!) was great to look at how to deal with N

yearless date

2007-06-05 Thread dailer
looking for ideas on the best way to handle this. I have a need to set up date ranges not tied to a particular year, like Jan 1 - Feb 12. I like that the admin interface provides a date selector so I'm tempted to just use a DateField and ignore the fact that I would be selecting a specific year.

Re: noob minlength question

2007-06-05 Thread dailer
thx, that's what I thought but wasn't sure if I was missing something. I don't really like that you then have.. maxlength=3, validator_list=... I guess I could subclass CharField On Jun 5, 10:33 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > seems silly but how do I specify minimum length fo

Re: form_for_model, DecimalFIeld, and decimal_places

2007-06-05 Thread ringemup
OK, I wasn't really sure how to do this correctly, but I just filed ticket #4486 ( http://code.djangoproject.com/ticket/4486 ) -- hopefully in a useful form! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Welcome to my Blog.

2007-06-05 Thread [EMAIL PROTECTED]
Welcome to my Blog. http://myfdc.blogspot.com/ --~--~-~--~~~---~--~~ 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,

QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
Alright, new problem for you guys. Here's an example model in an app called "scores", which contains all the scores for a particular player: # Baseball baseball= models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) # Bowling bowling

Re: form_for_model, DecimalFIeld, and decimal_places

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote: > > > 1) This sounds like it could be a bug. If your model defines 2 decimal > > places, my initial reaction is that the form should show 2 decimal > > places by default. > > Well, I figured that with currency being such a common use, if it were > a b

Re: Django + mod_python

2007-06-05 Thread Kelvin Nicholson
> but I dont know where to add that config, another thing I've noticed > is that my httpd.conf is located at /etc/apache2/ and the size of the > file is 0 bytes, is this normal? As Deryck noted, httpd.conf is referenced in apache2.conf; instead of putting virtualhosts in apache2.conf though, you

Re: form_for_model, DecimalFIeld, and decimal_places

2007-06-05 Thread ringemup
> 1) This sounds like it could be a bug. If your model defines 2 decimal > places, my initial reaction is that the form should show 2 decimal > places by default. Well, I figured that with currency being such a common use, if it were a bug it would already have been found and squashed. But mayb

Re: Form input to csv + file upload

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > > Question: If I want to save the file to a directory and information about > the submitter (e.g., name and time of submission) directly to a csv file, > how would I do that in Django? Do you need 'newforms' to do that? In the > documentation it

Re: form_for_model, DecimalFIeld, and decimal_places

2007-06-05 Thread Russell Keith-Magee
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote: > > Hello again -- > > I'm creating a form using form_for_model. The model in question has a > decimal field with 2 decimal places. The form, however, is displaying > the field with one decimal place. I've googled and poked through the > tests, but

[Announcement]: WebHelpers for Django

2007-06-05 Thread viestards
Greetings! To boost my Django skills and show that Django can be JavaScript-ready from the start, I started porting Pylons Webhelpers[1] to Django, implementing them as templatetags. It is hosted on Google projects[2]. To show how it works, I created small Django project that implements basic Web

form_for_model, DecimalFIeld, and decimal_places

2007-06-05 Thread ringemup
Hello again -- I'm creating a form using form_for_model. The model in question has a decimal field with 2 decimal places. The form, however, is displaying the field with one decimal place. I've googled and poked through the tests, but I can't figure out how to override this without creating an

Earn $2000 a few times a week

2007-06-05 Thread [EMAIL PROTECTED]
If you are tired of not making money on the Net and want something that really works, then go to: http://www.tellmemoresite.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Django on MySQL Cluster

2007-06-05 Thread richsteevs
The mysql ndb (cluster) and MyISAM engines do not support referential integrity, and neither does sqlite. In looking around on this list and the web, i've noticed that django actually handles many of these reference features on its own. However, in the docs on django/mysql at http://www.djangoproj

Re: custom menus with ul,li

2007-06-05 Thread oliver
hi, i did the same. My solution is not as elegant but works ok for me: model: class Menu(models.Model): createdate = models.DateTimeField(auto_now_add='True') islive = models.BooleanField(default=True, help_text="Untick if you do not want this to be live.") position = mode

Form input to csv + file upload

2007-06-05 Thread Vincent Nijs
Below is an example of the type form I used to process with a python cgi script. Now I am trying to move everything over to Django. Question: If I want to save the file to a directory and information about the submitter (e.g., name and time of submission) directly to a csv file, how would I do th

Re: syncdb fails for auth and other "built-in" apps

2007-06-05 Thread Psamathos
On 5 Juni, 17:18, "Deryck Hodge" <[EMAIL PROTECTED]> wrote: > On 6/4/07, Psamathos <[EMAIL PROTECTED]> wrote: > > > Anyone with an idea what this could be? > > > Error: Couldn't install apps, because there were errors in one or more > > models: > > django.contrib.admin: > > django.contrib.site

Re: problems using django on lighttpd with fastcig

2007-06-05 Thread jordi.f
Thanks! -- Jordi Funollet --~--~-~--~~~---~--~~ 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 [EMAI

custom menus with ul,li

2007-06-05 Thread tyman26
I am trying to build dynamic menus that are brought in from a database. I set up the table in this structure: CREATE TABLE auth_menu ( menu_id serial NOT NULL, group_id int4 NOT NULL, parent_id int4, auth_permission_id int4, title varchar(35) NOT NULL, url varchar(100), order_index

Re: Problem with postgres transactions

2007-06-05 Thread Nis Jørgensen
Joshua D. Drake skrev: > Nis Jørgensen wrote: >> [...] anytime a >> database error occurs, all subsequent calls to the database fails with >> the error message "ProgrammingError: current transaction is aborted, >> commands ignored until end of transaction block". >> > > That is how PostgreSQL

Re: Problem with postgres transactions

2007-06-05 Thread Joshua D. Drake
Nis Jørgensen wrote: > Hello all > > I am using Django 0.96 with postgresql 8.1 and psycopg2. The error > handling does not work as I would expect it to. Specifically, anytime a > database error occurs, all subsequent calls to the database fails with > the error message "ProgrammingError: current

Problem with postgres transactions

2007-06-05 Thread Nis Jørgensen
Hello all I am using Django 0.96 with postgresql 8.1 and psycopg2. The error handling does not work as I would expect it to. Specifically, anytime a database error occurs, all subsequent calls to the database fails with the error message "ProgrammingError: current transaction is aborted, commands

Re: django admin users

2007-06-05 Thread tyman26
I just fixed it, the symlink I created for the admin media directory was incorrect. Thanks anyways! On Jun 5, 10:58 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > based on user, user portion... did your database change at all? Is there two > user columns? > > On 6/5/07, tyman26 <[EMAIL PROTEC

Re: any django users in Cuba?

2007-06-05 Thread J.P. Cummins
You may perioticaly check the django frappr map. Right now, it doesn't seem as though any cuban django users have been pinned. http://www.frappr.com/django/map On 6/5/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > there is any django users in Cuba or just a cuban user? > > --

Re: dynamic fields in models

2007-06-05 Thread Lic. José M. Rodriguez Bacallao
problem resolved, here is how I did it, just a little change to my original code, setattr by add_to_class, with this, I can add common attributes to a lot of models without having to inherit more than once or having a base class for all of them, beside, it just create one table, not two: def commo

Re: dynamic fields in models

2007-06-05 Thread Lic. José M. Rodriguez Bacallao
problem resolved, here is how I did it, just a little change to my original code, setattr by add_to_class, with this, I can add common attributes to lot of models without having to inherit more than once or having a base class for all my models : def common_attrs(cls, common): attrs = dir(comm

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread wathi
Hi Frédéric, i think you missed the point, this will not be a resource page for modules/apps. It will be a showroom where you can post your websites you have made with django. See http://code.djangoproject.com/wiki/DjangoPoweredSites On 5 Jun., 19:21, Frédéric Roland <[EMAIL PROTECTED]> wrote:

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread Frédéric Roland
Hi, nice idea. Just some thought: There is a great resource where people look for solutions: Python Cheese Shop. I see some turbogear module there but very few Django related modules. FR Ross Poulton a �crit : > Hi all, > > I've been using Django for quite a while now, some of you may kn

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread wathi
So here is my first shot. 1024x768 http://img131.imagevenue.com/img.php?image=63063_djpr1_122_506lo.jpg 800x600 http://img157.imagevenue.com/img.php?image=63064_djpr2_122_796lo.jpg Let me know if you think its worth moving on. On 5 Jun., 17:04, wathi <[EMAIL PROTECTED]> wrote: > I´ll send you

Re: edit_inline causing problems with multiple relations

2007-06-05 Thread James Punteney
I'm having this issue as well. Anyone know if a ticket was filed for this or have any fixes been done? I looked in Trac and didn't anything. If not I'll go ahead and submit a ticket. Thanks, --James On 4/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-04-04 at 01:13 -0700,

Re: robots.txt?

2007-06-05 Thread Joseph Heck
Yes, you'd set in something like: SetHandler None (which is exactly what I've done) -joe On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > I'm not using mod_rewrite currently (and may even have it turned off > in Apache to save memory). Is there another solution? > > I have my static

Re: robots.txt?

2007-06-05 Thread orestis
You can always put a urlconf that will match "robots.txt" and return a simple http response... On Jun 5, 6:24 pm, "Deryck Hodge" <[EMAIL PROTECTED]> wrote: > On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > > > > SetHandler None > > > > > Can you do the same for single files? > > Yo

Re: Django + mod_python

2007-06-05 Thread Deryck Hodge
On 6/5/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Hello dear django users community. > I have a little question, I've been digging for the past weeks trying > to get together all the technologies I need to host a django powered > app, and this is what I've managed to do: > I'm running Linux Ubunt

Django + mod_python

2007-06-05 Thread Gerard M
Hello dear django users community. I have a little question, I've been digging for the past weeks trying to get together all the technologies I need to host a django powered app, and this is what I've managed to do: I'm running Linux Ubuntu 7.04 Feitsy Fawn distro, I have Apache/2.2.3 mod_python/3

Re: django admin users

2007-06-05 Thread Justin Lilly
based on user, user portion... did your database change at all? Is there two user columns? On 6/5/07, tyman26 <[EMAIL PROTECTED]> wrote: > > > I saw a previous post about this same thing a couple weeks ago, but > there was no response to it. Whenever I use the admin site and try to > access a use

Re: robots.txt?

2007-06-05 Thread Deryck Hodge
On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > SetHandler None > > > Can you do the same for single files? > You can, and probably would be better than the mod_rewrite overhead in this case. Cheers, deryck --~--~-~--~~~---~--~~ You received this m

django admin users

2007-06-05 Thread tyman26
I saw a previous post about this same thing a couple weeks ago, but there was no response to it. Whenever I use the admin site and try to access a user, I get this error message: "TypeError at /admin/auth/user/3/" "Cannot resolve keyword 'user' into field. Choices are: permissions, user, user, i

Re: syncdb fails for auth and other "built-in" apps

2007-06-05 Thread Deryck Hodge
On 6/4/07, Psamathos <[EMAIL PROTECTED]> wrote: > Anyone with an idea what this could be? > > Error: Couldn't install apps, because there were errors in one or more > models: > django.contrib.admin: > django.contrib.sites: > django.contrib.contenttypes: > django.contrib.sessions: > django.con

Re: proper and easy way to urlencode unicode string?

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 17:47 +0300, Andrey Khavryuchenko wrote: > > MT> Have a look at the iriencode filter (only in the unicode branch, so > MT> you'll need to read docs/templates.txt from the source). This handles > MT> the last stage of encoding to ASCII. > > Thanks for pointer. > > MT> Y

Re: robots.txt?

2007-06-05 Thread Rob Hudson
I'm not using mod_rewrite currently (and may even have it turned off in Apache to save memory). Is there another solution? I have my static media folder set in Apache with: SetHandler None Can you do the same for single files? Thanks, Rob On Jun 4, 8:12 am, KpoH <[EMAIL PROTECTED]>

integrity error silently failing

2007-06-05 Thread Sandro Dentella
Hi, i got a simple example where a Model.save() that should raise integrity/operational errors is not: class one(models.Model): fk_field = models.ForeignKey('two') class two(models.Model): description = models.CharField(maxlength=10) In [1]: from webfi.sd.models import * In [2]:

any django users in Cuba?

2007-06-05 Thread Lic. José M. Rodriguez Bacallao
there is any django users in Cuba or just a cuban user? -- Lic. José M. Rodriguez Bacallao Cupet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Django meetup in Munich

2007-06-05 Thread Wolfram Kriesing
Hi devs in Munich, we are a team of a couple django users and would be interested in meeting up with other django/python/webX.X devs from around Munich (Germany). So lets meet next thursday 14th June 2007, at 20:00 lets say there: http://tinyurl.com/36l4yf Max Emanuel Brauerei, Adalbertstr. 33 T

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread wathi
Hi Ross, i read your blog posts with great interest. Very helpful stuff. The idea for a djangopowered sites replacement is also great. Looking at happycodr that seems to be quite simple and fast done. I´ll send you some screenshots later today of what i would do. I have a design laying around

Re: strange template-rendering with \xef\xbb\xbf

2007-06-05 Thread va:patrick.kranzlmueller
Am 05.06.2007 um 16:38 schrieb Malcolm Tredinnick: > > On Tue, 2007-06-05 at 16:10 +0200, va:patrick.kranzlmueller wrote: >> after doing a django-update yesterday, we have \xef\xbb\xbf at the >> beginning of every rendered template which leads to strange display >> errors in IE and older firefox

Re: proper and easy way to urlencode unicode string?

2007-06-05 Thread Andrey Khavryuchenko
MT> Have a look at the iriencode filter (only in the unicode branch, so MT> you'll need to read docs/templates.txt from the source). This handles MT> the last stage of encoding to ASCII. Thanks for pointer. MT> You cannot necessarily skip the urlencode portion, but you may be able MT> to.

Re: strange template-rendering with \xef\xbb\xbf

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 16:10 +0200, va:patrick.kranzlmueller wrote: > after doing a django-update yesterday, we have \xef\xbb\xbf at the > beginning of every rendered template which leads to strange display > errors in IE and older firefox-versions. > > I figured out that it´s a byte order mar

Re: noob minlength question

2007-06-05 Thread Tim Chase
> seems silly but how do I specify minimum length for a > CharField. Would that require customer validation? I suspect you just want a custom validator in your validator_list...something like def is_longer_than(n): def result(field_data, all_data): if len(field_data) <= n: raise

Django users in Turkey

2007-06-05 Thread omat
Hi, Are there any Turkish speaking Django enthusiasts in this group? I would like to invite them to a group I have just created: http://groups.google.com/group/django-tr This group will be dedicated to making Django known better in Turkey and help spread its usage among Turkish speaking develop

strange template-rendering with \xef\xbb\xbf

2007-06-05 Thread va:patrick.kranzlmueller
after doing a django-update yesterday, we have \xef\xbb\xbf at the beginning of every rendered template which leads to strange display errors in IE and older firefox-versions. I figured out that it´s a byte order mark (BOM), but I´m not sure how to avoid it ... patrick --~--~-~--~-

Re: problems using django on lighttpd with fastcig

2007-06-05 Thread Justin Bronn
> It is in the fastcgi Django docs > (http://www.djangoproject.com/documentation/fastcgi/), although I've > heard similar things said about PHP+Fastcgi. When I did my setup ~8 months ago, I discovered the module load order from the Lighttpd docs about the 'server.modules()' directive: http://trac

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread Justin Lilly
Sadly also not an offer for help (directly at least), but you might check out http://www.oswd.org Open Source Web Design. Lots of good site templates there that are typically standards based and look quite nice. -justin On 6/5/07, Ross Poulton <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I've bee

Re: newforms, manytomany, default value.

2007-06-05 Thread larry
> I'm not sure what "a patch in the development tree" means here. Current > subversion trunk doesn't seem to have anything like that. Sorry for not being clear -- I'm (obviously) not familiar with the mechanism of open source / django development. What I was referring to is the ticket you mentio

Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread Dave Lists
Hi Ross, Sorry, not an offer of help but a request for more info. Can you tell me what you use to do the screen grabs? Regards, Dave. Ross Poulton wrote: > Hi all, > > I've been using Django for quite a while now, some of you may know my > name from occasional blog posts on the Django comm

Re: Import, save and render issue?

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 06:05 -0700, jj wrote: > I have added a feature to my Django app which allows me to import data > from an external database. The data is in XML. I iterate over the XML > to import book descriptions. After each book is processed, I save() > it. Then I call render_response() to

Import, save and render issue?

2007-06-05 Thread jj
I have added a feature to my Django app which allows me to import data from an external database. The data is in XML. I iterate over the XML to import book descriptions. After each book is processed, I save() it. Then I call render_response() to display the list of books just imported. However, t

noob minlength question

2007-06-05 Thread dailer
seems silly but how do I specify minimum length for a CharField. Would that require customer validation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: proper and easy way to urlencode unicode string?

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 14:34 +0300, Andrey Khavryuchenko wrote: > Folks, > > I'm working on multiligual app using unicode branch and hit an interesting > bit yesterday. > > I'm trying to present a (cyrillic) tag in url-ready form. Usually this is > solved by > > {{ tagname|urlencode }} > >

proper and easy way to urlencode unicode string?

2007-06-05 Thread Andrey Khavryuchenko
Folks, I'm working on multiligual app using unicode branch and hit an interesting bit yesterday. I'm trying to present a (cyrillic) tag in url-ready form. Usually this is solved by {{ tagname|urlencode }} But when the 'tagname' contains non-ascii symbols, urlencode barfs: KeyError at

Re: issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
> > {% for catetory in categorylist %} > If this is a cut-and-paste of your template, here's your error. Learn to > spell "category". :-) Oh how blind was that. Of course that was the problem, thanks a lot :) After fixing that i got an "always false" instead of "always true". The debug line wi

Re: issue with ifequal in a base template

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 11:45 +0200, Sven Broeckling wrote: > Hi everyone, > > i use django for a small fun website, and it's really fun to create > applications with it. Now i'm stuck with a behaviour i can't > comprehend. > > I have a category list in my base template : > > --[snip]

issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
Hi everyone, i use django for a small fun website, and it's really fun to create applications with it. Now i'm stuck with a behaviour i can't comprehend. I have a category list in my base template : --[snip]-- {% if categorylist %} Buc

Re: Big app, big db, all users are authenticated

2007-06-05 Thread and_ltsk
Thanks Marcin. I will try your ideas. --- On Mon 06/04, [EMAIL PROTECTED] < [EMAIL PROTECTED] > wrote: From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] To: django-users@googlegroups.com Date: Mon, 04 Jun 2007 09:09:30 -0700 Subject: Re: Big app, big db, all users are authenticated

Re: Big app, big db, all users are authenticated

2007-06-05 Thread and_ltsk
Thanks Joseph. Middleware is very useful. --- On Mon 06/04, Joseph Heck < [EMAIL PROTECTED] > wrote: From: Joseph Heck [mailto: [EMAIL PROTECTED] To: django-users@googlegroups.com Date: Mon, 4 Jun 2007 09:41:29 -0700 Subject: Re: Big app, big db, all users are authenticated Anoth

Re: dynamic fields in models

2007-06-05 Thread Branton Davis
Cool! --~--~-~--~~~---~--~~ 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 PROTECTED] For more

Re: newforms custom field clean method

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 07:33 +, simonbun wrote: > I'm having some trouble solving a newforms problem that other people > must have run into as well. Feel free to share solutions or > workarounds if any. > > Let's say I have a RegistrationForm that is used for registering new > users. It has th

newforms custom field clean method

2007-06-05 Thread simonbun
I'm having some trouble solving a newforms problem that other people must have run into as well. Feel free to share solutions or workarounds if any. Let's say I have a RegistrationForm that is used for registering new users. It has the usual 'name', 'email', ... etc fields. When a new user regist