Re: problem with Django

2007-11-07 Thread Graham Dumpleton

Check the file and directory permissions like suggested when you were
first trying to setup your site, this time looking at any new files
and directories you have added within your site area. They should have
permissions so they are readable to Apache.

Graham

On Nov 8, 6:32 pm, stranger <[EMAIL PROTECTED]> wrote:
> Hello,
>  I did the linking as you said:
> ln -s /home/priya/projects/crimemap /usr/lib/python2.5/site-packages/
> crimemap
>
> Also I restarted Apache, but nno change
>
> ImproperlyConfigured at /crime/arson/
> Error while importing URLconf 'crimemap.urls': name 'crimemap' is not
> defined
> Request Method: GET
> Request URL:http://localhost:8000/crime/arson/
> Exception Type: ImproperlyConfigured
> Exception Value:Error while importing URLconf 'crimemap.urls': name
> 'crimemap' is not defined
> Exception Location: /usr/lib/python2.5/site-packages/django/core/
> urlresolvers.py in _get_urlconf_module, line 255
> Python Executable:  /usr/bin/python
> Python Version: 2.5.0
>
> On Nov 7, 11:16 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> > On 08-Nov-07, at 12:34 PM, stranger wrote:
>
> > > Can you please tell me how to put crimemap on path. What is sym-
> > > linking? Can you explain briefly?
>
> > as root, at the prompt type:
> > ln -s /pathtocrimemap/crimemap /usr/lib/python2.x/site-packages/crimemap
> > and press enter
>
> > for the 'x' for python2.x, put your python version (3,4 or 5)
> > for further information, do man ln
>
> > --
>
> > 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: problem with Django

2007-11-07 Thread Graham Dumpleton

Go and read the mod_python documentation again. In particular:

"""An example might make this clearer. Suppose you have some
applications under /usr/local/django-apps/ (for example, /usr/local/
django-apps/weblog/ and so forth), your settings file is at /var/www/
mysite/settings.py and you have specified DJANGO_SETTINGS_MODULE as in
the above example. In this case, you would need to write your
PythonPath directive as:

PythonPath "['/usr/local/django-apps/', '/var/www'] + sys.path"

With this path, import weblog and import mysite.settings will both
work. If you had import blogroll in your code somewhere and blogroll
lived under the weblog/ directory, you would also need to add /usr/
local/django-apps/weblog/ to your PythonPath. Remember: the parent
directories of anything you import directly must be on the Python
path."""

What the last paragraph is saying is that because of the way that you
are using imports and or urls.py, you need to add the site directory
as well as its parent to PythonPath.

Thus:

  PythonPath "['/home/priya','/home/priya/mysite'] + sys.path]

This is the preferred way if using mod_python and avoids needing to
symlink stuff into your Python site-packages directory.

Graham

On Nov 8, 6:04 pm, stranger <[EMAIL PROTECTED]> wrote:
> Can you please tell me how to put crimemap on path. What is sym-
> linking? Can you explain briefly?
> thanks a lot for the help..
>
> On Nov 7, 11:02 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> > On 08-Nov-07, at 12:23 PM, stranger wrote:
>
> > > crimemap is the name of the project. and the bottom part of the page
> > > shows the META and SETTINGS.
>
> > is crimemap in your path? symlink it to the site-packages directory
> > and try again
>
> > --
>
> > 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: problem with Django

2007-11-07 Thread stranger

Hello,
 I did the linking as you said:
ln -s /home/priya/projects/crimemap /usr/lib/python2.5/site-packages/
crimemap

Also I restarted Apache, but nno change

ImproperlyConfigured at /crime/arson/
Error while importing URLconf 'crimemap.urls': name 'crimemap' is not
defined
Request Method: GET
Request URL:http://localhost:8000/crime/arson/
Exception Type: ImproperlyConfigured
Exception Value:Error while importing URLconf 'crimemap.urls': name
'crimemap' is not defined
Exception Location: /usr/lib/python2.5/site-packages/django/core/
urlresolvers.py in _get_urlconf_module, line 255
Python Executable:  /usr/bin/python
Python Version: 2.5.0

On Nov 7, 11:16 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 08-Nov-07, at 12:34 PM, stranger wrote:
>
> > Can you please tell me how to put crimemap on path. What is sym-
> > linking? Can you explain briefly?
>
> as root, at the prompt type:
> ln -s /pathtocrimemap/crimemap /usr/lib/python2.x/site-packages/crimemap
> and press enter
>
> for the 'x' for python2.x, put your python version (3,4 or 5)
> for further information, do man ln
>
> --
>
> 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
-~--~~~~--~~--~--~---



webhostingbuzz, anyone tried

2007-11-07 Thread [EMAIL PROTECTED]

Hi guys.
These guys seem to have very tempting packages. They say they support
django. What I'd like to know is what kind of support? Do I have to
install it on my home folder, or is it preinstalled on their servers?
Second thing I wanted to ask about, is the speed. My current account
goes really slow, and it has only one flatpage to handle. How good it
webhostingbuzz on that issue?
Thanks in advance
Yair


--~--~-~--~~~---~--~~
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: problem with Django

2007-11-07 Thread Kenneth Gonsalves


On 08-Nov-07, at 12:34 PM, stranger wrote:

> Can you please tell me how to put crimemap on path. What is sym-
> linking? Can you explain briefly?

as root, at the prompt type:
ln -s /pathtocrimemap/crimemap /usr/lib/python2.x/site-packages/crimemap
and press enter

for the 'x' for python2.x, put your python version (3,4 or 5)
for further information, do man ln


-- 

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: problem with Django

2007-11-07 Thread stranger

Can you please tell me how to put crimemap on path. What is sym-
linking? Can you explain briefly?
thanks a lot for the help..

On Nov 7, 11:02 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 08-Nov-07, at 12:23 PM, stranger wrote:
>
> > crimemap is the name of the project. and the bottom part of the page
> > shows the META and SETTINGS.
>
> is crimemap in your path? symlink it to the site-packages directory
> and try again
>
> --
>
> 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: problem with Django

2007-11-07 Thread Kenneth Gonsalves


On 08-Nov-07, at 12:23 PM, stranger wrote:

> crimemap is the name of the project. and the bottom part of the page
> shows the META and SETTINGS.

is crimemap in your path? symlink it to the site-packages directory  
and try again

-- 

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: problem with Django

2007-11-07 Thread stranger

Hi Kenneth,

   The page is not displaying any error message but it says
"projectname".urls is no not defined.

Error while importing URLconf 'crimemap.urls': name 'crimemap' is not
defined

crimemap is the name of the project. and the bottom part of the page
shows the META and SETTINGS.

yash

On Nov 7, 10:29 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 08-Nov-07, at 11:53 AM, stranger wrote:
>
> >http://img158.imageshack.us/img158/7829/screenshotrm6.png
>
> > Please suggest me a solution.
>
> it would be more helpfull if you paste the full error message in  
> http://dpaste.com
>
> --
>
> 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: Splitting models.py into a package

2007-11-07 Thread Darryl Ross
Hi Daniel,

> class Foo(models.Model)
> some_field = models.CharField(max_length=200)
> class Meta:
> app_label = 'app'

Thanks for that, as soon as I added the app_label to the Meta class it
started working.

Regards
-D



signature.asc
Description: OpenPGP digital signature


Re: problem with Django

2007-11-07 Thread Kenneth Gonsalves


On 08-Nov-07, at 11:53 AM, stranger wrote:

> http://img158.imageshack.us/img158/7829/screenshotrm6.png
>
> Please suggest me a solution.

it would be more helpfull if you paste the full error message in  
http://dpaste.com

-- 

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: Splitting models.py into a package

2007-11-07 Thread [EMAIL PROTECTED]


On Nov 7, 8:41 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:
> Note: Resending as this hasn't shown up on the list after 3 hours.
>   Appologies if it does decide to make an appearance.
>
> Hey All,
>
> I have an app that has quite a few models in it, so I am trying to split
> it out into a package, but when I do the models do not show up in the
> admin interface and running 'manage.py sqlall app' does not show any SQL
> statements for creating the tables.
>
> Is there a trick to doing this?
>
> The steps that I took are:
>  $ mkdir app/models
>  $ touch app/models/__init__.py
>  $ mv app/models.py app/models/isp.py
>
> From my views I can do 'from project.app.models.isp import ISP' and it
> all works, but it would seem that any of the django tools can't see
> them. I'm not so much worried about the admin app, but manage.py not
> being able to create the tables or permission is a problem.
>
> According to James Bennett on his blog athttp://tinyurl.com/3d39p4this
> should work?
>
> I'm running SVN r6566.
>
> Any ideas?
>
> Regards
> -D
>
>  signature.asc
> 1KDownload

I ran into this problem a while ago while doing a hobby project. At
the time I solved it by adding something like the following (using
your example names) to models/__init__.py:

from app.models.isp import *

and then in isp.py:

class Foo(models.Model)
some_field = models.CharField(max_length=200)
class Meta:
app_label = 'app'

This was a while ago, so there may be a better way to do it now, but I
just fired up that app with django r6602 and manage.py sql app spat
out sql that looked OK.

~daniel


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



query set from ModelMultipleChoice

2007-11-07 Thread Carl Karsten

This works, but there has to be a better way:

class blastSettings(forms.Form):
   users = forms.ModelMultipleChoiceField(queryset=User.objects.all()

u=x.cleaned_data['users']
users = User.objects.filter(id__in=[x.id for x in u]).values()

body_template=Template(message.body)
for user in users:
   c=Context(detail)
   body = body_template.render(c)

Carl Karsten

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Splitting models.py into a package

2007-11-07 Thread Darryl Ross
Note: Resending as this hasn't shown up on the list after 3 hours.
  Appologies if it does decide to make an appearance.


Hey All,

I have an app that has quite a few models in it, so I am trying to split
it out into a package, but when I do the models do not show up in the
admin interface and running 'manage.py sqlall app' does not show any SQL
statements for creating the tables.

Is there a trick to doing this?

The steps that I took are:
 $ mkdir app/models
 $ touch app/models/__init__.py
 $ mv app/models.py app/models/isp.py

From my views I can do 'from project.app.models.isp import ISP' and it
all works, but it would seem that any of the django tools can't see
them. I'm not so much worried about the admin app, but manage.py not
being able to create the tables or permission is a problem.

According to James Bennett on his blog at http://tinyurl.com/3d39p4 this
should work?

I'm running SVN r6566.

Any ideas?

Regards
-D





signature.asc
Description: OpenPGP digital signature


Re: Using auth in model

2007-11-07 Thread Arnold Chen

My question above can be simplified as "how to get logged-in user with
request parameter"

On Nov 8, 12:32 pm, Arnold Chen <[EMAIL PROTECTED]> wrote:
> I want to let users to create their own profile in django admin. And
> when they save any new records, use their logged-in user id
> (models.ForeignKey(User)) and override the save() function of the
> model.
>
> Is there any statement that i can use? i believe it should be
> something like auth.user
>
> 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
-~--~~~~--~~--~--~---



Using auth in model

2007-11-07 Thread Arnold Chen

I want to let users to create their own profile in django admin. And
when they save any new records, use their logged-in user id
(models.ForeignKey(User)) and override the save() function of the
model.

Is there any statement that i can use? i believe it should be
something like auth.user

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: spam

2007-11-07 Thread Tom Badran
Ouch, thats pretty nasty. I'm dilligently spam reporting everything that
gets through though, so hopefully there will be a tipping point for the
spammers where we are beating them.

Tom

On 11/8/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On Nov 8, 2007 10:00 AM, Don Arbow <[EMAIL PROTECTED]> wrote:
> >
> > > On Nov 7, 2007, at 4:45 PM, Don Arbow wrote:
> > >>
> > >> I usually go to the Google Groups web site for this and the dev
> > >> group. There is a link in each message that you can use to report
> > >> it as spam. I find that Google seems to be pretty quick to ban a
> > >> specific user who is spam bombing groups.
> >
> > Just to follow up, I mentioned Google's excellent filtering and
> > banning regime. My email inbox has 8 messages (4 unique with
> > duplicates) from a certain someone that were posted this morning in
> > the developers group. None of those messages appear in Google's online
> > web site. Like any neighborhood with a graffiti problem, I think
> > Google recognizes that users who report spam in their groups are more
> > likely to get the "cops" to come around and help clean up, so report
> > spammers to Google when you get a chance.
>
> Erm... no. The contributions of our little friend from this morning
> were removed when I manually deleted his posts and banned his account
> from posting in the future.
>
> Google's spam catching is good, but it receives a lot of assistance
> from the list moderators. That assistance takes a lot of effort,
> because the spam-purging interface on Google Groups is utterly painful
> - removing a single post takes 5 clicks and 3 page loads; assuming you
> already banning an account requires you to manually transcribe an
> email address/username and search for the culprit, plus an additional
> 3 clicks (assuming you already have the user management tools open).
> On top of that, if you try to purge too many messages in a row, Google
> blocks the request on the basis that you might be a bot, and presents
> a captcha.
>
> Yours,
> Russ Magee %-)
>
> >
>


-- 
Tom Badran
http://badrunner.net

--~--~-~--~~~---~--~~
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: Session variables without a database

2007-11-07 Thread [EMAIL PROTECTED]

Thanks...

On Nov 7, 8:15 pm, "@@" <[EMAIL PROTECTED]> wrote:
> Configuring the session engine
>
> *New in development version*.
>
> By default, Django stores sessions in your database (using the model
> django.contrib.sessions.models.Session). Though this is convenient, in some
> setups it's faster to store session data elsewhere, so Django can be
> configured to store session data on your filesystem or in your cache.
>  Using file-based sessions
>
> To use file-based sessions, set the SESSION_ENGINE setting to "
> django.contrib.sessions.backends.file".
>
> You might also want to set the SESSION_FILE_PATH setting (which defaults to
> /tmp) to control where Django stores session files. Be sure to check that
> your Web server has permissions to read and write to this location.
>
> On 11/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I need to put together a small site for some demos...I don't need a
> > database as I'm getting my data via some API calls,  but wanted to use
> > Django templates.   I had wanted to store this data in a session
> > variable ( the API calls can take a while)... I thought I remembered
> > reading somewhere it wasn't possible to use session variables w/out
> > using a Database with Django.  Anyone have any work arounds for
> > this?
>
> > Thanks for any info.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Splitting models.py into a package

2007-11-07 Thread Darryl Ross
Hey All,

I have an app that has quite a few models in it, so I am trying to split
it out into a package, but when I do the models do not show up in the
admin interface and running 'manage.py sqlall app' does not show any SQL
statements for creating the tables.

Is there a trick to doing this?

The steps that I took are:
 $ mkdir app/models
 $ touch app/models/__init__.py
 $ mv app/models.py app/models/isp.py

From my views I can do 'from project.app.models.isp import ISP' and it
all works, but it would seem that any of the django tools can't see
them. I'm not so much worried about the admin app, but manage.py not
being able to create the tables or permission is a problem.

According to James Bennett on his blog at http://tinyurl.com/3d39p4 this
should work?

I'm running SVN r6566.

Any ideas?

Regards
-D



signature.asc
Description: OpenPGP digital signature


Re: spam

2007-11-07 Thread Russell Keith-Magee

On Nov 8, 2007 10:00 AM, Don Arbow <[EMAIL PROTECTED]> wrote:
>
> > On Nov 7, 2007, at 4:45 PM, Don Arbow wrote:
> >>
> >> I usually go to the Google Groups web site for this and the dev
> >> group. There is a link in each message that you can use to report
> >> it as spam. I find that Google seems to be pretty quick to ban a
> >> specific user who is spam bombing groups.
>
> Just to follow up, I mentioned Google's excellent filtering and
> banning regime. My email inbox has 8 messages (4 unique with
> duplicates) from a certain someone that were posted this morning in
> the developers group. None of those messages appear in Google's online
> web site. Like any neighborhood with a graffiti problem, I think
> Google recognizes that users who report spam in their groups are more
> likely to get the "cops" to come around and help clean up, so report
> spammers to Google when you get a chance.

Erm... no. The contributions of our little friend from this morning
were removed when I manually deleted his posts and banned his account
from posting in the future.

Google's spam catching is good, but it receives a lot of assistance
from the list moderators. That assistance takes a lot of effort,
because the spam-purging interface on Google Groups is utterly painful
- removing a single post takes 5 clicks and 3 page loads; assuming you
already banning an account requires you to manually transcribe an
email address/username and search for the culprit, plus an additional
3 clicks (assuming you already have the user management tools open).
On top of that, if you try to purge too many messages in a row, Google
blocks the request on the basis that you might be a bot, and presents
a captcha.

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: Session variables without a database

2007-11-07 Thread @@
Configuring the session engine

*New in development version*.

By default, Django stores sessions in your database (using the model
django.contrib.sessions.models.Session). Though this is convenient, in some
setups it's faster to store session data elsewhere, so Django can be
configured to store session data on your filesystem or in your cache.
 Using file-based sessions

To use file-based sessions, set the SESSION_ENGINE setting to "
django.contrib.sessions.backends.file".

You might also want to set the SESSION_FILE_PATH setting (which defaults to
/tmp) to control where Django stores session files. Be sure to check that
your Web server has permissions to read and write to this location.


On 11/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I need to put together a small site for some demos...I don't need a
> database as I'm getting my data via some API calls,  but wanted to use
> Django templates.   I had wanted to store this data in a session
> variable ( the API calls can take a while)... I thought I remembered
> reading somewhere it wasn't possible to use session variables w/out
> using a Database with Django.  Anyone have any work arounds for
> this?
>
> Thanks for any info.
>
>
> >
>

--~--~-~--~~~---~--~~
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: spam

2007-11-07 Thread Don Arbow

> On Nov 7, 2007, at 4:45 PM, Don Arbow wrote:
>>
>> I usually go to the Google Groups web site for this and the dev  
>> group. There is a link in each message that you can use to report  
>> it as spam. I find that Google seems to be pretty quick to ban a  
>> specific user who is spam bombing groups.

Just to follow up, I mentioned Google's excellent filtering and  
banning regime. My email inbox has 8 messages (4 unique with  
duplicates) from a certain someone that were posted this morning in  
the developers group. None of those messages appear in Google's online  
web site. Like any neighborhood with a graffiti problem, I think  
Google recognizes that users who report spam in their groups are more  
likely to get the "cops" to come around and help clean up, so report  
spammers to Google when you get a chance.

For those of you who would like to read messages and not have to worry  
about the boss wondering what you're looking at, reading Google Groups  
online may be a good option.

Don



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Session variables without a database

2007-11-07 Thread [EMAIL PROTECTED]

I need to put together a small site for some demos...I don't need a
database as I'm getting my data via some API calls,  but wanted to use
Django templates.   I had wanted to store this data in a session
variable ( the API calls can take a while)... I thought I remembered
reading somewhere it wasn't possible to use session variables w/out
using a Database with Django.  Anyone have any work arounds for
this?

Thanks for any info.


--~--~-~--~~~---~--~~
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: spam

2007-11-07 Thread Don Arbow

On Nov 7, 2007, at 2:08 PM, Todd O'Bryan wrote:
>
> Does anyone know if those of us with gmail clicking the Report Spam
> button connects back to Google Groups, or are we just protecting
> ourselves?


I usually go to the Google Groups web site for this and the dev group.  
There is a link in each message that you can use to report it as spam.  
I find that Google seems to be pretty quick to ban a specific user who  
is spam bombing groups.

Don



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



computer tripleblaze020-usys-Intel(R) Core™2 Duo

2007-11-07 Thread Hot Download
The Intel(R) Core™2 Duo desktop processor delivers revolutionary
dual-core
performance andbreakthrough processor energy efficiency.
Based on the revolutionary Intel(R) Core™ Microarchitecture, the Intel Core 2
Duo processor has been developed for an increasingly multimedia-centered,
high-definition world, and is designed to do more in less time.
Intel Core 2 Duo processors operate at lower frequencies while producing
higher performance compared to today's higher frequency processors, thus
enabling quieter and smaller desktop PCs.
A platform based on the Intel(R) 965 Express Chipset family with an optimized
memory engine for improved system performance, is the ideal compliment for
the Intel Core 2 Duo processor. This combination of processor and chipset
brings an unparalleled level of performance to the desktop.
View Picpost Click.
Webblog:  http://computer-tripleblaze020-usys.blogspot.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---

<><>

Re: Multiple Database Support

2007-11-07 Thread Josh

I thought this *was* the last one that was asked :)

On Nov 7, 4:01 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Nov 8, 2007 7:00 AM, Josh <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi!
>
> > Has there been any more progress toward getting themultipledatabase
> > branch merged into trunk?  I, among many others, would really like to
> > be able to use the newer features of django and accessmultiple
> > databases from the same project...
>
> Search the archives for the last time this question was asked. The
> answer hasn't changed.
>
> 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
-~--~~~~--~~--~--~---



how to set mysql collation in django?

2007-11-07 Thread Anton Daneika
hello all,

i need something like TEST_DATABASE_COLLATION, but in a normal django code
-- not in the tests.

i am running the same script in two environments: as a part of unit test and
on it's own and get different results. i suspect the reason for getting
different results is django's way of setting collations. my unit test fails
when TEST_DATABASE_COLLATION option is set to utf8_unicode_ci, but runs ok
if it's utf8_swedish_ci, however i do not know the way to set the collation
for the application database. it seems strange that this option is only
available for testing purposes. does anyone know how do i set different
collation?

the rest of this letter is for the curious ones.
here's the example of the unit test script:

class UnknownErrorTestCase(TestCase):
fixtures = ['collation_error_db_state.json']
def testUnknownError(self):
lang = Language.objects.get(pk='sv')
movie = Movie.objects.get(pk=10)
movie.keywords.create(word='män', language=lang)

this test passes if TEST_DATABASE_COLLATION is utf8_swedish_ci and fails if
it's utf8_unicode_ci (throws _mysql_exceptions.IntegrityError). the Keyword
model has uniqueness constraint: unique_together = (("word", "language"),).
the fixture loads a Keyword object whose "word" property is "man". this
happens because 'man' == 'män' if utf8_unicode_ci collation is used, so
trying to insert a new Keyword throws integrity error. the problem arises
when i try to ran these three lines of code outside the unit test script
where the collation is not read from the TEST_DATABASE_COLLATION.

--~--~-~--~~~---~--~~
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: Multiple Database Support

2007-11-07 Thread Josh

Hi!

Has there been any more progress toward getting the multiple database
branch merged into trunk?  I, among many others, would really like to
be able to use the newer features of django and access multiple
databases from the same project...

Thanks!
Josh

On Oct 17, 12:03 am, koenb <[EMAIL PROTECTED]> wrote:
> Hi Mark,
>
> You can find some newer work at ticket #4747. The patches there are
> some work in progress trying to bring multi-db back in line with
> trunk.
> A lot has changed in trunk in the last year, so I think it is worth
> trying those out instead of the old branch. Off course there are still
> a lot of improvements to be made, but it is a start.
>
> Koen
>
> On 17 okt, 02:23, markg <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I need to supportmultipledatabaseconnections in our Django
> > application.
> > One option being considered is to use the multi-db branch 
> > athttp://code.djangoproject.com/svn/django/branches/multiple-db-support
> > which is already in alpha release.
>
> > However by examining the code, it seems the development on this branch
> > has stalled. Does anyone know the state of this branch and the release
> > plan? Is there any other option available?
>
> > Thanks a lot,
> > mark


--~--~-~--~~~---~--~~
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: spam

2007-11-07 Thread Jacob Kaplan-Moss

Hi folks --

I'm a bit late to this discussion; sorry!

There actually is something you can do to help out with spam on this
list: become a moderator, and give spammers the boot.

I'll happily make you into a moderator if you're someone whose name I
recognize as someone with proven history on this list of being calm,
considerate, and generally trustworthy.

Email me privately if you want to help out.

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
-~--~~~~--~~--~--~---



Just launched a pretty big new Django site @ revver.com

2007-11-07 Thread [EMAIL PROTECTED]

Hi all - I don't think i've actually posted to the list, but reading
the archives has really helped make my Django development process go
smoothly, so I owe you all a debt of gratitude for various bits of
knowledge gleaned during the development process of my company's web
app at http://revver.com . We replaced a Rails web app with a more
featureful (and far, far more performant) Django app, and couldn't be
happier with the framework.  Hopefully we'll release some of the
libraries we wrote soon (specifically a caching proxy for our XMLRPC
API), and that way I'll be able to give some of the knowledge back :)

~daniel hengeveld


--~--~-~--~~~---~--~~
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: Checking for duplicate with newforms

2007-11-07 Thread Jonathan Buchanan

[EMAIL PROTECTED] wrote:
> 
> 
> On Nov 7, 1:53 pm, Jonathan Buchanan <[EMAIL PROTECTED]>
> wrote:
>> [EMAIL PROTECTED] wrote:
>>> Here's what I've done:
>>> if request.method == 'POST':
>>> submission = request.POST.copy()
>>> submission['slug'] = slugify(submission['name'])
>>> form = ClubFormClass(submission)
>>> if Club.objects.get(slug=submission['slug']):
>>>   form.errors['name'] = 'Club is already in database>> li>'
>>> if form.is_valid():
>>>form.save()
>>>return HttpResponseRedirect('/thankyou/')
>>> else:
>>> form = ClubFormClass()
>> I'd implement it as a clean_fieldname method. The fact that in the above
>> you're having to mess around with errors dictionary manually for
>> something this simple is a bad smell to watch out for.
>>
>> form
>> 
>>
>> def ClubForm(forms.Form):
>>  name = forms.CharField(...)
>>  ...
>>
>>  def clean_name(self):
>> slug = slugify(self.cleaned_data['name'])
>>  if Club.objects.filter(slug=slug).count():
>>  raise forms.ValidationError(u'Club is already in database')
>> return self.cleaned_data['name']
>>
>> view
>> 
>>
>> if request.method == 'POST':
>>  form = ClubForm(data=request.POST)
>>  if form.is_valid():
>>  club = form.save() # Do the slugify() in your save method
>>  return HttpResponseRedirect(club.get_absolute_url())
>> else:
>>  form = ClubForm()
>>
>> Jonathan.
> 
> Thanks Jonathan... yeah, I smelled that smell. I'm not quite following
> you, though. Where is clean_name() called? I think I may be confused
> because I have ClubFormClass = nforms.form_for_model(Club)  rather
> than def ClubForm(forms.Form):

Any clean_FIELDNAME methods are called as part of the validation 
triggered when you call is_valid [1]. I assumed you were creating a 
custom form before - in your case, you'll want to use the 'form' 
argument [2] to pass in a BaseForm which implements any extra 
functionality you need:

forms
-
class ClubBaseForm(forms.BaseForm):
 def clean_name(self):
 slug = slugify(self.cleaned_data['name'])
 if Club.objects.filter(slug=slug).count():
 raise forms.ValidationError(u'Club is already in database')
 return self.cleaned_data['name']

view

ClubForm = form_for_model(Club, form=ClubBaseForm)
if request.method == 'POST':
  form = ClubForm(data=request.POST)
  if form.is_valid():
  # For DRY's sake, I'm assuming the slug is set by an
  # overriden save() method in the Club model.
  club = form.save()
  return HttpResponseRedirect(club.get_absolute_url())
else:
  form = ClubForm()

I've found the trick with newforms is that if you can get the form to do 
as much work as possible for you validation-wise, displaying and 
redisplaying with errors is a piece of cake, no matter how complex the form.

Jonathan.

[1] 
http://www.djangoproject.com/documentation/newforms/#custom-form-and-field-validation
[2] 
http://www.djangoproject.com/documentation/newforms/#using-an-alternate-base-class

--~--~-~--~~~---~--~~
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: TemplateDoesNotExis, but actually it exist

2007-11-07 Thread Joe

Sounds like some sort of user access problem - like the www-data
(default for ubuntu) user that Apache runs with can't access that
directory or read that file. Odd that your users can access the page
though.

J

On Nov 6, 8:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have a website, and keep getting this error tracebacks to my mail:
>
> Traceback (most recent call last):
>
>  File "/home/clients/my_site/django_src/django/core/handlers/base.py",
> line 81, in _real_get_response
>response = callback(request, *callback_args, **callback_kwargs)
>
>  File "/home/clients/my_site/django_projects/gamemag/news/views.py",
> line 58, in index
>return object_list(request,**kwargs)
>
>  File "/home/clients/my_site/django_src/django/views/generic/
> list_detail.py", line 96, in object_list
>t = template_loader.get_template(template_name)
>
>  File "/home/clients/my_site/django_src/django/template/loader.py",
> line 79, in get_template
>source, origin = find_template_source(template_name)
>
>  File "/home/clients/my_site/django_src/django/template/loader.py",
> line 72, in find_template_source
>raise TemplateDoesNotExist, name
>
> TemplateDoesNotExist: news/news_list.html
>
> In my settings.py i have:
>
> TEMPLATE_DIRS = (
> "/home/clients/my_site/django_projects/site/templates",
> )
>
> And
> ls -l /home/clients/my_site/django_projects/site/templates/news/
> news_list.html
> -rw-r--r-- 1 user virtwww 16071 Nov  5 17:24 /home/clients/my_site/
> django_projects/site/templates/news/news_list.html
>
> So, apparently template exists, and (which is really weird) - site is
> functioning properly and my users seems to get this page allright. I
> can't think the problem :/


--~--~-~--~~~---~--~~
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: Checking for duplicate with newforms

2007-11-07 Thread [EMAIL PROTECTED]



On Nov 7, 1:53 pm, Jonathan Buchanan <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > Here's what I've done:
>
> > if request.method == 'POST':
> > submission = request.POST.copy()
> > submission['slug'] = slugify(submission['name'])
> > form = ClubFormClass(submission)
> > if Club.objects.get(slug=submission['slug']):
> >   form.errors['name'] = 'Club is already in database > li>'
> > if form.is_valid():
> >form.save()
> >return HttpResponseRedirect('/thankyou/')
> > else:
> > form = ClubFormClass()
>
> I'd implement it as a clean_fieldname method. The fact that in the above
> you're having to mess around with errors dictionary manually for
> something this simple is a bad smell to watch out for.
>
> form
> 
>
> def ClubForm(forms.Form):
>  name = forms.CharField(...)
>  ...
>
>  def clean_name(self):
> slug = slugify(self.cleaned_data['name'])
>  if Club.objects.filter(slug=slug).count():
>  raise forms.ValidationError(u'Club is already in database')
> return self.cleaned_data['name']
>
> view
> 
>
> if request.method == 'POST':
>  form = ClubForm(data=request.POST)
>  if form.is_valid():
>  club = form.save() # Do the slugify() in your save method
>  return HttpResponseRedirect(club.get_absolute_url())
> else:
>  form = ClubForm()
>
> Jonathan.

Thanks Jonathan... yeah, I smelled that smell. I'm not quite following
you, though. Where is clean_name() called? I think I may be confused
because I have ClubFormClass = nforms.form_for_model(Club)  rather
than def ClubForm(forms.Form):


--~--~-~--~~~---~--~~
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: Checking for duplicate with newforms

2007-11-07 Thread Jonathan Buchanan

[EMAIL PROTECTED] wrote:
> Here's what I've done:
> 
> if request.method == 'POST':
> submission = request.POST.copy()
> submission['slug'] = slugify(submission['name'])
> form = ClubFormClass(submission)
> if Club.objects.get(slug=submission['slug']):
>   form.errors['name'] = 'Club is already in database li>'
> if form.is_valid():
>   form.save()
>   return HttpResponseRedirect('/thankyou/')
> else:
> form = ClubFormClass()

I'd implement it as a clean_fieldname method. The fact that in the above 
you're having to mess around with errors dictionary manually for 
something this simple is a bad smell to watch out for.

form


def ClubForm(forms.Form):
 name = forms.CharField(...)
 ...

 def clean_name(self):
slug = slugify(self.cleaned_data['name'])
 if Club.objects.filter(slug=slug).count():
 raise forms.ValidationError(u'Club is already in database')
return self.cleaned_data['name']

view


if request.method == 'POST':
 form = ClubForm(data=request.POST)
 if form.is_valid():
 club = form.save() # Do the slugify() in your save method
 return HttpResponseRedirect(club.get_absolute_url())
else:
 form = ClubForm()

Jonathan.

--~--~-~--~~~---~--~~
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: YAFU: Yet Another File Upload app...

2007-11-07 Thread Eugene Morozov

Hello,
Thanks for your contribution. There's a similar functionality in
Django Trac #2070 and #4165.

#2070 contains patch with an implementation of streaming file uploads.
This seems to be working.
#4165 contains middleware and javascript that implement file upload
progress monitoring for the Django admin interface. Unfortunately,
this code is very unreliable, especially Javascript. Sorry guys,
whoever wrote the Javascript part, but it is a real mess. I've
implemented a much nice version using jQuery progress bar and jQuery
modal windows, but it's a part of commercial project so I'm afraid I
cannot share. Currently my Javascript upload monitor it uses
middleware from #4165 but I plan to replace it with my own version as
this middleware sometimes report bogus data.

So, it is possible to implement file upload progress monitor without
external CGI script and IFRAMEs. Just apply #2070 (it looks more
polished than patches from #4165), implement simple middleware that
will track file uploading progress, and a tiny Javascript that will
ask middleware about progress using XMLHttpRequest.
Eugene

On 7 нояб, 19:55, Dustin Lang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> It didn't seem like any of the current Django file upload apps provided 
> exactly
> the functionality I needed, so I hacked my own.  If the community is
> interested, I can try to polish it a bit and contribute it.
>
> We deal with large uploads - up to hundreds of megabytes - so I wanted the
> following:
>
> -the server should not keep the whole file in memory while the upload is
> progressing: it should stream to disk
>
> -the server shouldn't have to copy the streamed data: it should only write the
> uploaded file once
>
> -the user must get some feedback (a progress meter, or whatever) while the
> upload is progressing
>
> I wrote some code that accomplishes this.  You can see an ugly demo 
> at:http://oven.cosmo.fas.nyu.edu:/upload-demo/
>
> It works as follows:
>
> -There is a python CGI program that accepts the upload.  It's not a Django 
> view
> because it needs to stream the input as it comes in from the network; it runs
> as a normal mod_python handler.
>
> -This CGI program parses the multipart/form-data input, looking for an
> "upload_id" field (which tells it which temp file to write the uploaded file
> to), and then looks for the file data itself and streams that to disk.  At the
> end of the upload, it produces a dictionary of the "normal" form fields and an
> object representing the uploaded file.
>
> -We have a "main" form with several fields, and within that HTML page there 
> are
> two IFRAMEs.  The first one contains an "upload" form: it requests a form 
> which
> has a hidden "upload_id" field and a file input element (and a hidden submit
> button).  The second IFRAME contains an (initially hidden) upload progress
> meter.
>
> -If the user submits the "upload" form (by hitting ENTER in the file input
> dialog), some Javascript gets triggered which displays the upload progress
> meter.  (The upload progress meter is a snazzy little AJAX dealie - quite nice
> but its CSS needs some attention).  If the file is empty or some other error
> occurs, the progress meter shows an error message.
>
> -When the file upload starts, the CGI writes "Upload in progress..." and when
> if it finishes successfully, it writes a hidden  element.  Some 
> Javascript
> notices that the upload form's IFRAME finished loading, and it looks for that
>  to ensure that the upload was successful.  If so, it grabs the
> "upload_id", saves it in a hidden field in the main form, and submits the main
> form.
>
> -The main form goes to a normal Django view, and it can use the "upload_id" to
> pull a reference to the file out of a database.
>
> I know it sounds overly complicated, but it seemed to be necessary to achieve
> the user experience and server-side requirements I had.
>
> Before it's ready for prime-time, it will need some fixes:
>
> -the form-multipart parsing is currently hacky; the RFC should get translated
> into regular expressions
>
> -the upload form handler currently doesn't really do anything with the other
> form fields - it should store them in a database.
>
> -there's not a lot of checking of upload_id values - one could easily add some
> rules that only upload_ids that have been generated by the server can be
> uploaded; and that it's invalid to try to re-upload a file; or that only
> authenticated users are allowed to upload files.
>
> -I'm new to python and Django, so I'm sure there is a lot of polishing that
> could be done.
>
> -I tried to work out a solution that didn't require two IFRAMES (one for the
> file form, one for the progress meter), but couldn't get it to work.
>
> Anyway, let me know if you're interested in this code and I'll bundle it up if
> anyone is.
>
> Cheers,
> dstn.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.

Re: Get PK value in Field class after saving

2007-11-07 Thread Marty Alchin

On 11/6/07, Frank 7200 <[EMAIL PROTECTED]> wrote:
> I have a Field class for attachments and I would like to rename the
> attachment after upload. This class inherits from models.ImageField.
>
> The problem is that in field method save_file() and _save() all values
> pointing to ID are None.
> new_object['id'] is None and instance._get_pk_val() is None
>
> In which method is the ID available?

There's no "official" way to do this yet, but I just published an
article[1] which tries to answer a number of questions regarding
FileField and filenames. Hopefully this helps with your question as
well.

-Gul

[1] 
http://gulopine.gamemusic.org/2007/11/customizing-filenames-without-patching.html

--~--~-~--~~~---~--~~
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: Checking for duplicate with newforms

2007-11-07 Thread [EMAIL PROTECTED]

Here's what I've done:

if request.method == 'POST':
submission = request.POST.copy()
submission['slug'] = slugify(submission['name'])
form = ClubFormClass(submission)
if Club.objects.get(slug=submission['slug']):
  form.errors['name'] = 'Club is already in database'
if form.is_valid():
form.save()
return HttpResponseRedirect('/thankyou/')
else:
form = ClubFormClass()


--~--~-~--~~~---~--~~
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: Design Question : model needs in model or view

2007-11-07 Thread John M

Wow, that was quick, 3min response!  Thanks.

Yea, thats what I was thinking.  Trying to be very DRY.

John

On Nov 7, 10:44 am, Kyle Fox <[EMAIL PROTECTED]> wrote:
> I'd probably put it in the model.
>
> Putting it in the view means if you ever create an instance of that
> model elsewhere, you'll need to duplicate the code for creating the
> related model.  Not very DRY :)


--~--~-~--~~~---~--~~
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: Design Question : model needs in model or view

2007-11-07 Thread Kyle Fox

I'd probably put it in the model.

Putting it in the view means if you ever create an instance of that
model elsewhere, you'll need to duplicate the code for creating the
related model.  Not very DRY :)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Design Question : model needs in model or view

2007-11-07 Thread John M

I have a model that has a 1-1 model attached to it.  This attached
model has mostly default values that will be referenced later.

My question is, should I put the creation of the 1-1 model in the
SAVE() method of the main object, or in the view where it's created?
seems like putting it in the SAVE() method would keep the design
isolated from the other areas.

Thanks for your help.

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: form_for_instance and form argument, empty form?

2007-11-07 Thread Marty Alchin

Sorry folks, there was a bit of confusion with this thread, having
started out on django-developers. GMail didn't seem to think I really
wanted it to go to django-users instead, so I only just noticed it had
continued on django-developers. If you're interested in what's going
on, check the following link:

http://groups.google.com/group/django-developers/browse_thread/thread/92f84b1218b36ead

-Gul

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Checking for duplicate with newforms

2007-11-07 Thread [EMAIL PROTECTED]

I have a public-facing form where registered users can submit clubs.
Later, I access the data by slug, using a generic object_detail view.

My problem is that someone can input a club that's already there.
Besides polluting the database, it breaks when they try to access the
club's page (GET returns 2).

So, how can I have newforms check for a dupe before saving the form
and (hopefully) return an error message if there is a dupe? Here's the
newforms part I have:

if request.method == 'POST':
submission = request.POST.copy()
submission['slug'] = slugify(submission['name'])
form = ClubFormClass(submission)
if form.is_valid():
form.save()
 return HttpResponseRedirect('/thankyou/')
  else:
 form = ClubFormClass()


--~--~-~--~~~---~--~~
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: name 'django' is not defined

2007-11-07 Thread Marty Alchin

On 11/7/07, Florian Lindner <[EMAIL PROTECTED]> wrote:
> (r"^newComment/$", django.views.generic.create_update.create_object,
> dict(model=BlogComment))

Just as I suspected. You need quotes around
'django.views.generic.create_update.create_object' here. It's looking
for an object named 'django' which isn't currently defined in this
module.

-Gul

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



context_instance needs documenting on the same page as render_to_response?

2007-11-07 Thread AndyB

Just read James Bennett's excellent article here:
http://www.b-list.org/weblog/2007/nov/01/django-tips-template-loading-and-rendering/

In it he mentioned request_context and the context_instance parameter
to render_to_response and mentions that many people he talks to don't
know of it's existence.

Maybe the reason a lot of people don't know about the context_instance
is that it isn't mentioned here: 
http://www.djangoproject.com/weblog/2005/sep/24/newshortcuts/
or here: http://www.djangoproject.com/documentation/shortcuts/

and they are the top two results in Google for 'render_to_response'

Although it is mentioned here:
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext

This page doesn't even show up on the first page of results so it
isn't surprising people miss it. Worth adding a mention to the docs?


--~--~-~--~~~---~--~~
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: name 'django' is not defined

2007-11-07 Thread Florian Lindner

Am Mittwoch, 7. November 2007 schrieb Marty Alchin:
> On 11/7/07, Florian Lindner <[EMAIL PROTECTED]> wrote:
> > But why does the root urls.py works that also contains the line
> >
> > from django.conf.urls.defaults import *
> >
> > or the manage.py script or another installed app in the same project
> > directory?
>
> If you post the whole contents of the 'xgm.Blog.urls' module, it might
> be more clear what's going on. Use http://dpaste.com/ if it's too
> large for email.

It's not much: 



from django.conf.urls.defaults import *
from models import *

info_dict = { "queryset": BlogEntry.objects.all().order_by("-creationDate"), }

urlpatterns = patterns("",
(r'^$', 'django.views.generic.list_detail.object_list', dict(info_dict, 
allow_empty=True, paginate_by=3)),

(r'^page(?P[0-9]+)/$', 'django.views.generic.list_detail.object_list', 
dict(info_dict, allow_empty=True, paginate_by=3)),
(r"^newComment/$", django.views.generic.create_update.create_object, 
dict(model=BlogComment))
)

Regards,

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
-~--~~~~--~~--~--~---



YAFU: Yet Another File Upload app...

2007-11-07 Thread Dustin Lang


Hi,

It didn't seem like any of the current Django file upload apps provided exactly 
the functionality I needed, so I hacked my own.  If the community is 
interested, I can try to polish it a bit and contribute it.

We deal with large uploads - up to hundreds of megabytes - so I wanted the 
following:

-the server should not keep the whole file in memory while the upload is 
progressing: it should stream to disk

-the server shouldn't have to copy the streamed data: it should only write the 
uploaded file once

-the user must get some feedback (a progress meter, or whatever) while the 
upload is progressing


I wrote some code that accomplishes this.  You can see an ugly demo at:
http://oven.cosmo.fas.nyu.edu:/upload-demo/

It works as follows:

-There is a python CGI program that accepts the upload.  It's not a Django view 
because it needs to stream the input as it comes in from the network; it runs 
as a normal mod_python handler.

-This CGI program parses the multipart/form-data input, looking for an 
"upload_id" field (which tells it which temp file to write the uploaded file 
to), and then looks for the file data itself and streams that to disk.  At the 
end of the upload, it produces a dictionary of the "normal" form fields and an 
object representing the uploaded file.

-We have a "main" form with several fields, and within that HTML page there are 
two IFRAMEs.  The first one contains an "upload" form: it requests a form which 
has a hidden "upload_id" field and a file input element (and a hidden submit 
button).  The second IFRAME contains an (initially hidden) upload progress 
meter.

-If the user submits the "upload" form (by hitting ENTER in the file input 
dialog), some Javascript gets triggered which displays the upload progress 
meter.  (The upload progress meter is a snazzy little AJAX dealie - quite nice 
but its CSS needs some attention).  If the file is empty or some other error 
occurs, the progress meter shows an error message.

-When the file upload starts, the CGI writes "Upload in progress..." and when 
if it finishes successfully, it writes a hidden  element.  Some Javascript 
notices that the upload form's IFRAME finished loading, and it looks for that 
 to ensure that the upload was successful.  If so, it grabs the 
"upload_id", saves it in a hidden field in the main form, and submits the main 
form.

-The main form goes to a normal Django view, and it can use the "upload_id" to 
pull a reference to the file out of a database.


I know it sounds overly complicated, but it seemed to be necessary to achieve 
the user experience and server-side requirements I had.

Before it's ready for prime-time, it will need some fixes:

-the form-multipart parsing is currently hacky; the RFC should get translated 
into regular expressions

-the upload form handler currently doesn't really do anything with the other 
form fields - it should store them in a database.

-there's not a lot of checking of upload_id values - one could easily add some 
rules that only upload_ids that have been generated by the server can be 
uploaded; and that it's invalid to try to re-upload a file; or that only 
authenticated users are allowed to upload files.

-I'm new to python and Django, so I'm sure there is a lot of polishing that 
could be done.

-I tried to work out a solution that didn't require two IFRAMES (one for the 
file form, one for the progress meter), but couldn't get it to work.


Anyway, let me know if you're interested in this code and I'll bundle it up if 
anyone is.

Cheers,
dstn.


--~--~-~--~~~---~--~~
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: AUTH_PROFILE_MODULE usable with v0.96?

2007-11-07 Thread RajeshD



On Nov 7, 6:46 am, paulc <[EMAIL PROTECTED]> wrote:
> I'm trying to follow the example in the Django book, to make a simple
> extension of the standard User object.
>
> I'm hoping someone may be able to give me a quick yes or no on this:
> is the AUTH_PROFILE_MODULE setting expected to work with Django 0.96,
> or do I need to upgrade to the SVN release?

I have a couple of sites on 0.96 where it's been working without a
problem.

>
> Within a very simple view that I'm using just to try this out, I can
> pick up the User object and access some of its fields (e.g. username)
> and custom methods (e.g. is_authenticated);  but if I call the
> get_profile() method, I see the following error:
>
> Exception Type: AttributeError
> Exception Value:'NoneType' object has no attribute
> '_default_manager'
>
> I'm pretty sure I have AUTH_PROFILE_MODULE set correctly (I do not get
> the `too many values to unpack' error).
>
> I do not see the SiteProfileNotAvailable error, which again seems to
> suggest I have all the necessary middleware and settings present in
> the configuration.

Actually, it would help if you would paste here your
AUTH_PROFILE_MODULE  setting as well as your profile model class.
Also, what Django app name does this profile model live under?


--~--~-~--~~~---~--~~
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: AUTH_PROFILE_MODULE usable with v0.96?

2007-11-07 Thread paulc

Problem solved: I've confirmed for myself that AUTH_MODULE_PROFILE
does indeed work with Django v0.96




On Nov 7, 11:46 am, paulc <[EMAIL PROTECTED]> wrote:
> I'm trying to follow the example in the Django book, to make a simple
> extension of the standard User object.
>
> I'm hoping someone may be able to give me a quick yes or no on this:
> is the AUTH_PROFILE_MODULE setting expected to work with Django 0.96,
> or do I need to upgrade to the SVN release?
>
> Within a very simple view that I'm using just to try this out, I can
> pick up the User object and access some of its fields (e.g. username)
> and custom methods (e.g. is_authenticated);  but if I call the
> get_profile() method, I see the following error:
>
> Exception Type: AttributeError
> Exception Value:'NoneType' object has no attribute
> '_default_manager'
>
> I'm pretty sure I have AUTH_PROFILE_MODULE set correctly (I do not get
> the `too many values to unpack' error).
>
> I do not see the SiteProfileNotAvailable error, which again seems to
> suggest I have all the necessary middleware and settings present in
> the configuration.
>
> Also, I test the User object's is_authenticated attribute, and confirm
> that returns true; as expected, is_anonymous returns false.   That
> seems to rule out the possibility that I'm dealing with an
> AnonymousUser object.
>
> Also, I found and read the Django tips article re. extending the user
> model (http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-
> user-model/), but still can't see that I'm doing anything wrong in the
> code or settings.
>
> Any feedback much appreciated.
>
> - Paul


--~--~-~--~~~---~--~~
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: site is built with django, but my server doesn't know that...

2007-11-07 Thread RajeshD

> Here is what I do and
> what it all looks like:
>
> log in as [EMAIL PROTECTED]
>
> [EMAIL PROTECTED]:~# python
> Python 2.5.1, Ubuntu 4.1.2 etc. etc.
>
> So Python is installed and I've opened the interpreter, right?
>
> Then this:
>
> >>> import django [to verify that django is installed]
>
> and I get
>
> Traceback (most recent call last):
> File "", line 1, in 
> ImportError: No module named django
>

This just means that django is not in your PYTHONPATH. If your server
is already running the original Django app, it means that Django is
installed. Take a look at the installation documentation to learn more
about setting up your PYTHONPATH and other environment.

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

Also, as an aside, try using some kind of source control (subversion,
for example) so that you avoid changing your production source code
directly on your production server. A better way to do this is to
change things on your development/test environment, test it there,
commit your stable changes to a source control repository and then
grab and install them on your production server from the repository.



--~--~-~--~~~---~--~~
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: name 'django' is not defined

2007-11-07 Thread Marty Alchin

On 11/7/07, Florian Lindner <[EMAIL PROTECTED]> wrote:
> But why does the root urls.py works that also contains the line
>
> from django.conf.urls.defaults import *
>
> or the manage.py script or another installed app in the same project
> directory?

If you post the whole contents of the 'xgm.Blog.urls' module, it might
be more clear what's going on. Use http://dpaste.com/ if it's too
large for email.

-Gul

--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread Marty Alchin

On 11/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have to initially go live with this on Sunday (madness) but your
> project sounds really interesting. Definately something I would be
> interested in following. Do you have a message list for it or should I
> keep an eye on the google code repository? When I'm in less of a panic
> about getting this site launched I will download it and have a play.

Your best bet for progress is to check my blog[1] where I plan to
write all about it when I've updated it. If you don't care about the
rest of my work, just check out the 'modular' tag.[2] You can check
the repository as well, if you like, but it'll probably be tough to
figure out what's going on.

-Gul

[1] http://gulopine.gamemusic.org/
[2] http://gulopine.gamemusic.org/search/label/modular

--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread RajeshD



On Nov 7, 10:11 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Thanks, flat pages look really useful.
>
> Unfortunately I don't think they solve my problem here - the rest of
> the page needs to be dynamic and driven by custom content; it's only a
> subset of the page elements that I want to be static in this way.

Actually, you could use the flatpages model for this if not the whole
Flatpages application. Here's how:

Have your end users enter their text in a flatpage with the URL say '/
homepage_text/'. In your view that builds the full homepage (dynamic +
static), make an explicit query to get the flatpage text:

from django.contrib.flatpages.models import FlatPage
static_text = FlatPage.objects.get(url='/homepage_text/')

Pass this text on to your template along with your dynamic parameters.

If your user entered text is really a bunch of properties and such,
you may be better off creating your model to capture them.

In short, you can treat the FlatPage model as a storage for elementary
key, value type properties with a key being FlatPage.url and a value
being FlatPage.content.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



site is built with django, but my server doesn't know that...

2007-11-07 Thread erica g

I have very basic experience with Django templating and creating
models and apps.  The developer who built my site is gone and I am
trying to sort things out.  I know our site runs on Django.  I used to
have Django installed on my own machine and did all of my mini-
development work there (like creating models and apps and modifying
admin and public views).  Now I want to do that directly on the
server.  However when I try to do anything Django-ish, my server
doesn't seem to know that Django is installed.  Here is what I do and
what it all looks like:

log in as [EMAIL PROTECTED]

[EMAIL PROTECTED]:~# python
Python 2.5.1, Ubuntu 4.1.2 etc. etc.
>>>

So Python is installed and I've opened the interpreter, right?

Then this:

>>> import django [to verify that django is installed]

and I get

Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named django
>>>

Any ideas??

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: Start development: which branch?

2007-11-07 Thread Tim Chase

> Should I use trunk for development? Or is there any branch
> better for development? (with regard to the introduction of
> newforms)


I think the general rule of thumb is:

If you absolutely must have a stable API, and don't need anything 
more than what 0.96 offers (lots of new features and 
functionality have been added since then), use 0.96

Otherwise, use trunk.

This does mean accomodating the occasional change that breaks 
backwards compatibility as documented here [1] but trunk is 
production-worthy most of the time (just be sure to test and 
track the below URL to make sure your code doesn't break between 
versions of Django).  However, using trunk also allows access to 
the latest and greatest features too.

-tim

[1]
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges





--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread [EMAIL PROTECTED]

Hey Marty,

That also sounds really interesting - although Flatpages didn't solve
my problem I actually realised it solved something else I was working
on and they are now part of my site (Thanks Rajesh!).

I have to initially go live with this on Sunday (madness) but your
project sounds really interesting. Definately something I would be
interested in following. Do you have a message list for it or should I
keep an eye on the google code repository? When I'm in less of a panic
about getting this site launched I will download it and have a play.

Regards,

Ben

On Nov 7, 3:39 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 11/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Unfortunately I don't think they solve my problem here - the rest of
> > the page needs to be dynamic and driven by custom content; it's only a
> > subset of the page elements that I want to be static in this way. I
> > suppose what I'm looking for is a kind of properties section for the
> > site. It might not exist in Django of course - typically I would
> > imagine this kind of thing would exist in the template. Unfortunately
> > the site needs to be managed by a non technical user so they wont be
> > up to editing templates.
>
> I'm working on an app[1] that might help you out. It's basically a way
> to easily create a site with modules, similar to how Google's homepage
> works, but your apps would provide the modules for the site. You'd be
> able to let users add/remove/customize some modules, while others
> would always be there, regardless of the current user's preferences.
> They'd even show up for users who aren't logged in.
>
> I'm still doing a lot of work on it at the moment, though, so I don't
> expect it to do everything you're looking for until sometime in the
> next couple weeks. It currently works to an extent, but it's fairly
> primitive, doesn't have all the options it needs, and has no
> documentation. If it sounds like what you need, though, I'll keep you
> posted on my progress.
>
> -Gul
>
> [1]http://code.google.com/p/django-modular/


--~--~-~--~~~---~--~~
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: Using GeoDjango features with current trunk?

2007-11-07 Thread David Hancock

On Nov 6, 9:17 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> ...
> So anybody who's staying away from the GIS branch because of some
> perception that it's less stable than trunk and they can do a better job
> locally should re-evaluate. Trunk maintainers (well, at least one of
> them) are paying attention to what's going on in the various branches
> and looking for ways to make things easier in the background. It's solid
> now and can only become less and less divergent over time.
>

Thanks, all. Thanks especially to Malcolm for assessing the stability.
We are going to install and test using GeoDjango.


--~--~-~--~~~---~--~~
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: form_for_instance and form argument, empty form?

2007-11-07 Thread RajeshD

>
> > Paste here your FooForm and Foo model code that doesn't work for you.
>
> class Foo(models.Model):
> title = models.CharField(_("Title"), core=True, maxlength=100)
>
> class FooForm(forms.Form):
> title = forms.CharField(label = _("Title"))

Now, I am more confused about your actual problem. You say in the
original post that when you use FooForm as a base "form" parameter in
form_for_instance, you don't get fields from Foo. But in the code
above, both FooForm and Foo have the same field named 'title'. In such
a case, you wouldn't need to use the form=FooForm parameter at all.
Just form_for_instance(foo) and form_for_model(Foo), would work.

Here is an example of using a custom form base class that is intended
to add a new field to the set of fields that are created from the Foo
model. Notice how this adds the new field 'another_title' in the
__init__ method instead of adding it as a class field:

class FooForm(forms.BaseForm):
def __init__(self, *args, **kwargs):
super(FooForm, self).__init__(*args, **kwargs)
self.fields['another_title'] = forms.CharField(label =
_("Title2"))

More details here:
http://www.djangoproject.com/documentation/newforms/#using-an-alternate-base-class


--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread [EMAIL PROTECTED]

Thanks, flat pages look really useful.

Unfortunately I don't think they solve my problem here - the rest of
the page needs to be dynamic and driven by custom content; it's only a
subset of the page elements that I want to be static in this way. I
suppose what I'm looking for is a kind of properties section for the
site. It might not exist in Django of course - typically I would
imagine this kind of thing would exist in the template. Unfortunately
the site needs to be managed by a non technical user so they wont be
up to editing templates.

If nothing does exist I'm sure I can write something better but
deadlines are pressing at the moment and it seemed like a proplem
someone else was likely to have encountered before.

Ben

On Nov 7, 2:57 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> > However this seems messy
> > and I feel like I'm working against Django. Is there a better way of
> > doing it?
>
> Consider using 
> "flatpages":http://www.djangoproject.com/documentation/flatpages/


--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread Marty Alchin

On 11/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Unfortunately I don't think they solve my problem here - the rest of
> the page needs to be dynamic and driven by custom content; it's only a
> subset of the page elements that I want to be static in this way. I
> suppose what I'm looking for is a kind of properties section for the
> site. It might not exist in Django of course - typically I would
> imagine this kind of thing would exist in the template. Unfortunately
> the site needs to be managed by a non technical user so they wont be
> up to editing templates.

I'm working on an app[1] that might help you out. It's basically a way
to easily create a site with modules, similar to how Google's homepage
works, but your apps would provide the modules for the site. You'd be
able to let users add/remove/customize some modules, while others
would always be there, regardless of the current user's preferences.
They'd even show up for users who aren't logged in.

I'm still doing a lot of work on it at the moment, though, so I don't
expect it to do everything you're looking for until sometime in the
next couple weeks. It currently works to an extent, but it's fairly
primitive, doesn't have all the options it needs, and has no
documentation. If it sounds like what you need, though, I'll keep you
posted on my progress.

-Gul

[1] http://code.google.com/p/django-modular/

--~--~-~--~~~---~--~~
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: form_for_instance and form argument, empty form?

2007-11-07 Thread David Larlet

RajeshD a écrit :
>
> On Nov 7, 9:42 am, David Larlet <[EMAIL PROTECTED]> wrote:
>   
>> I thought that it was more appropriated to post it on the devlist
>> because it sounds like a bug but ok let's move it on the userlist, sorry
>> for the noise here. I'll be glad to hear your solution.
>> 
>
> Paste here your FooForm and Foo model code that doesn't work for you.
>   

class Foo(models.Model):
title = models.CharField(_("Title"), core=True, maxlength=100)

class FooForm(forms.Form):
title = forms.CharField(label = _("Title"))

Here they are.

David


--~--~-~--~~~---~--~~
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 used in another server application

2007-11-07 Thread schlam

Thanks, this seems to be just what Io wanted.

On Nov 7, 12:00 pm, Brot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I think this link could be useful for 
> youhttp://www.cotellese.net/2007/09/27/running-external-scripts-against-...
>
> Regards
>   Bernd
>
> On 7 Nov., 12:21, schlam <[EMAIL PROTECTED]> wrote:
>
> > I am am trying to write a server to communicate with a bit of hardware
> > in python which will want to communicate with my django project
> > database. Obviously I can use sqlobject to connect to the database but
> > is there a way I can incorporate django into my server to connect to
> > the database and use the django models?
>
> > I am new to python,django and network programming all at once so any
> > help would be appreciated.


--~--~-~--~~~---~--~~
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: name 'django' is not defined

2007-11-07 Thread Thomas Guettler

Am Mittwoch, 7. November 2007 15:41 schrieb Florian Lindner:
> Hello,
> I'm using Django trunk.
>
> After some weeks of paused development I started my app again today. But as
> soon as I access the URL defined at the root urls.py:
>
> (r"^blog/", include("xgm.Blog.urls")),
>
> I get an error:
>
> Error while importing URLconf 'xgm.Blog.urls': name 'django' is not defined
>
> The first line of xgm.Blog.urls is:
>
> from django.conf.urls.defaults import *
>
> The app is started with the manage.py script.
>
> Anyone got an idea whats is wrong here?

The Python interpreter can't find the module 'django'.

At runtime the path is stored in sys.path.

You can debug this:
import sys
assert False, sys.path

You have several options:
 1. modify the environment variable PYTHONPATH
 2. modify sys.path:
   sys.path.append('/yourpath')
 3. Move the django directory (the one that contains e.g. 'newforms')
to a place on your sys.path.

 Thomas

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



name 'django' is not defined

2007-11-07 Thread Florian Lindner

Hello,
I'm using Django trunk.

After some weeks of paused development I started my app again today. But as 
soon as I access the URL defined at the root urls.py:

(r"^blog/", include("xgm.Blog.urls")),

I get an error:

Error while importing URLconf 'xgm.Blog.urls': name 'django' is not defined

The first line of xgm.Blog.urls is:

from django.conf.urls.defaults import *

The app is started with the manage.py script.

Anyone got an idea whats is wrong here?

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
-~--~~~~--~~--~--~---



IF you want earning easy money click on the link below!

2007-11-07 Thread Riaz Muhammad
http://www.freewebs.com/homebusiness1

--~--~-~--~~~---~--~~
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: form_for_instance and form argument, empty form?

2007-11-07 Thread RajeshD



On Nov 7, 9:42 am, David Larlet <[EMAIL PROTECTED]> wrote:
> I thought that it was more appropriated to post it on the devlist
> because it sounds like a bug but ok let's move it on the userlist, sorry
> for the noise here. I'll be glad to hear your solution.

Paste here your FooForm and Foo model code that doesn't work for you.


--~--~-~--~~~---~--~~
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: Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread RajeshD

> However this seems messy
> and I feel like I'm working against Django. Is there a better way of
> doing it?

Consider using "flatpages": 
http://www.djangoproject.com/documentation/flatpages/


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Earn Money Online! No Registration Fees. Guaranteed Payments.

2007-11-07 Thread Riaz Muhammad
http://www.moneycosmos.com/?r=321740

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Does anyone know a good method for creating one time pages with Django?

2007-11-07 Thread [EMAIL PROTECTED]

Hi,

Could anyone recommed a good method for creating one time pages with
Django. What I want to do is create something like a homepage class
that would contain things like the message of the day. However I only
want ever want one copy of the homepage - I don't want the user to be
able to create additional ones.

At the moment I done this by creating a single instance of the
homepage, removed the add more link from the index page and linked
directly to the edit page for this instance. However this seems messy
and I feel like I'm working against Django. Is there a better way of
doing it?

Thanks,

Ben


--~--~-~--~~~---~--~~
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: form_for_instance and form argument, empty form?

2007-11-07 Thread David Larlet

I thought that it was more appropriated to post it on the devlist 
because it sounds like a bug but ok let's move it on the userlist, sorry 
for the noise here. I'll be glad to hear your solution.

David

Marty Alchin a écrit :
> This should probably be asked on django-users, as it's more about how
> to use form_for_instance() than any internal development. And yes,
> that means I don't believe it's a bug, and I'll gladly explain more on
> django-users so more people can hear it.
>
> -Gul
>
> On 11/7/07, David Larlet <[EMAIL PROTECTED]> wrote:
>   
>> Hi all,
>>
>> I'd spent a long time finding that bug but I want to be sure before
>> submitting it on Trac. If you pass a form argument to form_for_instance
>> like that:
>>
>> forms.form_for_instance(foo, form=FooForm)
>>
>> with an instance of foo which only contains a basic field (let's say a
>> CharField) and FooForm with a unique field too, the input rendered will
>> not be completed with the content of the foo instance. If you remove the
>> form argument:
>>
>> forms.form_for_instance(foo)
>>
>> the generated form contains the content of the foo instance.
>>
>> I'd tried to find the bug but this line (122 of newforms.models):
>>
>> return type(opts.object_name + 'InstanceForm', (form,),
>> {'base_fields': base_fields, '_model': model,
>>  'save': make_instance_save(instance, fields, 'changed')})
>>
>> give me headaches ;-). The only thing I can say is that base_fields
>> contains the initial data before this line but my returned form not.
>>
>> Did somebody use this argument and can confirm?
>>
>> Regards,
>> David
>>
>>
>> 
>
> >
>   


--~--~-~--~~~---~--~~
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: name 'django' is not defined

2007-11-07 Thread Florian Lindner

Am Mittwoch, 7. November 2007 schrieb Thomas Guettler:
> Am Mittwoch, 7. November 2007 15:41 schrieb Florian Lindner:
> > Hello,
> > I'm using Django trunk.
> >
> > After some weeks of paused development I started my app again today. But
> > as soon as I access the URL defined at the root urls.py:
> >
> > (r"^blog/", include("xgm.Blog.urls")),
> >
> > I get an error:
> >
> > Error while importing URLconf 'xgm.Blog.urls': name 'django' is not
> > defined
> >
> > The first line of xgm.Blog.urls is:
> >
> > from django.conf.urls.defaults import *
> >
> > The app is started with the manage.py script.
> >
> > Anyone got an idea whats is wrong here?
>
> The Python interpreter can't find the module 'django'.
>
> At runtime the path is stored in sys.path.
>
> You can debug this:
> import sys
> assert False, sys.path
>
> You have several options:
>  1. modify the environment variable PYTHONPATH
>  2. modify sys.path:
>sys.path.append('/yourpath')
>  3. Move the django directory (the one that contains e.g. 'newforms')
> to a place on your sys.path.

Yes, that was clear to me.

But why does the root urls.py works that also contains the line

from django.conf.urls.defaults import *

or the manage.py script or another installed app in the same project 
directory?

Regards,

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: Overriding Default Primary Key Type?

2007-11-07 Thread gordyt

Malcolm thanks very much.  This is a great idea:

> You can't change the underlying data type for the automatically
> generated primary key without changing Django's source.
>
> So your choices are either to write a custom field or, more easily,
> manually alter the type of the primary key column after the table has
> been created 
> (seehttp://www.djangoproject.com/documentation/model-api/#providing-initi...).

I knew about being able to populate the database using the method that
you linked to but never even considered  using that very same method
to customize the schema.   Just wonderful!

--gordon


--~--~-~--~~~---~--~~
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 used in another server application

2007-11-07 Thread Brot

Hello,

I think this link could be useful for you
http://www.cotellese.net/2007/09/27/running-external-scripts-against-django-models/

Regards
  Bernd

On 7 Nov., 12:21, schlam <[EMAIL PROTECTED]> wrote:
> I am am trying to write a server to communicate with a bit of hardware
> in python which will want to communicate with my django project
> database. Obviously I can use sqlobject to connect to the database but
> is there a way I can incorporate django into my server to connect to
> the database and use the django models?
>
> I am new to python,django and network programming all at once so any
> help would be appreciated.


--~--~-~--~~~---~--~~
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: Start development: which branch?

2007-11-07 Thread Thomas Guettler

Am Mittwoch, 7. November 2007 12:25 schrieb Florian Lindner:
> Hello,
> I'm just about to start a project with Django (which will also be for
> learning Django).
>
> Should I use trunk for development? Or is there any branch better for
> development? (with regard to the introduction of newforms)

Hello,

use trunk. At the moment there is no better branch.

 Thomas

--~--~-~--~~~---~--~~
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: Start development: which branch?

2007-11-07 Thread Dan Fairs

>
> Should I use trunk for development? Or is there any branch better for
> development? (with regard to the introduction of newforms)

I've had considerable success with trunk. YMMV :)

Cheers,
Dan

--
Dan Fairs <[EMAIL PROTECTED]>




--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



AUTH_PROFILE_MODULE usable with v0.96?

2007-11-07 Thread paulc

I'm trying to follow the example in the Django book, to make a simple
extension of the standard User object.

I'm hoping someone may be able to give me a quick yes or no on this:
is the AUTH_PROFILE_MODULE setting expected to work with Django 0.96,
or do I need to upgrade to the SVN release?

Within a very simple view that I'm using just to try this out, I can
pick up the User object and access some of its fields (e.g. username)
and custom methods (e.g. is_authenticated);  but if I call the
get_profile() method, I see the following error:

Exception Type: AttributeError
Exception Value:'NoneType' object has no attribute
'_default_manager'

I'm pretty sure I have AUTH_PROFILE_MODULE set correctly (I do not get
the `too many values to unpack' error).

I do not see the SiteProfileNotAvailable error, which again seems to
suggest I have all the necessary middleware and settings present in
the configuration.

Also, I test the User object's is_authenticated attribute, and confirm
that returns true; as expected, is_anonymous returns false.   That
seems to rule out the possibility that I'm dealing with an
AnonymousUser object.

Also, I found and read the Django tips article re. extending the user
model (http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-
user-model/), but still can't see that I'm doing anything wrong in the
code or settings.

Any feedback much appreciated.

- Paul


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Start development: which branch?

2007-11-07 Thread Florian Lindner

Hello,
I'm just about to start a project with Django (which will also be for learning 
Django).

Should I use trunk for development? Or is there any branch better for 
development? (with regard to the introduction of newforms)

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: newforms: how to validate form_for_model ?

2007-11-07 Thread Thomas Guettler

Am Mittwoch, 7. November 2007 12:02 schrieb parabol:
> Hi,
> I have a form class which is generated with form_for_model. How can I
> write my custom validator? I think I should set a clean() method for
> that class. Is it reasonable to say that;
>
> fom1.clean= def clean 

You could set the clean method like this, but this is
a cleaner way:

from django import newforms as forms
class MyForm(forms.BaseForm):
def clean(self):


forms.form_for_model(..., form=MyForm)

Documented here:
http://www.djangoproject.com/documentation/newforms/#using-an-alternate-base-class

 Thomas

--~--~-~--~~~---~--~~
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 used in another server application

2007-11-07 Thread schlam

I am am trying to write a server to communicate with a bit of hardware
in python which will want to communicate with my django project
database. Obviously I can use sqlobject to connect to the database but
is there a way I can incorporate django into my server to connect to
the database and use the django models?

I am new to python,django and network programming all at once so any
help would be appreciated.


--~--~-~--~~~---~--~~
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 used in another server application

2007-11-07 Thread schlam

I am am trying to write a server to communicate with a bit of hardware
in python which will want to communicate with my django project
database. Obviously I can use sqlobject to connect to the database but
is there a way I can incorporate django into my server to connect to
the database and use the django models?

I am new to python,django and network programming all at once so any
help would be appreciated.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Using MultiWidget

2007-11-07 Thread PlanarPlatypus

Hi,
I am trying to write a request Tracking system using the following
models (Re-ordered and some fields removed for clarity)

class Request(models.Model):
packages=models.ManyToManyField(Package)

class Package(models.Model):
product=models.ForeignKey(Product)
components=models.ManyToManyField(ComponentVersion)

class Product(models.Model):
name=models.CharField(max_length=60)
required_components=models.ManyToManyField(Component)

class Component(models.Model):
name=models.CharField(max_length=60)

class ComponentVersion(models.Model):
component=models.ForeignKey(Component)
version=models.PositiveIntegerField()

I need to present an interface where the user first creates a request
by selecting 1 or more Packages (done) and is then presented with a
page containing a series of dropdowns allowing them to chose the
ComponentVersions for the packages' products grouped by their
component.

At the moment I have got a set of queries which gives me a list of
querysets for the relevant ComponentVersions.  I was looking at having
a ModelChoiceField for each of these and constructing the form
dynamically but this is messy to validate.  Is there an easier/cleaner
method of doing this?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



newforms: how to validate form_for_model ?

2007-11-07 Thread parabol

Hi,
I have a form class which is generated with form_for_model. How can I
write my custom validator? I think I should set a clean() method for
that class. Is it reasonable to say that;

fom1.clean= def clean 

fkoksal


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---