Re: Would a web search be a good addition to the contribs framework?

2007-10-01 Thread Russell Keith-Magee

On 10/2/07, shabda.raaj <[EMAIL PROTECTED]> wrote:
>
> Would a web search be a good addition to the contribs framework? I am
> willing to code this. But before doing that, I just want to make sure
> it would be useful to people :)

It could be. It depends on exactly what it does, and how well it does it.

The philosophy we are currently taking to contrib apps is this:

If you think you have a great idea for a contrib app, start a google
code project (or similar public repository) as a testbed for your
ideas. Develop your contribution, with documentation and tests.

Try to make your application as standalone as possible. However, if
you need to make modifications to Django itself to make your
application work, try to come up with a generic interface that could
be useful to other application developers, and shepard that change
into the Django trunk. A good example of this approach is the recently
added user-contributed management commands, which will benefit all
user-contributed applications.

If your project becomes mature, offers some features that are
generally useful, has a healthy following, a history of being
regularly updated, and integrates well with the core feature set of
Django, it may be added as a contrib app at some time in the future.
Until that time, it should be useful as an external application by
anybody that finds it useful.

Django-registration [1] and django-openid [2] are good examples of how
to run your project. They are a standalone Django applications for
handling user account registration and OpenID logins, respectively.
Both serve as a good example of how to set up your project if you
wanted to make it a contrib app in the future.

That said, it wouldn't surprise me if django-registration _doesn't_
become a contrib app - it encodes some specific business logic that
may not be suitable for everyone (it's a good app regardless - it's
just a question of whether it should be part of the Django core).

[1] http://code.google.com/p/django-registration
[2] http://code.google.com/p/django-openid

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django Trac signup broken?

2007-10-01 Thread Matt Boersma

That fixed it--I got the confirmation email immediately this time
after registering.  I'll close #5579.  Thanks, Jacob.

On Oct 1, 2:20 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]>
wrote:
> OK, it should be fixed for real this time -- emails are now being sent
> from "[EMAIL PROTECTED]"
>
> Matt, can you test, verify, and close the ticket if it works?
>
> Thanks,
>
> Jacob


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django Trac signup broken?

2007-10-01 Thread Jacob Kaplan-Moss

OK, it should be fixed for real this time -- emails are now being sent
from "[EMAIL PROTECTED]"

Matt, can you test, verify, and close the ticket if it works?

Thanks,

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django Trac signup broken?

2007-10-01 Thread Jacob Kaplan-Moss

On 10/1/07, Matt Boersma <[EMAIL PROTECTED]> wrote:
> I tested again today and of course never got the email since our SMTP
> server must have rejected the bogus sender address.  I've used up all
> my spare email addresses testing this, so I'm done with it.  Trac
> signup has been broken for two weeks now.
>
> Until #5579 is fixed, no one new can sign up to help with Django.

Weird - it's been working fine for me. I tested it out last week and
when it worked kinda forgot about it. I'll take a closer look.

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django Trac signup broken?

2007-10-01 Thread Matt Boersma

On Sep 26, 8:38 am, Barry Pederson <[EMAIL PROTECTED]> wrote:
> Matt Boersma wrote:
> > In reviewing bug #5579 (seehttp://code.djangoproject.com/ticket/5579),
> > I discovered I never receive the confirmation email from Trac at
> >http://www.djangoproject.com/accounts/register/.  I've tried four
> > times since Sunday, using two email addresses in different domains.  I
> > can't actually verify that Trac is mistakenly sending from
> > "[EMAIL PROTECTED]" because I never get the email, and my hunch is
> > it's not being sent.  Otherwise I'd see that it was spam-filtered by
> > one of my ISPs.
>
> Yeah, it's currently using "[EMAIL PROTECTED]" as the SMTP FROM
> address. My SMTP server refused it with: "sender verify fail for
> <[EMAIL PROTECTED]>: Unrouteable address"

I tested again today and of course never got the email since our SMTP
server must have rejected the bogus sender address.  I've used up all
my spare email addresses testing this, so I'm done with it.  Trac
signup has been broken for two weeks now.

Until #5579 is fixed, no one new can sign up to help with Django.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Display name for Models in admin

2007-10-01 Thread Collin Grady

sixpackistan said the following:
> i apologize ahead of time if this seems like a stupid question- but i
> have tried repeatedly to find an answer without having to post.
> In any event, i have a model defined called 'ItemStatus' which is
> displayed in the django admin as "Item statuss"- is there a way, short
> of renaming my model class, to change how the model name appears in
> the admin?

This question is more suited for django-users - this list is for the
development of django itself, not general help questions :)

-- 
Collin Grady

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Would a web search be a good addition to the contribs framework?

2007-10-01 Thread Waylan Limberg

The contrib apps are just normal django apps that happen to be
included with the core. Generally, developers simply develop them as a
third party app, and if the demand is there and the core devs
like/approve it, the app gets added as a contrib app. That decision
usuualy only happens after the app exists and is proven. So my
suggestion would be to just write your search app as a normal django
app and see how things go from there. Most devs use google code
(search the existing projects for lots of examples) to track their
projects, but other similar systems would work as well.

On 10/1/07, shabda.raaj <[EMAIL PROTECTED]> wrote:
>
> It looks to me that a api to get web search functionality in Django
> would be good idea. For example, I generally want to keep track of the
> pages linking to my sites. Similarly being able to search from inside
> of django might be useful in many cases.
> Would a web search be a good addition to the contribs framework? I am
> willing to code this. But before doing that, I just want to make sure
> it would be useful to people :)
> (I just plan to add convinient api for webservices found at
> http://developer.yahoo.com/search/ )
>
>
> >
>


-- 

Waylan Limberg
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



RE: Display name for Models in admin

2007-10-01 Thread Magee, Robert

Ooops!  Sorry everyone!  Wrong group! 


 
-rob
 
Rob Magee
Senior Architect
Verisign Intelligent Supply Chain Services
[EMAIL PROTECTED]
267.324.8226
 

-Original Message-
From: django-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jacob
Kaplan-Moss
Sent: Monday, October 01, 2007 3:41 PM
To: django-developers@googlegroups.com
Subject: Re: Display name for Models in admin


On 10/1/07, sixpackistan <[EMAIL PROTECTED]> wrote:
> i apologize ahead of time if this seems like a stupid question- but i 
> have tried repeatedly to find an answer without having to post.
> In any event, i have a model defined called 'ItemStatus' which is 
> displayed in the django admin as "Item statuss"- is there a way, short

> of renaming my model class, to change how the model name appears in 
> the admin?

http://www.djangoproject.com/documentation/model-api/#verbose_name_plura
l

In the future, please direct questions of this nature to django-users;
django-dev is used to discuss the development of Django itself, not to
answer usage questions.

Thanks!

Jacob



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django on iPhone

2007-10-01 Thread Jacob Kaplan-Moss

On 10/1/07, Matt <[EMAIL PROTECTED]> wrote:
> Found a nice tutorial on how to install Django on your iPhone:
> http://flickr.com/photos/skatterbean/1173984622/

Please direct posts of this nature to django-users; django-dev is used
to discuss the development of Django itself, not use cases.

Thanks!

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Would a web search be a good addition to the contribs framework?

2007-10-01 Thread Matt Davies

yes please shabda

we're currenlty moving away from webglimpse and into solr for our
search engine technology, but something inside django itself would be
really useful.

Especially if you could query other django appilcations from within
one application.

ooh, now dat be tasty burgers

On 01/10/2007, shabda.raaj <[EMAIL PROTECTED]> wrote:
>
> It looks to me that a api to get web search functionality in Django
> would be good idea. For example, I generally want to keep track of the
> pages linking to my sites. Similarly being able to search from inside
> of django might be useful in many cases.
> Would a web search be a good addition to the contribs framework? I am
> willing to code this. But before doing that, I just want to make sure
> it would be useful to people :)
> (I just plan to add convinient api for webservices found at
> http://developer.yahoo.com/search/ )
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Display name for Models in admin

2007-10-01 Thread Jacob Kaplan-Moss

On 10/1/07, sixpackistan <[EMAIL PROTECTED]> wrote:
> i apologize ahead of time if this seems like a stupid question- but i
> have tried repeatedly to find an answer without having to post.
> In any event, i have a model defined called 'ItemStatus' which is
> displayed in the django admin as "Item statuss"- is there a way, short
> of renaming my model class, to change how the model name appears in
> the admin?

http://www.djangoproject.com/documentation/model-api/#verbose_name_plural

In the future, please direct questions of this nature to django-users;
django-dev is used to discuss the development of Django itself, not to
answer usage questions.

Thanks!

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Display name for Models in admin

2007-10-01 Thread sixpackistan

i apologize ahead of time if this seems like a stupid question- but i
have tried repeatedly to find an answer without having to post.
In any event, i have a model defined called 'ItemStatus' which is
displayed in the django admin as "Item statuss"- is there a way, short
of renaming my model class, to change how the model name appears in
the admin?

Any help would be greatly appreciated.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Would a web search be a good addition to the contribs framework?

2007-10-01 Thread shabda.raaj

It looks to me that a api to get web search functionality in Django
would be good idea. For example, I generally want to keep track of the
pages linking to my sites. Similarly being able to search from inside
of django might be useful in many cases.
Would a web search be a good addition to the contribs framework? I am
willing to code this. But before doing that, I just want to make sure
it would be useful to people :)
(I just plan to add convinient api for webservices found at
http://developer.yahoo.com/search/ )


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Django on iPhone

2007-10-01 Thread Matt

Found a nice tutorial on how to install Django on your iPhone:
http://flickr.com/photos/skatterbean/1173984622/

Enjoy,

Matt Sterger


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Possible bug in Meta ordering in 0.96

2007-10-01 Thread Xan



On Sep 30, 11:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/30/07, Xan <[EMAIL PROTECTED]> wrote:
>
> > Although ordering is ('tipus', 'nom'), django admin interface displays
> > the Centre objects by 'tipus' but randomly (?) with 'nom'. I don't
> > know how can I do, because, in shell when I put
> > > Centre.objects.order_by('tipus', 'nom')
>
> Please read the Django documentation:
>
> http://www.djangoproject.com/documentation/model-api/#ordering
>
> > So, is it possible bug in 0.96?
>
> No, read the documentation and it will tell you exactly what you're seeing.

Oh! yes.

But, is it a bug so?

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


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: distinct by default?

2007-10-01 Thread Malcolm Tredinnick

On Mon, 2007-10-01 at 15:05 +0200, Thomas Güttler wrote:
> Hi,
> 
> it is suprising, that
> MyModel.objects.filter()
> does not use distinct by default. If you use related tables and OR,
> you get the same object returned several times.
> 
> Why not enable distinct() by default?

It's a lot less efficient at the SQL level, for a start, since the whole
result set has to be computed by the server before any single row can be
returned.

It's really going to be a matter of your particular usage pattern
whether duplicate results are the norm or not (I can't say that they are
in the stuff I do, for example), so we provide a way to add the overhead
if you need to. The programmer is going to be in the best position to
know whether duplicate results are to be expected or not and can thus
include .distinct() or not, as required.

Regards,
Malcolm



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



distinct by default?

2007-10-01 Thread Thomas Güttler

Hi,

it is suprising, that
MyModel.objects.filter()
does not use distinct by default. If you use related tables and OR,
you get the same object returned several times.

Why not enable distinct() by default?

 Thomas

-- 
Thomas Güttler, http://www.tbz-pariv.de/ 
Bernsdorfer Str. 210-212, 09126 Chemnitz, Tel.: 0371/5347-917
TBZ-PARIV GmbH  Geschäftsführer: Dr. Reiner Wohlgemuth
Sitz der Gesellschaft: Chemnitz Registergericht: Chemnitz HRB 8543

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: I18n seems not to work with mod_wsgi

2007-10-01 Thread Jacob Kaplan-Moss

On 10/1/07, Sandro Dentella <[EMAIL PROTECTED]> wrote:
> I'm no expert of these specifications and would like to better
> understand. Firstly I'd appreciate a link to relevant part, secondly,
> reading the follow-up in the backward incompatible changes is:

It's section 9.1 of RFC 2616, where "safe" and "idempotent" methods
are discussed: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.
Specifically, note that "GET and HEAD methods SHOULD NOT have the
significance of taking an action other than retrieval" -- changing the
users locale is certainly "an action other than retrieval".

Be sure to read the rest of that section, as well as the definitions
of GET and POST in sections 9.3 and 9.5.

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Django 100% threadsafe with DB?

2007-10-01 Thread Nis Jørgensen

PyMan skrev:
> Hi all :)
>
> I have the following problem.
>
> I have a function that do some get_or_create on model X giving as
> parameters the field Y and Z. The same function is running on
> different threads, so it can happen that more get_or_create on model X
> and fields Y/Z are called at the same time. It can also happen that
> the values of Y/Z are the same in the different threads and here it
> comes the problem: it happens that get_or_create says it returned more
> than one row for X-Y/Z.
>
> Now Y/Z are not unique in my model and I do not have an overloading of
> the save function, but I think I can have the same problem if Y/Z were
> unique too.
>
> Looking at the DB I have more than one row with same values...how
> comes this? Here the get_or_create...
>   
Pitching in, since it seems no-one was giving the answer I would give -
though Benjamin Slavin comes close.

Threads and thread saftey has nothing to do with your problem, What you
have is a problem with two different processes (or threads, doesn't
matter) which are issuing database commands that get in the way of each
other.

What happens is something like this (P1, P2 and P3 are two differnt
processes, or threads):

P1: Does a row with the values Y and Z exist? No
P2: Does a row with the values Y and Z exist? No
P1: Add a row with Y and Z
P2: Add a row with Y and Z

P3: Does a row with the values Y and Z exist: AssertionError

This can happen if you are using transactions or not - doesn't really
matter (though transactions will make the problem worse).

Solution: Do not use get_or_create with fields that are not unique in
the database. Do NOT rely on your application to enforce uniqueness.

This still has the problem that get_or_create can return an error (the
second insert in the above sequence will fail) but at least your data
stays correct.

Nis

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: I18n seems not to work with mod_wsgi

2007-10-01 Thread Sandro Dentella

On Sat, Sep 29, 2007 at 08:01:12PM -0700, [EMAIL PROTECTED] wrote:
> 
> Doh, it was not mod_wsgi, or localemiddleware, it was the
> set_language_view() that after rev 6177 requires a post request


I see in the Backwards-incompatible changes says:

  The old behaviour meant that state (the locale used to display the site)
  could be changed by a GET request, which is against the HTTP specification's
  recommendations.

I'm no expert of these specifications and would like to better
understand. Firstly I'd appreciate a link to relevant part, secondly,
reading the follow-up in the backward incompatible changes is:

  This means you can no longer use a link to access the view, but must use a
  form submission of some kind (e.g. a button).

Isn't this just making it (a little bit) more difficult to obtain the same
thing? My (admittedly ignorant) point of view was simply that modification of
data should be done via a POST not just the state.

If I implemented traslations with different URLs (mysite/en|it/...) if would
be ok to use GET but not if I use sessions?

sorry if this becomes a little bit OT...

sandro
*:-)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



scholarship

2007-10-01 Thread Scholarship and Job
*More scholarships in **http://cambodiajobs.blogspot.com
*
PhD Research Scholarships, NUS *(New)*


ASEAN Research Scholars
2008
*(New1)*

The Netherlands Fellowship Programmes (NFP) for
Master
*(New)*

DOCTOR OF PHILOSOPHY
SCHOLARSHIP
*(New)*

Master in Public Administration
Scholarship
*(New)*

Master in Public Policy
Scholarship
*(New)*

e8 Masters and Post-Doctoral Program
Scholarship
*(New)*

Human Rights Scholarship at The University of
Melbourne
*(New)*
Japan 
Scholarship
Japan/World Bank
Scholarship
Ford Foundation
Fellowships
ADB - Japan 
Scholarship
New Zealand Scholarships

Australian Scholarships

Chevening Scholarships

International Development
Scholarship
Australian 
Scholarships
AIT Scholarships
CIDA 
Fellowships
KAAD 
Scholarships
Sida 
Scholarships
Netherlands 
Scholarships
Norwegian MoFA Scholarships

Chiang Mai 
University-Fellowships
Researchers at Walailak
University
Fellows with Asia Research
Institute
ASEAN Research 
Scholars
Asian Scholarship
Foundation
Young Muslim 
Scholars
Postdoctoral Fellowships -
Singapore
The Abe Fellowship
Program(0901)
The Dissertation Proposal Development Fellowship
(DPDF)
AIFS Minority Scholarships 
British Council 
Commonwealth Scholarship and Fellowships
Plan
DAAD - German Academic Exchange Service 
Fulbright Scholarships 
Gilman International Scholarship Program 
NAFSA Grants and
Scholarships
National Security Education Program (NSEP) 
FastWeb! 
OAS 
Scholarships
Art DEADLINES List 
Howard Hughes Medical Institute 
ACM Graduate Assistantship Directory (GAD) 
Fellowship Listing at Yale
University
Society for Software Quality, Grant-In-Aid Essay
Contest
Undergraduate Computational Science Award Program
(UGCSA)
American Society for Engineering Education (ASEE) 
American Society for Mechanical