Re: media

2007-09-20 Thread AniNair

Thank you. It's working now...


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe

I agree by the way, MEDIA_URL should always have a trailing slash.
Does anyone know why the documentation says not to include a trailing
slash on a domain? Why not have "http://media.example.com/";?

On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote:
> On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
>
> > I have the feeling I'm missing something. What does everyone else do
> > to get around this?
>
> Uh, so remove the slash in your template.
> href="{{ MEDIA_URL }}css/master.css"
>
> Side note - IMO, MEDIA_URL should *always* have a trailing slash.


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Ben Ford
It would be a good time wouldn't it?! ;-)

Sorry I didn't add my 2c worth yesterday, I was extremely busy and will
remain so for the next week or 2. I've sent a message to the list regarding
the latest patch to the branch and also updated ticket
4747with the relevant patch
and details.

Carlos: the patch attached to the ticket should be applicable against a
checkout of trunk at  r6110. As I said in my previous message to the list, I
haven't had time to apply and test the branch for myself, as I'm extremely
busy with an ongoing project at the moment. However if you have any
questions or comments please feel free to contact me and I'll do my best to
help you out. With any luck I should be 'back with the program' in a couple
of weeks when I've signed off on what I am doing.

Best Regards,
Ben

On 21/09/2007, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On 9/21/07, Carlos Hanson <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Sep 19, 5:32 pm, "Russell Keith-Magee" < [EMAIL PROTECTED]>
> > wrote:
> > Thank you.  Yes, I have done that and understand it is a standalone
> > check out.  My wording was imprecise.  It should have been something
> > like the following:
> >
> > I am using the latest development version of Django (0.97).  I want to
> > add multiple-db-support.  Because I am using features of 0.97 and
> > multiple-db-support is based on 0.96.  I can't switch to the mutliple-
> > db-support branch.  Is there a way for me to check out the latest
> > develoment version with the multiple-db-support merged into it?  Or
> > perhaps check out the multiple-db-support branch and update it with
> > the latest development version?
>
> It is possible to update (the SVN terminology is merge) multi-db with
> the changes from trunk; however, the process won't be a simple one, as
> conflicts between changes in multi-db and changes in the trunk will
> need to be resolved manually.
>
> This is essentially what Ben Ford has done for you (for trunk up to
> somewhere around trunk revision 6100). The patches that Ben has will
> resolve the merge conflicts that exist up to r6100 of trunk, and give
> you a version of the multi-db branch that has all the trunk features
> present in SVN r6100.
>
> Once you have applied Ben's patches, the process of keeping your
> multi-db stream up-to-date will be one of running 'svn merge' whenever
> the trunk is modified (or whenever trunk has a group of changes that
> you want to incorporate into your multi-db stream. Again, this will
> require manually resolving any merge conficts. Alternatively, you can
> wait until someone like Ben updates his patches, and apply those
> patches.
>
> I should point out that one of the reasons that Ben's patches only go
> as far as r6100 is that  there have been some fairly significant
> changes to the database backends made since r6100. Since this is the
> area that multi-db makes most of its changes, this is predictably the
> area that will introduce the most conflicts, and require the most
> manual merging.
>
> And to Ben: If you are serious about being the long-term maintainer of
> the multi-db branch, now would be a very good time to step in with a
> comment.
>
> > Thank you, Sir.  I appreciate your time.
>
> No problems.
>
> Yours,
> Russ Magee %-)
>
> >
>


-- 
Regards,
Ben Ford
[EMAIL PROTECTED]
+6281317958862

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves


On 21-Sep-07, at 7:55 AM, Kenneth Gonsalves wrote:

>> which has problems with the special characters?
>
> all reports use the same font. And all the other reports display that
> particular problem character ok. And, just noticed that the same
> problem character that refuses Good uses appears in another part of
> the *same* report that doesnt display Good. Ok, so it is just that
> one line of code that is at fault - I will keep staring at it until I
> find whats bad about 'Good' - thanks for helping narrow it down.

solved - I found that the difference between this line and the others  
is that this particular line was wrapped in a str() - I removed that,  
and it worked. Thanks a lot.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves


On 20-Sep-07, at 7:09 PM, Nis Jørgensen wrote:

>> it does - but so do other words that are getting translated
>> successfully, and 'Good' itself is getting rendered properly in other
>> parts of the site and in other reports
>>
> Still, those other parts/reports may be doing something slightly
> different. I assume that the translations of "Average" and "Poor" are
> ascii.  Try changing the translation of "Good" to something without
> special characters, and see if that helps. If it does, you at least  
> know
> that this is a charset/encoding issue - although this doesn't solve  
> it.

Good has special characters, Average and Poor do not. Changing Good  
to average displays it. But then I also have 'Male' in the same  
report which has a special character(a different one) and displays  
it. (all these problems are only in reportlab pdfs)
>
> Next, I would look at finding the difference between this report  
> and the
> ones that work. Could it be that this report uses a different font,
> which has problems with the special characters?

all reports use the same font. And all the other reports display that  
particular problem character ok. And, just noticed that the same  
problem character that refuses Good uses appears in another part of  
the *same* report that doesnt display Good. Ok, so it is just that  
one line of code that is at fault - I will keep staring at it until I  
find whats bad about 'Good' - thanks for helping narrow it down.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Russell Keith-Magee

On 9/21/07, Carlos Hanson <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 19, 5:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
> wrote:
> Thank you.  Yes, I have done that and understand it is a standalone
> check out.  My wording was imprecise.  It should have been something
> like the following:
>
> I am using the latest development version of Django (0.97).  I want to
> add multiple-db-support.  Because I am using features of 0.97 and
> multiple-db-support is based on 0.96.  I can't switch to the mutliple-
> db-support branch.  Is there a way for me to check out the latest
> develoment version with the multiple-db-support merged into it?  Or
> perhaps check out the multiple-db-support branch and update it with
> the latest development version?

It is possible to update (the SVN terminology is merge) multi-db with
the changes from trunk; however, the process won't be a simple one, as
conflicts between changes in multi-db and changes in the trunk will
need to be resolved manually.

This is essentially what Ben Ford has done for you (for trunk up to
somewhere around trunk revision 6100). The patches that Ben has will
resolve the merge conflicts that exist up to r6100 of trunk, and give
you a version of the multi-db branch that has all the trunk features
present in SVN r6100.

Once you have applied Ben's patches, the process of keeping your
multi-db stream up-to-date will be one of running 'svn merge' whenever
the trunk is modified (or whenever trunk has a group of changes that
you want to incorporate into your multi-db stream. Again, this will
require manually resolving any merge conficts. Alternatively, you can
wait until someone like Ben updates his patches, and apply those
patches.

I should point out that one of the reasons that Ben's patches only go
as far as r6100 is that  there have been some fairly significant
changes to the database backends made since r6100. Since this is the
area that multi-db makes most of its changes, this is predictably the
area that will introduce the most conflicts, and require the most
manual merging.

And to Ben: If you are serious about being the long-term maintainer of
the multi-db branch, now would be a very good time to step in with a
comment.

> Thank you, Sir.  I appreciate your time.

No problems.

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Creating a Form with some uneditable fields

2007-09-20 Thread Richard Dahl

Off the top of my head, not necessarily the cleanest way of doing  
this but it should work.  Pass the request.user as user if this is  
the user that the form is for:
i.e.
return (render_to_response('form_template', {'user': request.user,  
'form': form})

the template could then look something like this:

Currently Used Stuff for {{ user }} :

{{ form.used_stuff }}



obviously a very simplistic example and just as obvious this would  
only work for updating a record.

-richard


On Sep 20, 2007, at 3:26 AM, Simone Cittadini wrote:

>
> I have some models like :
>
> class UserOfSomeStuff(models.Model):
> [...]
>
> class AvailableStuffToUse(models.Model):
> [...]
>
> class CurrentlyUsedStuff(models.Model):
> user = models.ForeignKey(UserOfSomeStuff)
> used_stuff = models.ForeignKey(AvailableStuffToUse)
>
>
> In my application I don't need to add new Users or new Stuff, I only
> need to change what Stuff is currently Used [1]
> So I want to create a form which when bounded to an instance of
> CurrentlyUsedStuff renders the "user" in plain text, and when saved  
> just
> updates the data, without creating a new object.
>
> Is there a clean way to do this ?
>
>
>
> [1] : it's a GUI for routing calls with asterisk/python/mysql if  
> you mind
>
>
>
> >


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Having Django iterate through JSON possible?

2007-09-20 Thread Russell Keith-Magee

On 9/21/07, robo <[EMAIL PROTECTED]> wrote:
>
> To Russel: you said that this decimal serialization issue was fixed a
> long time ago. How so?

s/Russel/Russell/ :-)

I'm not entirely sure what 'this decimal serialization issue' actually
is - this thread hasn't produced a clear test case that demonstrates
that there is a problem in Django's JSON serializer.

However, in 0.96, we didn't make the clear distinction between
Decimals and Floats that exists in SVN trunk. This caused all sorts of
problems for serialization.

SVN trunk now makes the distinction between the two types, and the
test suite contains explicit serialization tests for Floats and
Decimals of various levels of precision. If there is a test case we're
missing, feel free to open a ticket.

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe

And then it breaks on my production server. The slash has to be there
in the template.


On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote:
> On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
>
> > I have the feeling I'm missing something. What does everyone else do
> > to get around this?
>
> Uh, so remove the slash in your template.
> href="{{ MEDIA_URL }}css/master.css"
>
> Side note - IMO, MEDIA_URL should *always* have a trailing slash.


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread SmileyChris

On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
> I have the feeling I'm missing something. What does everyone else do
> to get around this?

Uh, so remove the slash in your template.
href="{{ MEDIA_URL }}css/master.css"

Side note - IMO, MEDIA_URL should *always* have a trailing slash.


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: General site organization

2007-09-20 Thread jake elliott

hi florian -

Florian Lindner wrote:
> I have the site xgm.de with a blog, an abbreviation database and some static 
> pages.
> How would a organize such a site with Django?
> Create an app for the blog, an app for the DB and the static pages as 
> templates of the project?

you really have a lot of flexibility & you can search this group for
prior discussions of a general django project layout, but here are my
thoughts ;).

you might consider contrib.flatpages for the static pages in your project.

http://www.djangoproject.com/documentation/flatpages/

also i find myself using direct_to_template a lot to as a shortcut to
build simple views:

# yourproject/urls.py
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from myapp.models import News, Sidebar

urlpatterns = patterns('',
(r'^$', direct_to_template, {'template': 'frontpage.html',
'extra_context': {'news': News.objects.all, 'sidebars':
Sidebar.objects.all } }),

(r'blog/$', include('blog.urls')),
)

or something like that.  more about direct_to_template here:
http://www.djangoproject.com/documentation/generic_views/

best
jake

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: error: psycopg requires a datetime module

2007-09-20 Thread [EMAIL PROTECTED]

I've got MacPorts installed, but when I try to run port install
py-psycopg2 I get this:

Error: Unable to execute port: ln: /opt/local/var/macports/sources/
rsync.macports.org/release/ports/python/py-psycopg2/work: Permission
denied

I'm the only admin/user on this machine so why are permissions denied?

Thanks,

J

On Sep 12, 4:57 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 9/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I can't seem to get past this error. I just installed the latest
> > Python package and it didn't help. I've been trying to use Django and
> > Python for about a week first with MySQL (more errors/missing modules)
> > and now with PostgreSQL. I've tried setting this up on three different
> > OSX systems but with no luck on any of them--there's always something
> > missing and I can't complete the install. I don't know if anything is
> > worth this much hassle, does anyone using the Python framework ever
> > actually get anything accomplished besides hunting down missing
> > pieces?
>
> Without specifics - i.e., what you have installed, how you installed
> it, etc, its difficult to say for sure what the problem is.
>
> Personally, I can't say I've ever had much trouble setting up Django
> on OSX. I've always used Macports - when you say 'port install
> py-psycopg2', it finds out all the dependencies, downloads the
> required source code, compiles and installs. Set up your bashrc paths
> to point at the right locations, and you're off and running.
>
> Yours,
> Russ Magee %-)


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]

ok, resovled, daniel is right, thanks!

On Sep 20, 11:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> i used {{ rate_list.1.rate }} in template, there is no error and no
> result.
> i used {{ rate_list.[1].rate }} then the error is :Could not parse the
> remainder: '[1].rate' from 'rate_list.[1].rate'
> i used {{ rate_list[1].rate }} then the error is :Could not parse the
> remainder: '[1].rate' from 'rate_list[1].rate'
>
> Is it invalid for [] in template?
>
> On Sep 20, 11:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > sorry, it is not work.
>
> > to simplify my question is how to show a list in template file as
> > list[1].name as it does in shell mode etc.
>
> > thanks!
>
> > On Sep 20, 5:33 pm, Daniel Roseman <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > i have a templatetags as following:
>
> > > > {% load bookmarks.templatetags.commrate %}
> > > >   {% rate_for_object suburb as rate_list %}
> > > >   {% for rate in rate_list %}
> > > >  rate: {{ rate.rate }}
> > > >{% endfor %}
> > > > it works well for me, but i want to list the element as
> > > > {{ rate_list[1].rate }}
> > > > but the result is:
>
> > > > Exception Value:Invalid block tag: 'rate_list[1]'
>
> > > > how can i list elements out except { %  for ...%}
>
> > > > thanks!
>
> > > {{ rate_list.1.rate }} should work.
> > > --
> > > DR- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



General site organization

2007-09-20 Thread Florian Lindner

Hello,
I have the site xgm.de with a blog, an abbreviation database and some static 
pages.
How would a organize such a site with Django?

Create an app for the blog, an app for the DB and an app for the rest of the 
site

or

Create an app for the blog, an app for the DB and the static pages as 
templates of the project?

or 

something else

What is the common way to do it?

Thanks,

Florian 

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django application using ORM only

2007-09-20 Thread James Bennett

On 9/20/07, Martin Taylor <[EMAIL PROTECTED]> wrote:
> Any assistance with either of these items, including pointers to
> examples and documentation, would be greatly appreciated.

http://groups.google.com/group/django-users/search?group=django-users&q=standalone+orm&qt_g=Search+this+group

(the search box is your friend)

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe

I'm using the Django built-in server for dev.

On Sep 20, 3:15 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm running into issues with theMEDIA_URLand that cursed trailing
> > slash. Here's what the documentation says aboutMEDIA_URL:
>
> > "Note that this should have a trailing slash if it has a path
> > component." Good examples given 
> > are:http://media.lawrence.comandhttp://www.example.com/static/
>
> > I've found recently that my get_IMAGE_FIELD_url() methods don't work
> > correctly if that trailing slash isn't there unless it's a domain like
> > in the first example. But it's problematic for every situation where
> > I'm trying to use thatMEDIA_URLin a template, like this:
>
> > 
>
> > On my production server, the media is served from a subdomain so this
> > works great. But on my development server, it's served from a path
> > like in the second example above. So what I'm getting suddenly is a
> > broken pipe (32) because there are two slashes in a row 
> > (http://www.example.com/static//css/master.css). I'm pretty sure that in the
> > past I've gotten around this before by simply omitting the trailing
> > slash, which fixes this but breaks the get_url() methods.
>
> > I have the feeling I'm missing something. What does everyone else do
> > to get around this?
>
> What are you using as your development server? Are you using Django
> inbuilt server or something else?
>
> Good web servers tend to be quite tolerant of repeating slashes and
> will eliminate them before trying to match them.
>
> Graham


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Trying to install trunk version - svn error

2007-09-20 Thread [EMAIL PROTECTED]

REPORT and a number of other less than popular http verbs that
subversion uses are not enabled by default on many proxies such as
Squid.  See if you can get it to work with some other repositories
like the google ones.  If you are using squid it's easy enough to
search for the proper config entries.

On Sep 19, 8:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm using django 0.96 / python 2.5.1 / ubuntu 7.04 but I got the 00903
> Oracle error and I'm trying to use the trunk version.
>
> I follow the instruction onhttp://www.djangoproject.com/documentation/install/
> But I got:
>
> svn: Requisição REPORT falhou em '/svn/!svn/vcc/default'
> svn: REPORT de '/svn/!svn/vcc/default': 400 Bad Request (http://
> code.djangoproject.com)
>
> Is this a svn misconfiguration on my machine ? or on the server?
> Any suggestion will be welcome.
>
> Josir Gomes


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django application using ORM only

2007-09-20 Thread Martin Taylor

Although Django's web side is nice, and I like the "free" Admin
interface, what I really want to use Django for is its data model ORM
and resulting "free" API.  I want to use this to build a stand-alone
Python application, using wxWidget for more sophisticated UI than I
can get on a web page.  I've built my model, got a slightly tweaked
Admin web interface working and now I'm trying to write my first
prototype application in Python.

I must be missing some "Django magic" because here's what I get when I
run a trivial program:

Traceback (most recent call last):
  File "C:\_Dev_\_Experiments_\Test Management System\TDtoTMS.py",
line 18, in ?

import myTMS.TestRepo.modelsas myTMS
# The Django model for myTMS
  File "C:\_Dev_\_Experiments_\Test Management System\myTMS\TestRepo
\models.py", line 1, in ?
from django.db import models
  File "C:\Python24\lib\site-packages\django\db\__init__.py", line 7,
in ?
if not settings.DATABASE_ENGINE:
  File "C:\Python24\lib\site-packages\django\conf\__init__.py", line
28, in __getattr__
self._import_settings()
  File "C:\Python24\lib\site-packages\django\conf\__init__.py", line
53, in _import_settings
raise EnvironmentError, "Environment variable %s is undefined." %
ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is
undefined.

Another thing I haven't yet figured out is how to make my stand-alone
application use Django's nice user/group permissions scheme.  All the
examples I've seen indicate that no login or authentication is
necessary to use the API.

Any assistance with either of these items, including pointers to
examples and documentation, would be greatly appreciated.

Thanks,
Martin


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Carlos Hanson


On Sep 19, 5:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 9/20/07, Carlos Hanson <[EMAIL PROTECTED]> wrote:
>
>
>
> > Greetings,
>
> > I am using the current svn checkout of the trunk and would like to
> > include the multiple-db-support branch.  What is the best way to do
> > this?  I will understand if the answer is read the svn manual (it's on
> > my list of things to do).
>
> SVN branches are standalone - you don't 'include' the branch, you get
> a complete checkout of the branch. So, you're looking for something
> like:
>
> > svn cohttp://code.djangoproject.com/svn/django/branches/multiple-db-support
>

Thank you.  Yes, I have done that and understand it is a standalone
check out.  My wording was imprecise.  It should have been something
like the following:

I am using the latest development version of Django (0.97).  I want to
add multiple-db-support.  Because I am using features of 0.97 and
multiple-db-support is based on 0.96.  I can't switch to the mutliple-
db-support branch.  Is there a way for me to check out the latest
develoment version with the multiple-db-support merged into it?  Or
perhaps check out the multiple-db-support branch and update it with
the latest development version?

> However, be warned: the multiple-db-support branch is a little bit
> stale at the moment. If you search the archives, you will see that Ben
> Ford has some patches that brings the branch mostly up to date. I
> haven't played with the branch, or Ben's patches, so I can't comment
> on the stability of the branch, or the likelyhood that the design
> represented by the branch is suitable for eventual inclusion in the
> Django trunk.

It sounds like I need to use the patches and apply them to the trunk I
have checked out rather than doing a check out that combines the
functionality of the trunk with that of the multiple-db-support
branch.  I do need to read the subversion manuals, so I learn how to
handle getting updates from the trunk and keeping any patches or
modifications I have made for my system.

> Yours,
> Russ Magee %-)

Thank you, Sir.  I appreciate your time.

Carlos Hanson


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Fixtures for built-in Django model

2007-09-20 Thread mdorn

Confirming that this worked--thanks Richard.

On Sep 20, 12:56 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
> Try
> "auth.user" as the model
> -richard
>
> On 9/20/07, mdorn <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'd like to include a couple of example users in initial_data fixtures
> > as part of my application.  I thought that maybe something like this
> > would work in my JSON fixture file:
>
> > [
> > {
> > "pk": "1",
> > "model": "django.contrib.auth.models.user",
> > "fields": {
> > "username": "testuser"
> > }
> > }
> > ]
>
> > But I get "Invalid model identifier:
> > 'django.contrib.auth.models.user'"
>
> > Is what I'm trying to do possible using fixtures?  If not, can someone
> > recommend a similarly straightforward alternative?
>
> > Thanks,
>
> > Matt


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: def __str__(self,):

2007-09-20 Thread James Bennett

On 9/20/07, Greg <[EMAIL PROTECTED]> wrote:
> However, when I view this is the admin I get the following error:
> '__str__ returned non-string (type float)'.  Is there anyway to solve
> this problem?  Do I have to return a string?

Yes. You *must* return a string, because the entire point of __str__
is, well, to return a string.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: def __str__(self,):

2007-09-20 Thread mika

You could try
return str(self.name)
or
return '%i' % self.name

On 9/20/07, Greg <[EMAIL PROTECTED]> wrote:
>
> Do this method have to return a string?  I have the following model:
>
> class Price(models.Model):
> name = models.DecimalField(max_digits=6, decimal_places=2)
> price_cat = models.ForeignKey(PriceCategory)
>
> def __str__(self,):
>return self.name
>
> class Admin:
> pass
>
>
> //
>
> However, when I view this is the admin I get the following error:
> '__str__ returned non-string (type float)'.  Is there anyway to solve
> this problem?  Do I have to return a string?
>
> Thanks

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



def __str__(self,):

2007-09-20 Thread Greg

Do this method have to return a string?  I have the following model:

class Price(models.Model):
name = models.DecimalField(max_digits=6, decimal_places=2)
price_cat = models.ForeignKey(PriceCategory)

def __str__(self,):
   return self.name

class Admin:
pass


//

However, when I view this is the admin I get the following error:
'__str__ returned non-string (type float)'.  Is there anyway to solve
this problem?  Do I have to return a string?

Thanks


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django, flup, and googlebot

2007-09-20 Thread Darrin Thompson

On 9/20/07, John Melesky <[EMAIL PROTECTED]> wrote:
> I don't have this problem (assuming your problem is that no HTML is
> served to the curl request). What is your config?
>

Just to be clear, the bot came and made a HEAD request to a number of
pages. A HEAD request isn't supposed to serve html, just the headers.
After the HEAD requests I didn't see the bot for days, while the
webmaster tools said I had very much been crawled successfully, yet
none of my new content was in their tool view of the index. I presume
it's doing the HEAD request to conserve bandwidth and decide if it
should make a real GET request later.

It also is likely sending some kind of If-Modified-Since or the like,
and my site might be sending the wrong answer, which is why I ask
about configuration.

But I'm wondering specifically if turning on upstream caching would
cause django to have more to say, etags, etc.

Or I'm just way too impatient. I suspect I just need to wait for awhile.

--
Darrin

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Fixtures for built-in Django model

2007-09-20 Thread Richard Dahl
Try
"auth.user" as the model
-richard


On 9/20/07, mdorn <[EMAIL PROTECTED]> wrote:
>
>
> I'd like to include a couple of example users in initial_data fixtures
> as part of my application.  I thought that maybe something like this
> would work in my JSON fixture file:
>
> [
> {
> "pk": "1",
> "model": "django.contrib.auth.models.user",
> "fields": {
> "username": "testuser"
> }
> }
> ]
>
> But I get "Invalid model identifier:
> 'django.contrib.auth.models.user'"
>
> Is what I'm trying to do possible using fixtures?  If not, can someone
> recommend a similarly straightforward alternative?
>
> Thanks,
>
> Matt
>
>
> >
>

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Reinstalling Windows without any data loss.

2007-09-20 Thread aemxtjob

  Reinstalling Windows without any data loss.

  That's a well-known fact: the Windows operating system becomes
unstable with time. It regularly freezes, acquires a lot of useless
functions and trash in the registry. Specialists recommend
reinstalling Windows from scratch not less than once a year. Most
users think of reinstalling Windows as a long, routine process usually
accompanied by formatting the hard disk. Generally, that's the way it
is - if you do it manually and in an old-fashioned way. It's the 21st
century already and it's high time to forget about manual routine work
and data loss! Delegate Windows reinstallation to a professional in
the field of http://www.almeza.com/content/view/
31/41/">automating software installation - Almeza MultiSet!

There are two modes of http://www.almeza.com/";>reinstalling
Windows: repairing Windows (installing above the current version
of the operating system) or reinstalling it completely. All current
settings are preserved if you repair it, while the complete
reinstallation results in a truly new Windows version. Almeza MultiSet
can reinstall Windows in both modes. Moreover, in case of the complete
reinstallation, MultiSet can automatically install all necessary
software after it automatically installs the operating system itself:
drivers, service packs, software localization packages, server
software, etc. After the applications are installed, every program is
automatically configured. Also, it is possible to automatically tune
the Windows operating system.

Thus, no matter what mode you reinstall Windows in, the final result
achieved by Almeza MultiSet will be the same: new operating system
version + installed drivers + properly configured set of necessary
software. No need to format the hard disk. No data losses.

The work of Almeza MultiSet results in a distribution package ready
for the automatic Windows and software installation. Besides, Almeza
MultiSet can create bootable CDs/DVDs. Such disks can be used as a
rescue means after a system crash. To completely restore the system,
you will only have to insert such a disk into the CD/DVD drive and
configure BIOS to boot from this device. The system will be restored
in less than 40 minutes!

Almeza MultiSet will be very useful for system administrators who
maintain a lot of computers. MultiSet can automatically install software sets remotely via
the local area network. Thus, you do not have come to each computer
personally in order to update some software, you can completely
delegate it to Almeza MultiSet!

With Almeza MultiSet, reinstalling Windows will no longer scare you.
Get busy with your own interesting things during the automatic
installation and enjoy the automation!

Relax more, work less, live interestingly!

  Download the 30-day free version of the program:
http://www.almeza.com/download/multiset.exe - Download Reinstalling
Windows Software

  http://www.almeza.com/ - Almeza MultiSet: Reinstalling Windows
without any data loss


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Fixtures for built-in Django model

2007-09-20 Thread mdorn

I'd like to include a couple of example users in initial_data fixtures
as part of my application.  I thought that maybe something like this
would work in my JSON fixture file:

[
{
"pk": "1",
"model": "django.contrib.auth.models.user",
"fields": {
"username": "testuser"
}
}
]

But I get "Invalid model identifier:
'django.contrib.auth.models.user'"

Is what I'm trying to do possible using fixtures?  If not, can someone
recommend a similarly straightforward alternative?

Thanks,

Matt


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Trying to install trunk version - svn error

2007-09-20 Thread Ian

On Sep 19, 6:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm using django 0.96 / python 2.5.1 / ubuntu 7.04 but I got the 00903
> Oracle error and I'm trying to use the trunk version.
>
> I follow the instruction onhttp://www.djangoproject.com/documentation/install/
> But I got:
>
> svn: Requisição REPORT falhou em '/svn/!svn/vcc/default'
> svn: REPORT de '/svn/!svn/vcc/default': 400 Bad Request (http://
> code.djangoproject.com)
>
> Is this a svn misconfiguration on my machine ? or on the server?
> Any suggestion will be welcome.

If you're using Oracle, then you absolutely want to be using trunk
rather than 0.96.  The svn error is likely a firewall issue [1].  I
don't think that code.djangoproject.com accepts https connections, so
your best bet is to reconfigure the firewall or get it out of the way.

[1] http://svn.haxx.se/users/archive-2004-02/0982.shtml

Ian


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Poll: is anyone still using the old ordering syntax?

2007-09-20 Thread Jeremy Dunck

On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> Howdy folks --
>
> Quick question: is anyone still actually using the old ordering syntax
> in order_by?

Thanks, you made me go clean out some dead code.  ;-)

No for us.

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread Forest Bond
Hi,

On Thu, Sep 20, 2007 at 09:39:05AM -0700, shabda wrote:
> Would writing a middleware for this be a good idea? Then if we get the
> DNE, we just return 404 from process_exception. And during development
> we can just keep our middleware out, so that no real bugs beome 404.
> When we deploy, we can just switch this middleware on.

That would work, but I think that you should handle bugs in production
explicitly, rather than masking them.  If it's a bug, you want to return HTTP
500 (internal server error) and send an e-mail to the server admin notifying him
of the problem.  Returning a 404 is confusing, and your 404 could be cached (!).

404s should be 404s.  There are a variety of ways to turn DNE to 404.  Handling
DNE->404 explicitly prevents your program from masking a bug.  I think that this
is a good thing.

Does this really save that much code?  The negative impact (masking bugs) is
significant.

-Forest
-- 
Forest Bond
http://www.alittletooquiet.net


signature.asc
Description: Digital signature


Re: django, flup, and googlebot

2007-09-20 Thread John Melesky

On Sep 20, 2007, at 10:50 AM, Darrin Thompson wrote:
> I'm running lighttpd, flup, and django 0.96.

I'm running similar, but django trunk.

> So I tried to be the bot and looked at what it would have seen:
>
> $ curl -s -I http://.com/HTTP/1.1 200 OK
> Vary: Cookie
> Content-Type: text/html; charset=utf-8
> Date: Thu, 20 Sep 2007 15:44:33 GMT
> Server: lighttpd/1.4.13

I don't have this problem (assuming your problem is that no HTML is  
served to the curl request). What is your config?

-john




--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread shabda

Would writing a middleware for this be a good idea? Then if we get the
DNE, we just return 404 from process_exception. And during development
we can just keep our middleware out, so that no real bugs beome 404.
When we deploy, we can just switch this middleware on.

On Sep 20, 9:12 pm, Forest Bond <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Thu, Sep 20, 2007 at 08:47:57AM -0700, shabda wrote:
> > I have a number of pages which can potentially raise the
> > self.model.DoesNotExist exception. Whenever this exception is raised,
> > it maps to a HTTP 404 for me. (That object does not exist in the
> > database, so I cant show this, so I want to return a 404 exception).
> > So apart from manually adding try-except to all my views, how can I
> > return a 404 response on the self.model.DoesNotExist.
>
> You probably don't want to do this in your model.  How about:
>
> from django.core.exceptions import ObjectDoesNotExist
> from django.core.http import Http404
>
> def 404_on_dne(wrapped):
> def wrapper(*args, **kwargs):
> try:
> return wrapped(*args, **kwargs)
> except ObjectDoesNotExist:
> raise Http404
> return wrapper
>
> Then you can wrap your views:
>
> @404_on_dne
> def my_view(request, arg1, arg2):
>obj = Model.objects.get(...)
># do something
>
> I'm not entirely sure that you shouldn't just explicitly handle these 
> exceptions
> in your views (you can end up masking some DNE exceptions that are really 
> bugs),
> but that's a way to do what you want.
>
> Disclaimer: I haven't tried any of this code.  Might have bugs.
>
> -Forest
> --
> Forest Bondhttp://www.alittletooquiet.net
>
>  signature.asc
> 1KDownload


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Creating a Form with some uneditable fields

2007-09-20 Thread Simone Cittadini

I have some models like :

class UserOfSomeStuff(models.Model):
[...]

class AvailableStuffToUse(models.Model):
[...]

class CurrentlyUsedStuff(models.Model):
user = models.ForeignKey(UserOfSomeStuff)
used_stuff = models.ForeignKey(AvailableStuffToUse)


In my application I don't need to add new Users or new Stuff, I only 
need to change what Stuff is currently Used [1]
So I want to create a form which when bounded to an instance of 
CurrentlyUsedStuff renders the "user" in plain text, and when saved just 
updates the data, without creating a new object.

Is there a clean way to do this ?



[1] : it's a GUI for routing calls with asterisk/python/mysql if you mind



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Poll: is anyone still using the old ordering syntax?

2007-09-20 Thread Jacob Kaplan-Moss

Howdy folks --

Quick question: is anyone still actually using the old ordering syntax
in order_by?

If you don't know what I'm talking about, by the way, then the answer
is "no": Django used to have a verbose, tuple-based ordering syntax
before we switched to the simple string-based version. We still
support the old syntax, but it's been something on the order of two
years since we switched, and I'm hoping to remove it already.

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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread Forest Bond
Hi,

On Thu, Sep 20, 2007 at 08:47:57AM -0700, shabda wrote:
> I have a number of pages which can potentially raise the
> self.model.DoesNotExist exception. Whenever this exception is raised,
> it maps to a HTTP 404 for me. (That object does not exist in the
> database, so I cant show this, so I want to return a 404 exception).
> So apart from manually adding try-except to all my views, how can I
> return a 404 response on the self.model.DoesNotExist.

You probably don't want to do this in your model.  How about:

from django.core.exceptions import ObjectDoesNotExist
from django.core.http import Http404

def 404_on_dne(wrapped):
def wrapper(*args, **kwargs):
try:
return wrapped(*args, **kwargs)
except ObjectDoesNotExist:
raise Http404
return wrapper

Then you can wrap your views:

@404_on_dne
def my_view(request, arg1, arg2):
   obj = Model.objects.get(...)
   # do something

I'm not entirely sure that you shouldn't just explicitly handle these exceptions
in your views (you can end up masking some DNE exceptions that are really bugs),
but that's a way to do what you want.

Disclaimer: I haven't tried any of this code.  Might have bugs.

-Forest
-- 
Forest Bond
http://www.alittletooquiet.net


signature.asc
Description: Digital signature


Re: Having Django iterate through JSON possible?

2007-09-20 Thread robo

I've found this piece of code from Wolfram Kriesing: 
http://dpaste.com/hold/4601/

He hacked it so that any decimal field is returned as a string. All
you have to do to use this is paste the code into a file, such as
json.py, and import the json_encode function from that file where you
want to use it:

from dev_gfs.shop.json import json_encode
def hello():
  return HttpResponse(json_encode(OrderDetail.objects.all()),
mimetype="application/javascript")

To Russel: you said that this decimal serialization issue was fixed a
long time ago. How so?

Thanks,

robo


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django, flup, and googlebot

2007-09-20 Thread James Bennett

On 9/20/07, Darrin Thompson <[EMAIL PROTECTED]> wrote:
> So I tried to be the bot and looked at what it would have seen:
>
> $ curl -s -I http://.com/HTTP/1.1 200 OK
> Vary: Cookie
> Content-Type: text/html; charset=utf-8
> Date: Thu, 20 Sep 2007 15:44:33 GMT
> Server: lighttpd/1.4.13
>
> I can see how conservative crawlers would decide to leave.

I don't see anything here which would scare off a bot... what,
precisely, are you thinking is the problem here?

(also: my blog was, for over a year, served from lighttpd doing the
flup/FastCGI thing, and was consistently indexed and well-treated by
search engines. Perhaps you're focusing on the wrong things?)


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How's the water in the svn pool?

2007-09-20 Thread Pigletto

> I've been thinking about updating my 0.96 apps to the latest svn to
> get at some of the new features.  I decided to put it off until after
> the sprint since I figured a lot would happen.  So did the sprint
> introduce as many bugs as it closed out?  Is current svn stable enough
> to try out or should I just wait until 0.97?
For me current trunk seems to be a bit less 'stable' after sprint than
before - there were a lot of changes,
but in general I think you should at last try it. If you find any
issues then... it is good,
because you may submit a ticket and help django developers to
'stabilize' current code
(and release 0.97) more quickly :)

--
Maciej Wisniowski



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django, flup, and googlebot

2007-09-20 Thread Darrin Thompson

I'm running lighttpd, flup, and django 0.96.

I recently switched to django for my web site. When I first did this,
the search bots came and indexed it dutifully.

I recently wrote a bunch of copy for my site, and waited, pathetically
tailing my access logs, watching for the next crawl. When googlebot
finally visited, it made a couple of HEAD requests and left. Needless
to say I was disappointed.

So I tried to be the bot and looked at what it would have seen:

$ curl -s -I http://.com/HTTP/1.1 200 OK
Vary: Cookie
Content-Type: text/html; charset=utf-8
Date: Thu, 20 Sep 2007 15:44:33 GMT
Server: lighttpd/1.4.13

I can see how conservative crawlers would decide to leave.

What can I do to encourage the crawlers to actually crawl?

--
Darrin

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How can we map a specific HTTP error to a python exception?

2007-09-20 Thread shabda

I have a number of pages which can potentially raise the
self.model.DoesNotExist exception. Whenever this exception is raised,
it maps to a HTTP 404 for me. (That object does not exist in the
database, so I cant show this, so I want to return a 404 exception).
So apart from manually adding try-except to all my views, how can I
return a 404 response on the self.model.DoesNotExist.


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to clean the cache completely?

2007-09-20 Thread Jens Diemer

Deryck Hodge schrieb:
> On 9/20/07, Jens Diemer <[EMAIL PROTECTED]> wrote:
>> I can delete one entry in the cache. But how can i clean the cache 
>> completely?
> Assuming your cache backend is memcached:
> 
> from django.core.cache import cache
> cache._cache.flush_all()
> 
> I don't use the other cache backends enough to know about this method for 
> them.

Hm. I used the filesystem backend. There is IMHO no flush_all() method.
But i think it simple to implement this: The only thing to do, is: Delete all 
files ;)

-- 
Mfg.

Jens Diemer



A django powered CMS: http://www.pylucid.org


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How's the water in the svn pool?

2007-09-20 Thread [EMAIL PROTECTED]

I've been thinking about updating my 0.96 apps to the latest svn to
get at some of the new features.  I decided to put it off until after
the sprint since I figured a lot would happen.  So did the sprint
introduce as many bugs as it closed out?  Is current svn stable enough
to try out or should I just wait until 0.97?  Does anyone have a feel
if 0.97 will be coming out soon?


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]

i used {{ rate_list.1.rate }} in template, there is no error and no
result.
i used {{ rate_list.[1].rate }} then the error is :Could not parse the
remainder: '[1].rate' from 'rate_list.[1].rate'
i used {{ rate_list[1].rate }} then the error is :Could not parse the
remainder: '[1].rate' from 'rate_list[1].rate'

Is it invalid for [] in template?



On Sep 20, 11:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> sorry, it is not work.
>
> to simplify my question is how to show a list in template file as
> list[1].name as it does in shell mode etc.
>
> thanks!
>
> On Sep 20, 5:33 pm, Daniel Roseman <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > i have a templatetags as following:
>
> > > {% load bookmarks.templatetags.commrate %}
> > >   {% rate_for_object suburb as rate_list %}
> > >   {% for rate in rate_list %}
> > >  rate: {{ rate.rate }}
> > >{% endfor %}
> > > it works well for me, but i want to list the element as
> > > {{ rate_list[1].rate }}
> > > but the result is:
>
> > > Exception Value:Invalid block tag: 'rate_list[1]'
>
> > > how can i list elements out except { %  for ...%}
>
> > > thanks!
>
> > {{ rate_list.1.rate }} should work.
> > --
> > DR- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]

sorry, it is not work.


to simplify my question is how to show a list in template file as
list[1].name as it does in shell mode etc.

thanks!


On Sep 20, 5:33 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > i have a templatetags as following:
>
> > {% load bookmarks.templatetags.commrate %}
> >   {% rate_for_object suburb as rate_list %}
> >   {% for rate in rate_list %}
> >  rate: {{ rate.rate }}
> >{% endfor %}
> > it works well for me, but i want to list the element as
> > {{ rate_list[1].rate }}
> > but the result is:
>
> > Exception Value:Invalid block tag: 'rate_list[1]'
>
> > how can i list elements out except { %  for ...%}
>
> > thanks!
>
> {{ rate_list.1.rate }} should work.
> --
> DR- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Cashcrate: A Good Paid Online Surveys

2007-09-20 Thread harry

To make money online survey taking, I have found that Cashcrate has
been the best use of my time and efforts. Not only are the surveys
frequent and ongoing, and you don't have to earn much to get your
first bank deposit/check, but their referral program is great. You can
find out more by clicking http://www.cashcrate.com/344712

... Read more at: http://onlinetips.info/cashcrate-a-good-paid-online-surveys/


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Model field as a password definition

2007-09-20 Thread Richard Dahl
Nader,
Within your model use the field type that corresponds to the data that you
are going to store in it.  There is no 'password' data-type that I know of,
nor is there a database column type of 'password', in most RDBMS's.

You need to store characters in the database for the password, however you
obfuscate or encrypt or hash them is up to you.  The newforms widget for
password is all about entering and displaying the text to users.  Your form
subclass for this model is where you would want to define the password input
widget in order to prevent the password from being viewable upon entry.

I would suggest that if you need a password and as is likely need that
password to be associated with a user that you consider using the built in
django users from auth?  Not sure if this is what you need to do, but I
encourage you to consider it.
-richard


On 9/20/07, Nader <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I use Django  0.96 and in one of model field I have to define a
> password entry:
>
> class MyModel(...):
>password = modles.PasswordField()
>
> I can't do it because we don't have any "Password" attribute. I have
> been looking for this problem, but it has been not solved. The last
> alternative  was :
>
> from django import newforms as forms
>
>   class MyModel(..):
>   password = forms.CharField(widget=forms.PasswordInput)
>
> But I don't see any text input field. Could somebody tell me how I can
> solve this problem?
>
> Regards,
> Nader
>
>
> >
>

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: media

2007-09-20 Thread Alaa Salman
Hi,

Yes serving static files is for this use. Any kind of asset for your
application that is not dynamic in nature would ofcourse be static(so
images, css, javascript and so on). And so, follow the directions in that
help file and it will solve your problem.

Moreover, when something doesn't work as expected when dealing with such
things, keep a look out at the output of the development server(if you're
using that) and mind the HTTP return code for each request. So in your case,
you should have seen a 404 code on that image request and even more useful
is that you would see the path that it is requesting.

I hope this makes it clearer.

Regards,
Alaa Salman

On 9/20/07, AniNair <[EMAIL PROTECTED]> wrote:
>
>
> I tried that.. It's just for serving static files. I don't know why
> but i believed that it should've displayed the html page correctly at
> the first time itself. Where am I wrong?
> Plz 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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



JOIN THE HOTTEST GROUP ON THE NET !!!! OVER 10,000 JOIN WEEKLY FREE SIGN UP!

2007-09-20 Thread dating the right mate

JOIN THE HOTTEST GROUP ON THE NET   OVER 10,000 JOIN WEEKLY FREE
SIGN UP!



http://www.blpurl.com/al42


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Model field as a password definition

2007-09-20 Thread Nader

Hello,

I use Django  0.96 and in one of model field I have to define a
password entry:

class MyModel(...):
   password = modles.PasswordField()

I can't do it because we don't have any "Password" attribute. I have
been looking for this problem, but it has been not solved. The last
alternative  was :

from django import newforms as forms

  class MyModel(..):
  password = forms.CharField(widget=forms.PasswordInput)

But I don't see any text input field. Could somebody tell me how I can
solve this problem?

Regards,
Nader


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Having Django iterate through JSON possible?

2007-09-20 Thread Richard Dahl
My bad it is not a bug in Django, I was it was on this list a while ago, a
quick search provided this:

" here's no bug here.

Firstly, it's a "problem" with simplejson, not with Django. It would be
bad policy for us to make any changes to simplejson. We just include a
copy of the upstream simplejson source.

It's not even really a problem with simplejson, since Bob Ippolito has
designed it very well to make it easy to extend as you might wish.
That's exactly how we handle the problem in Django and how you should
handle it if you are using simplejson directly for your own purposes.

Regards,
Malcolm "
 Which is where my confusion came from.   Another post to the list suggested
casting the decimal field as a float prior to using simplejson.dump.

-richard

On 9/19/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On 9/20/07, Richard Dahl <[EMAIL PROTECTED]> wrote:
> > I believe that that is a known bug, thought I do not know details and
> have
> > not had any problems myself, as I have never tried to serialize a
> decimal.
>
> Known to who? I'm not aware of any current Decimal serialization
> issues, and a quick search of the ticket database didn't reveal
> anything, either.
>
> There were some decimal serialzation issues when 0.96 was released,
> but they were fixed long ago, and the test suite includes Decimal (and
> Float) serialization..
>
> Can you either:
> - provide an example that demonstrates your problem
> - point at the Django ticket for the serialization issue you describe.
>
> Yours,
> Russ Magee %-)
>
> >
>

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to clean the cache completely?

2007-09-20 Thread Deryck Hodge

On 9/20/07, Jens Diemer <[EMAIL PROTECTED]> wrote:
>
>
> I can delete one entry in the cache. But how can i clean the cache completely?
>

Hi, Jens.

Assuming your cache backend is memcached:

from django.core.cache import cache
cache._cache.flush_all()

I don't use the other cache backends enough to know about this method for them.

Cheers,
deryck


-- 
Deryck Hodge
Lead Developer, Product Development
Washington Post.Newsweek Interactive
Samba Team
http://www.devurandom.org/

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Nis Jørgensen

Kenneth Gonsalves skrev:
> On 20-Sep-07, at 4:42 PM, Werner F. Bruhin wrote:
>
>   
>>> other pdf reports. Not this particular one. I *know* there has to be
>>> some very simple explanation for this - but cant for the life of me
>>> find what it is.
>>>
>>>   
>> Does "Good" in Finish use some special characters?
>> 
>
> it does - but so do other words that are getting translated  
> successfully, and 'Good' itself is getting rendered properly in other  
> parts of the site and in other reports
>   
Still, those other parts/reports may be doing something slightly
different. I assume that the translations of "Average" and "Poor" are
ascii.  Try changing the translation of "Good" to something without
special characters, and see if that helps. If it does, you at least know
that this is a charset/encoding issue - although this doesn't solve it.

Next, I would look at finding the difference between this report and the
ones that work. Could it be that this report uses a different font,
which has problems with the special characters?

Nis

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: TemplateSyntaxError after svn-updating

2007-09-20 Thread Filipe Correia

Just sorted it out.
I've added the template's root dir to TEMPLATE_DIRS and started simply
using:
{% extends "common/searchForm.html" %}

cheers,
Filipe

On Sep 19, 5:31 pm, Filipe Correia <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've svn updated my working copy of django and started getting the
> following error:
>
> TemplateSyntaxError at /
> Template u'../common/searchForm.html' cannot be extended, because it
> doesn't exist
>
> This is happening while processing another template, ie:
> /myproj/templates/specific/searchForm.html
>
> where i use template inheritance with:
> {% extends "../common/searchForm.html" %}
>
> Do relative paths no longer work with the current version of django?
> might it be a bug or some misuse on my part?
>
> thanks,
> Filipe


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: media

2007-09-20 Thread AniNair

I tried that.. It's just for serving static files. I don't know why
but i believed that it should've displayed the html page correctly at
the first time itself. Where am I wrong?
 Plz 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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: sessions and cookies problems

2007-09-20 Thread beck917
There is the same problem with me for many days~~
"Username: Your Web browser doesn't appear to have cookies enabled. Cookies
are required for logging in. "

Help~~thx

may be clear the session table will solve the problem~~
2007/9/20, Ana <[EMAIL PROTECTED]>:
>
>
> Hi,
> I have problem with sessions and loggin function in my application.
> When user wants to login but enter wrong username or password and
> click "ok" the wrong password error occurs and that's correct. But
> when the user wants to correct a mistake and click "ok" en error:
> "Error: no_cookies = True." occurs. The user has to reload the page
> and type password and username again.
> Cookies in my browser are enabled.
> Is there any way to deal with this problem? I'll be grateful for any
> suggestions.
>
> I use DualSessionMiddleware and my log function is:
>
> def login(request):
> """login user with authenication - logout previous user first,
>template: login
> """
> no_cookies = False
> account_disabled = False
> invalid_login = False
> redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, '')
> if request.method == 'POST':
> if request.session.test_cookie_worked():
> request.session.delete_test_cookie()
> form = LoginForm(request.POST)
> if form.is_valid():
> username = request.POST['username']
> password = request.POST['password']
> user = auth.authenticate(username=username,
> password=password)
> if user is not None:
> if user.is_active:
> # Correct password, and the user is marked
> "active"
> auth.login(request, user)
>
> request.session[settings.PERSISTENT_SESSION_KEY] =
> form.clean_data['remember_user']
> return HttpResponseRedirect("/
> ResourceScheduler/" )
> else:
>  account_disabled = True
> else:
> invalid_login = True
> else:
> no_cookies = True
>
> form = None
> return HttpResponse("Error: no_cookies = True.")
> else:
> form = LoginForm()
> # cookie must be successfully set/retrieved for the form to be
> processed
> request.session.set_test_cookie()
> return render_to_response("ResourceScheduler/login.html",
> {'no_cookies': no_cookies, 'form': form,'account_disabled':
> account_disabled,'invalid_login': invalid_login,
> REDIRECT_FIELD_NAME: redirect_to}, context_instance =
> RequestContext(request))
>
>
> >
>

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



i18n/setlang no longer support GET

2007-09-20 Thread Arnold Chen

I used to use /i18n/setlang?language=zh-cn approach to change
language. However i found that the latest (as of this writing 20th
Sept, 2007) svn version django do not support calling the url using
GET, and there is a sentence in the function set_language in the
i18n.py file

"Since this view changes how the user will see the rest of the site,
it must only be accessed as a POST request."

The django website shows an example of using the convenient setlang
function and the url is:
http://www.djangoproject.com/documentation/i18n/#the-set-language-redirect-view

This example is good to demonstrate the power of the function, but the
usability is not as good as its functionality.
Imagine the user don't even know English. So, the user don't know even
he/she should click on the selection box and select.

So i use my own way showing "English | 中文 | 日文 | Français" and
hyperlinking each language to corresponding setlang URL. For example,
setlang?language=fr for Français.

I don't know why the developers change like that, and if there any one
can, please tell me the consequences of using GET (by modifying the
set_language function by myself)

Arnold


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: media

2007-09-20 Thread AniNair

thanks alot...
 I wanted to serve an html page which has an image. For eg: there is a
welcome page which asks the user to log in. It shows an image (a
company logo)on top along with the form. This image will appear on top
of all the pages. Is serving static files the solution? Just wanted to
make it clear. Thank you alot.


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: media

2007-09-20 Thread Samuel Adam

http://www.djangoproject.com/documentation/static_files/


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves


On 20-Sep-07, at 4:42 PM, Werner F. Bruhin wrote:

>> other pdf reports. Not this particular one. I *know* there has to be
>> some very simple explanation for this - but cant for the life of me
>> find what it is.
>>
> Does "Good" in Finish use some special characters?

it does - but so do other words that are getting translated  
successfully, and 'Good' itself is getting rendered properly in other  
parts of the site and in other reports

>
> Maybe a problem with the encoding of the .po file, or no encoding
> defined in it?

encoding is utf-8 - which is standard for finnish.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: media

2007-09-20 Thread AniNair

I am a beginner... needs help ... trying to do this like

In my view i just

return render_to_response('welcome.html',)

And in the html page, I have an image 
This works fine and the image is displayed when I try to open it with
explorer or any other browser but when I try to run localhost:8000, it
shows the text data only on that html page. image is not rdisplayed.
What is that stupid thing that I am doing? Plz 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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Werner F. Bruhin

Kenneth Gonsalves wrote:
> there is only one .po file - Good, Poor and Average are all there.  
> Further, all three were working for the past year, only on update to  
> the unicode branch that this happened. I thought maybe Good was  
> marked as Fuzzy, but it is not - and anyway it translates fine in  
> other pdf reports. Not this particular one. I *know* there has to be  
> some very simple explanation for this - but cant for the life of me  
> find what it is.
>   
Does "Good" in Finish use some special characters?

Maybe a problem with the encoding of the .po file, or no encoding 
defined in it?

Werner

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: apache authorization with django

2007-09-20 Thread Robin Becker

Graham Dumpleton wrote:
..
>>
>> I for one am not sure; are we saying that even if I'm using flup / fastcgi as
>> the transport I'm not able to use that for authorization?
> 
> That depends on whether flup supports the backend side of the FASTCGI
> specifications authentication/authorisation mechanism. Ie., as setup
> using the mod_fastcgi directives.
> 
> # FastCgiAuthenticator
> # FastCgiAuthenticatorAuthoritative
> # FastCgiAuthorizer
> # FastCgiAuthorizerAuthoritative
> 
> I don't know what flup does, so you need to look at the flup source
> code or any documentation for flup to work it out.
> 

I'll need to take a look to see what it really supports.

>> The real problem for me is deployment. We have multiple apps on the same
>> machine. We have tried the multiple apache solution (ie a toplevel 
>> distributor
>> with a secondary for the app) and found it wanting. Our preferred solution is
>> fcgi as that allows us fully decoupled processes. Putting the authorization 
>> into
>> mod_python seems to allow the possibility of cross talk even if we use 
>> separate
>> interpreters.
> 
> How do you think you can have 'cross talk'? There are issues with
> running distinct users applications embedded within Apache using
> mod_python, but if they are your own applications it shouldn't be an
> issue as you wouldn't be deliberately trying to sabotage your own
> stuff.
..
although these are applications written by us they are often for different 
clients with possibly stringent security requirements. For the biggest clients 
we just give them a box of their own, for the snaller ones they get a shared 
app 
with a virtual host address. Having a common front end is a problem, as if 
something goes badly awry then possibly client a sees something client b has 
entered etc etc. The mod_python commonality is just another problem for 
security 
auditors.
-- 
Robin Becker

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-20 Thread Landlord Bulfleet
Thanks :)

Looks like this is the solution to our problem. We haven't tested it yet but
will try soon.

Thanks again

On 9/20/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> On 9/19/07, Landlord Bulfleet <[EMAIL PROTECTED]> wrote:
> ...
> >
> > sum is property of a model object in our database
> > (models.DecimalField(max_digits=7, decimal_places=2)) & f_c.rate is a
> > Decimal constructed using Decimal(string) construction (Decimal is
> imported
> > with "from decimal import Decimal")
> >
> > We have some doubts that this may be a result of the django's python 2.3
> > _decimal compatibility.
>
> You're using PsycoPG with multiple interpreters.  :)
>
> http://www.initd.org/tracker/psycopg/ticket/192
>
> http://groups.google.com/group/django-developers/browse_thread/thread/63046b2fca27673c/898dbf8da327ce71
>
> Anyway, I did run into this using psycopg1, but switched to psycopg2
> and patched it since 1) it's being maintained and 2) it was easier to
> fix that way.
>
> I emailed the psycopg list a couple weeks ago with a patch but never
> heard back from them.  I don't have rights to add the patch to their
> ticket tracker, or I'd do that, too.
>
> I'm attaching a patch against psycopg2's source code here.   This is
> for r896 on the 2.0.x branch.
>
> Alternatively, you could run separate apache processes for each needed
> interpreter or switch to mod_wsgi.
>
> I wasn't prepared to swtich to mod_wsgi in a hurry, so patched
> psycopg2 instead.
>
> Apparently not that many people are using multiple interpreters and
> decimal fields with psycopg...
>
> >
>
>

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



sessions and cookies problems

2007-09-20 Thread Ana

Hi,
I have problem with sessions and loggin function in my application.
When user wants to login but enter wrong username or password and
click "ok" the wrong password error occurs and that's correct. But
when the user wants to correct a mistake and click "ok" en error:
"Error: no_cookies = True." occurs. The user has to reload the page
and type password and username again.
Cookies in my browser are enabled.
Is there any way to deal with this problem? I'll be grateful for any
suggestions.

I use DualSessionMiddleware and my log function is:

def login(request):
"""login user with authenication - logout previous user first,
   template: login
"""
no_cookies = False
account_disabled = False
invalid_login = False
redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, '')
if request.method == 'POST':
if request.session.test_cookie_worked():
request.session.delete_test_cookie()
form = LoginForm(request.POST)
if form.is_valid():
username = request.POST['username']
password = request.POST['password']
user = auth.authenticate(username=username,
password=password)
if user is not None:
if user.is_active:
# Correct password, and the user is marked
"active"
auth.login(request, user)
 
request.session[settings.PERSISTENT_SESSION_KEY] =
form.clean_data['remember_user']
return HttpResponseRedirect("/
ResourceScheduler/" )
else:
 account_disabled = True
else:
invalid_login = True
else:
no_cookies = True

form = None
return HttpResponse("Error: no_cookies = True.")
else:
form = LoginForm()
# cookie must be successfully set/retrieved for the form to be
processed
request.session.set_test_cookie()
return render_to_response("ResourceScheduler/login.html",
{'no_cookies': no_cookies, 'form': form,'account_disabled':
account_disabled,'invalid_login': invalid_login,
REDIRECT_FIELD_NAME: redirect_to}, context_instance =
RequestContext(request))


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves

there is only one .po file - Good, Poor and Average are all there.  
Further, all three were working for the past year, only on update to  
the unicode branch that this happened. I thought maybe Good was  
marked as Fuzzy, but it is not - and anyway it translates fine in  
other pdf reports. Not this particular one. I *know* there has to be  
some very simple explanation for this - but cant for the life of me  
find what it is.

On 20-Sep-07, at 1:59 PM, Bert Heymans wrote:

>
> Kenneth
>
> You most probably checked this but in the spirit of Ockham's Razor ...
> maybe you just don't have the translation for 'Good' filled in in the
> Finnish po file for that .py file but do have it translated for
> another context? That could explain why it shows up in some other
> places but not in the report.
>
> Just a guess :)
>
> Cheers,
> Bert
>
> On Sep 20, 5:03 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>> hi,
>>
>> I have choices like this:
>>
>> HEALTH_CHOICES = (
>>  ('G',_("Good")),
>>  ('A',_("Average")),
>>  ('P',_("Poor")),
>>  )
>> my site is english and finnish. These choices are used in several
>> models. When finnish is on, they get translated in the web interface.
>> I also generate reports in reportlab. In one report, choices shows up
>> correctly if the report is in english. In finnish, the choice is
>> translated and prints if it is "Average" or "Poor" - but if the
>> choice is "Good", it does not appear in the report - it is blank. I
>> cant even begin to think how to solve this - it was ok before
>> updating to unicode. In all other reports with reportlab, "Good" gets
>> translated and shows up. Any ideas?
>>
>> --
>>
>> regards
>> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
>
>
> >

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Graham Dumpleton

On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
> I'm running into issues with the MEDIA_URL and that cursed trailing
> slash. Here's what the documentation says about MEDIA_URL:
>
> "Note that this should have a trailing slash if it has a path
> component." Good examples given 
> are:http://media.lawrence.comandhttp://www.example.com/static/
>
> I've found recently that my get_IMAGE_FIELD_url() methods don't work
> correctly if that trailing slash isn't there unless it's a domain like
> in the first example. But it's problematic for every situation where
> I'm trying to use that MEDIA_URL in a template, like this:
>
> 
>
> On my production server, the media is served from a subdomain so this
> works great. But on my development server, it's served from a path
> like in the second example above. So what I'm getting suddenly is a
> broken pipe (32) because there are two slashes in a row 
> (http://www.example.com/static//css/master.css). I'm pretty sure that in the
> past I've gotten around this before by simply omitting the trailing
> slash, which fixes this but breaks the get_url() methods.
>
> I have the feeling I'm missing something. What does everyone else do
> to get around this?

What are you using as your development server? Are you using Django
inbuilt server or something else?

Good web servers tend to be quite tolerant of repeating slashes and
will eliminate them before trying to match them.

Graham


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: apache authorization with django

2007-09-20 Thread Graham Dumpleton

On Sep 20, 7:13 pm, Robin Becker <[EMAIL PROTECTED]> wrote:
> Graham Dumpleton wrote:
> > On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]>
> > wrote:
> >> On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
>
> >>> Not properly though.
> >> Indeed -- the auth handler has always been of "works-for-me" quality;
> >> I don't know nearly enough about Apache to write a proper one. I would
> >> be thrilled and delighted if someone who did would step forward and
> >> write something that was actually correct :)
>
> > Problem with that is it would only work with mod_python 3.3.1 as older
> > versions of mod_python do not expose Apache API properly. Even then
> > there are possibly still some parts of the Apache API not exposed in
> > mod_python 3.3.1 which will make it harder than it needs to be.
>
> > As I flesh out the authorisation bits of mod_wsgi support, then maybe
> > I'll have a brainwave and come up with something that might also work
> > on mod_python (to a degree).
>
> > Are you going to be happy with something that requires mod_python
> > 3.3.1?
>
> > Graham
>
> ..
>
> I for one am not sure; are we saying that even if I'm using flup / fastcgi as
> the transport I'm not able to use that for authorization?

That depends on whether flup supports the backend side of the FASTCGI
specifications authentication/authorisation mechanism. Ie., as setup
using the mod_fastcgi directives.

# FastCgiAuthenticator
# FastCgiAuthenticatorAuthoritative
# FastCgiAuthorizer
# FastCgiAuthorizerAuthoritative

I don't know what flup does, so you need to look at the flup source
code or any documentation for flup to work it out.

> The real problem for me is deployment. We have multiple apps on the same
> machine. We have tried the multiple apache solution (ie a toplevel distributor
> with a secondary for the app) and found it wanting. Our preferred solution is
> fcgi as that allows us fully decoupled processes. Putting the authorization 
> into
> mod_python seems to allow the possibility of cross talk even if we use 
> separate
> interpreters.

How do you think you can have 'cross talk'? There are issues with
running distinct users applications embedded within Apache using
mod_python, but if they are your own applications it shouldn't be an
issue as you wouldn't be deliberately trying to sabotage your own
stuff.

> At the very least, it requires us to be aware of these issues.
>
> I suppose this is really a problem of the apache api and I'm not familiar 
> enough
> with 2.2 to know if you can get your auth requests handled via an existing
> location.

Graham


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Today's newform-admin branch, svn version 6364

2007-09-20 Thread Pigletto

> >> Looking at the initial_data.json file I think it complains about
> >> timestamps such as '2007-09-16 12:34:51.765432'. Removing the sub-
> >> second parts fixes it, it accepts a :SS component. This happen in
> >> user and some other fixture json records (e.g. log_entries).
This problem is not only in newforms-admin branch. I've just submitted
a ticket:
http://code.djangoproject.com/ticket/5553


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to list a array's element?

2007-09-20 Thread Daniel Roseman

On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> i have a templatetags as following:
>
> {% load bookmarks.templatetags.commrate %}
>   {% rate_for_object suburb as rate_list %}
>   {% for rate in rate_list %}
>  rate: {{ rate.rate }}
>{% endfor %}
> it works well for me, but i want to list the element as
> {{ rate_list[1].rate }}
> but the result is:
>
> Exception Value:Invalid block tag: 'rate_list[1]'
>
> how can i list elements out except { %  for ...%}
>
> thanks!

{{ rate_list.1.rate }} should work.
--
DR


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



media

2007-09-20 Thread AniNair

Hi...
HI, I am using django  0.97, pre with pyton 2.5.1. I am a beginner and
I need help. I would like to know about two things.
1. How can I have my html page display an image? I tried using  but that image is not displayed. How can I do that?
2. How can I display some specific images using db ?(I am using
mysql)
please 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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: apache authorization with django

2007-09-20 Thread Robin Becker

Graham Dumpleton wrote:
> On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]>
> wrote:
>> On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
>>
>>> Not properly though.
>> Indeed -- the auth handler has always been of "works-for-me" quality;
>> I don't know nearly enough about Apache to write a proper one. I would
>> be thrilled and delighted if someone who did would step forward and
>> write something that was actually correct :)
> 
> Problem with that is it would only work with mod_python 3.3.1 as older
> versions of mod_python do not expose Apache API properly. Even then
> there are possibly still some parts of the Apache API not exposed in
> mod_python 3.3.1 which will make it harder than it needs to be.
> 
> As I flesh out the authorisation bits of mod_wsgi support, then maybe
> I'll have a brainwave and come up with something that might also work
> on mod_python (to a degree).
> 
> Are you going to be happy with something that requires mod_python
> 3.3.1?
> 
> Graham
..

I for one am not sure; are we saying that even if I'm using flup / fastcgi as 
the transport I'm not able to use that for authorization?

The real problem for me is deployment. We have multiple apps on the same 
machine. We have tried the multiple apache solution (ie a toplevel distributor 
with a secondary for the app) and found it wanting. Our preferred solution is 
fcgi as that allows us fully decoupled processes. Putting the authorization 
into 
mod_python seems to allow the possibility of cross talk even if we use separate 
interpreters. At the very least, it requires us to be aware of these issues.

I suppose this is really a problem of the apache api and I'm not familiar 
enough 
with 2.2 to know if you can get your auth requests handled via an existing 
location.
-- 
Robin Becker

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Bert Heymans

Kenneth

You most probably checked this but in the spirit of Ockham's Razor ...
maybe you just don't have the translation for 'Good' filled in in the
Finnish po file for that .py file but do have it translated for
another context? That could explain why it shows up in some other
places but not in the report.

Just a guess :)

Cheers,
Bert

On Sep 20, 5:03 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> hi,
>
> I have choices like this:
>
> HEALTH_CHOICES = (
>  ('G',_("Good")),
>  ('A',_("Average")),
>  ('P',_("Poor")),
>  )
> my site is english and finnish. These choices are used in several  
> models. When finnish is on, they get translated in the web interface.  
> I also generate reports in reportlab. In one report, choices shows up  
> correctly if the report is in english. In finnish, the choice is  
> translated and prints if it is "Average" or "Poor" - but if the  
> choice is "Good", it does not appear in the report - it is blank. I  
> cant even begin to think how to solve this - it was ok before  
> updating to unicode. In all other reports with reportlab, "Good" gets  
> translated and shows up. Any ideas?
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to list a array's element?

2007-09-20 Thread Bert Heymans

You'll have to give some more information and put some more effort in
describing you problem for people to help you out Kevin.

Cheers,

Bert

On Sep 20, 8:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> this is question of how list one element of a queryset in template.
>
> can somebody help me, thanks!
>
> On 9月20日, 下午2时04分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > i have a templatetags as following:
>
> > {% load bookmarks.templatetags.commrate %}
> >   {% rate_for_object suburb as rate_list %}
> >   {% for rate in rate_list %}
> >  rate: {{ rate.rate }}
> >{% endfor %}
> > it works well for me, but i want to list the element as
> > {{ rate_list[1].rate }}
> > but the result is:
>
> > Exception Value:Invalid block tag: 'rate_list[1]'
>
> > how can i list elements out except { %  for ...%}
>
> > thanks!


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: unknown encoding cp0 (occurs only after Unicode branch merge, >r5600)

2007-09-20 Thread Benedict Verheyen

Benedict Verheyen schreef:
> Nis Jørgensen schreef:
> 
> 
>>>   
>> What is "self" referring to? Can you give us a stack trace? And which
>> version of Django are you running (it is especially important to know if
>> it is before or after the unicode branch got merged).

I could test it by reverting my local svn version to an older version, 
before the unicode branch got merged.
What revision would that be?

Hhhmn, i check the commit logs and revision 5600 should be the version
just before the unicode branch got merged.
I checked out version 5600 (i did a svn co -r5600 in another directory.
Is there a better way to do this? revert?) and tried it and i don't get
the encoding error !
So it looks like it probably has to do with the unicode merge.

Maybe this part of the link that i posted in my first post could help:

-if _cached_user_encoding is None:
+# Windows returns 'cp0' to indicate there is no code page. So we'll
just
+# treat that as ASCII, and not support printing unicode characters
to the
+# console.
+if _cached_user_encoding in (None, 'cp0'):
  _cached_user_encoding = 'ascii'
  return _cached_user_encoding


Regards,
Benedict


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How to clean the cache completely?

2007-09-20 Thread Jens Diemer


I can delete one entry in the cache. But how can i clean the cache completely?

-- 
Mfg.

Jens Diemer



A django powered CMS: http://www.pylucid.org


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---