Re: Satchmo

2007-07-22 Thread kbochert

 !SOLVED!
For any other SVN clueless out there, the site www.instantdjango.com
has a zip package that includes version .97
of Django (as of 5 Jul ). Unzip to a temporary dir and replace site-
packages/django

Thanks
Karl




On Jul 22, 8:43 pm, kbochert <[EMAIL PROTECTED]> wrote:
> I was hoping to try Satchmo, the Django shopping cart.
>
> Unfortunately, it uses 'DecimalField' which is only available in the
> SVN versionof Django. I'm using Win2k, so to get the svn version I
> must install SVN, which means that I have to install APR, which is
> only available as source, which means I have to install m$ visual
> studio (or something).
>
> Is there anyone out there who has the svn version and can make it
> available as a zip (tar, gz, etc)?
>
> Failing that, when can I expect the next official release?
>
> Thanks
> Karl


--~--~-~--~~~---~--~~
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: mod_python problem?

2007-07-22 Thread nick feng
Hi Hames,


I am not sure about your request,but I suggest you to update your http.conf


SetHandler python-program 
PythonPath "['/var/www/django/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On


If you used mysite, mysite should always in your urls, the mod_python will not 
found the right view if you did not add mysite in the urls.

Best wishes,
Nick
  - Original Message - 
  From: James McManus 
  To: django-users@googlegroups.com 
  Sent: Monday, July 23, 2007 12:35 PM
  Subject: mod_python problem?


  I am having two problems using django on an Apache server, with mod_python. 
The first problem I found a solution, but it may be causing other problems. In 
mysite/urls.py I am not able to use the ^ in: 

  (r^'polls/', include(' mysite.polls.urls')),

  It causes a 404 error. I do not have this problem when I use the django 
server. If I remove ^ in:

  (r'polls/', include('mysite.polls.urls')),

  I do not get the error. In the mysite/polls/urls.py I use the ^ in: 

  (r'^(?P\d+)/vote/$', 'vote'),

  and I do not get the 404 error. My mod_python setting in httpd are:

  
  SetHandler python-program 
  PythonPath "['/var/www/django/'] + sys.path"
  PythonHandler django.core.handlers.modpython
  SetEnv DJANGO_SETTINGS_MODULE mysite.settings
  PythonDebug On
  

  These setting appear to work, except for the one variation in mysite/urls.py. 
All functions in admin are working, and I am able to get to the point of voting 
in polls. However, that is where the second problem occurs. When I vote using 
the django server the url changes from: 

  http://localhost:8080/mysite/polls/8/

  to

  http://localhost:8080/polls/8/results/

  and I get the expected results. If I vote without making a selection, the 
following url appears: 

  http://localhost:8080/polls/8/vote/

  and the page produces the expected message: You didn't select a choice. 
However, if I try voting using the mod_python server I get the vote url, 
without mysite: 

  http://www.aratasystems.com/polls/8/vote/

  and the message: The requested URL /polls/8/vote/ was not found on this 
server.

  Also when I use the django server I am able to drop mysite and use urls: 

  http://localhost:8080/polls/
  http://localhost:8080/admin/

  But if drop mysite when using the mod_python server, I get the "requested 
URL" message. I have attempted to modify the mod_python setting in httpd, but 
in all cases it ends up producing errors in both the django and mod_python 
servers. Is there a way I can modify my httpd setting to prevent these 
problems? Or can I deal with this by changing code in mysite? 

  Thanks
  Jim
  

--~--~-~--~~~---~--~~
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: mod_python problem?

2007-07-22 Thread Graham Dumpleton

On Jul 23, 2:35 pm, "James McManus" <[EMAIL PROTECTED]> wrote:
> I am having two problems using django on an Apache server, with mod_python.
> The first problem I found a solution, but it may be causing other problems.
> In mysite/urls.py I am not able to use the ^ in:
>
> (r^'polls/', include('mysite.polls.urls')),
>
> It causes a 404 error. I do not have this problem when I use the django
> server.

The difference is that with the development server you are mounting
your application at the root of the URL namespace. In mod_python you
are mounting it on a subdirectory. Thus use instead:

(r'^mysite/polls/', include('mysite.polls.urls')),

In other words, mount point needs to be expressed from root of URL
name space if anchoring with '^'.

Similar for admin pages URLs etc.

This all arises because Django doesn't take into consideration the
mount point of the whole Django application when using mod_python or
WSGI servers. This is a known issue and there are various tickets
about it.

Graham

> If I remove ^ in:
>
> (r'polls/', include('mysite.polls.urls')),
>
> I do not get the error. In the mysite/polls/urls.py I use the ^ in:
>
> (r'^(?P\d+)/vote/$', 'vote'),
>
> and I do not get the 404 error. My mod_python setting in httpd are:
>
> 
> SetHandler python-program
> PythonPath "['/var/www/django/'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> PythonDebug On
> 
>
> These setting appear to work, except for the one variation in
> mysite/urls.py. All functions in admin are working, and I am able to get to
> the point of voting in polls. However, that is where the second problem
> occurs. When I vote using the django server the url changes from:
>
> http://localhost:8080/mysite/polls/8/
>
> to
>
> http://localhost:8080/polls/8/results/
>
> and I get the expected results. If I vote without making a selection, the
> following url appears:
>
> http://localhost:8080/polls/8/vote/
>
> and the page produces the expected message: You didn't select a choice.
> However, if I try voting using the mod_python server I get the vote url,
> without mysite:
>
> http://www.aratasystems.com/polls/8/vote/
>
> and the message: The requested URL /polls/8/vote/ was not found on this
> server.
>
> Also when I use the django server I am able to drop mysite and use urls:
>
> http://localhost:8080/polls/http://localhost:8080/admin/
>
> But if drop mysite when using the mod_python server, I get the "requested
> URL" message. I have attempted to modify the mod_python setting in httpd,
> but in all cases it ends up producing errors in both the django and
> mod_python servers. Is there a way I can modify my httpd setting to prevent
> these problems? Or can I deal with this by changing code in mysite?
>
> Thanks
> Jim


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

2007-07-22 Thread James Bennett

On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote:
> If I do install it, will I be able to use it? The Satchmo site has
> zips for 'those who have trouble using svn'. If you professionals have
> trouble, what chance have I?

The biggest problem with SVN that I've seen is not SVN itself, but
overzealous corporate IT policies which firewall the necessary HTTP
methods to work with a remote SVN repository.

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

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



Re: Satchmo

2007-07-22 Thread kbochert

Yes I have downloaded it. What am I supposed to do with .lib and .h
files?




On Jul 22, 9:49 pm, "John Shaffer" <[EMAIL PROTECTED]> wrote:
> On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > That seems to get me a bunch of .h and .lib files -- then what!!
>
> Here's a direct 
> link:http://subversion.tigris.org/files/documents/15/38212/svn-win32-1.4.4...


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

2007-07-22 Thread kbochert

That seems to get me a bunch of .h and .lib files -- then what!!



On Jul 22, 9:23 pm, "John Shaffer" <[EMAIL PROTECTED]> wrote:
> The subversion windows binaries are available 
> here:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=81...
>
> You want the "svn-win32-1.4.4.zip" file.
>
> TortoiseSVN might be easier to work with:http://tortoisesvn.tigris.org/


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



Re: Satchmo

2007-07-22 Thread kbochert

A year or two ago I installed that M$ msi stuff and got very scared at
the changed behavior of my computer and removed it (I think, mostly).
I may just have been paranoid, but I would rather avoid downloading
anything from M$.

If I do install it, will I be able to use it? The Satchmo site has
zips for 'those who have trouble using svn'. If you professionals have
trouble, what chance have I?


On Jul 22, 9:39 pm, Forest Bond <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 22, 2007 at 09:35:37PM -0700, kbochert wrote:
>
> > Just looked that up. Perhaps that's the best option... of course that
> > means I have to install M$ installer, install Tortoise and start using
> > windows explorer. Not exactly user-friendly.
>
> Isn't this standard operating procedure for a Windows box?  Double-click a few
> setup.exe's, open up Windows explorer ... ?
>
> -Forest
> --
> Forest Bondhttp://www.alittletooquiet.net
>
>  signature.asc
> 1KDownload


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



Re: Satchmo

2007-07-22 Thread John Shaffer

On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote:
> That seems to get me a bunch of .h and .lib files -- then what!!

Here's a direct link:
http://subversion.tigris.org/files/documents/15/38212/svn-win32-1.4.4.zip

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



mod_python problem?

2007-07-22 Thread James McManus
I am having two problems using django on an Apache server, with mod_python.
The first problem I found a solution, but it may be causing other problems.
In mysite/urls.py I am not able to use the ^ in:

(r^'polls/', include('mysite.polls.urls')),

It causes a 404 error. I do not have this problem when I use the django
server. If I remove ^ in:

(r'polls/', include('mysite.polls.urls')),

I do not get the error. In the mysite/polls/urls.py I use the ^ in:

(r'^(?P\d+)/vote/$', 'vote'),

and I do not get the 404 error. My mod_python setting in httpd are:


SetHandler python-program
PythonPath "['/var/www/django/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On


These setting appear to work, except for the one variation in
mysite/urls.py. All functions in admin are working, and I am able to get to
the point of voting in polls. However, that is where the second problem
occurs. When I vote using the django server the url changes from:

http://localhost:8080/mysite/polls/8/

to

http://localhost:8080/polls/8/results/

and I get the expected results. If I vote without making a selection, the
following url appears:

http://localhost:8080/polls/8/vote/

and the page produces the expected message: You didn't select a choice.
However, if I try voting using the mod_python server I get the vote url,
without mysite:

http://www.aratasystems.com/polls/8/vote/

and the message: The requested URL /polls/8/vote/ was not found on this
server.

Also when I use the django server I am able to drop mysite and use urls:

http://localhost:8080/polls/
http://localhost:8080/admin/

But if drop mysite when using the mod_python server, I get the "requested
URL" message. I have attempted to modify the mod_python setting in httpd,
but in all cases it ends up producing errors in both the django and
mod_python servers. Is there a way I can modify my httpd setting to prevent
these problems? Or can I deal with this by changing code in mysite?

Thanks
Jim

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

2007-07-22 Thread Forest Bond
On Sun, Jul 22, 2007 at 09:35:37PM -0700, kbochert wrote:
> 
> Just looked that up. Perhaps that's the best option... of course that
> means I have to install M$ installer, install Tortoise and start using
> windows explorer. Not exactly user-friendly.

Isn't this standard operating procedure for a Windows box?  Double-click a few
setup.exe's, open up Windows explorer ... ?

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


signature.asc
Description: Digital signature


Re: Satchmo

2007-07-22 Thread kbochert

Just looked that up. Perhaps that's the best option... of course that
means I have to install M$ installer, install Tortoise and start using
windows explorer. Not exactly user-friendly.

Am I wrong in thinking that a member of the Django  team (or most
Django users with access to a website) could zip the current version
and put it on the website in about 2 min.

Can someone tell me how to get in touch with the Satchmo team? They
provide satchmo as zips for those who have trouble with SVN -- but
thats useless when SVN is required to get Django!!


Frustrated
Karl


On Jul 22, 9:03 pm, "Ben Ford" <[EMAIL PROTECTED]> wrote:
> Can't you just use tortoise SVN or something similar...?
>
> On 23/07/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I was hoping to try Satchmo, the Django shopping cart.
>
> > Unfortunately, it uses 'DecimalField' which is only available in the
> > SVN versionof Django. I'm using Win2k, so to get the svn version I
> > must install SVN, which means that I have to install APR, which is
> > only available as source, which means I have to install m$ visual
> > studio (or something).
>
> > Is there anyone out there who has the svn version and can make it
> > available as a zip (tar, gz, etc)?
>
> > Failing that, when can I expect the next official release?
>
> > Thanks
> > Karl
>
> --
> Regards,
> Ben Ford
> [EMAIL PROTECTED]
> +628111880346


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

2007-07-22 Thread John Shaffer

The subversion windows binaries are available here:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100=8100=8100

You want the "svn-win32-1.4.4.zip" file.

TortoiseSVN might be easier to work with: http://tortoisesvn.tigris.org/

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



Re: Django db-api or raw SQL: getting top 10 blog posters

2007-07-22 Thread Patrick

On Sun, 22 Jul 2007 21:59:56 -0500, James Bennett wrote:

> On 7/22/07, Patrick <[EMAIL PROTECTED]> wrote:
>> What would be the most efficient way to get 10 top authors using Django
>> db-api? Or should I switch to raw SQL to handle this query?
> 
> The most efficient way would be to use raw SQL. There are a couple
> queries like that on djangosnippets.org to get top-rated snippets,
> most-bookmarked snippets, etc., and you might want to look at those as
> examples of how to do it:
> 
> http://cab.googlecode.com/svn/trunk/managers.py
> 
> The "most_bookmarked" method on the BookmarksManager, and the
> "top_rated" method on the RatingsManager both do this sort of query.

Thanks for the link, James!

I suspected SQL would be the winner here. I feel spoiled by Django ORM on 
a daily basis.


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



Installing with Cari.net dedicated server : HELP NEEDED!!

2007-07-22 Thread EternalTomorrow

I was wondering if anyone had any advice for installing Django on
Cari.net

I have SSH access to my server and have successfully intalled Django
using
the instructions, but wanting to know what i need to updated in my
httpd.conf file ... to work with my virtual hosted domains.

I have been following the tutorial here:
http://www.djangoproject.com/documentation/tutorial01/

It creates the files correctly, but when i type:
python manage.py runserver
it returns an error.

Any help would be GREATLY appreciated.  Thank 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: Satchmo

2007-07-22 Thread Ben Ford
Can't you just use tortoise SVN or something similar...?

On 23/07/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
> I was hoping to try Satchmo, the Django shopping cart.
>
> Unfortunately, it uses 'DecimalField' which is only available in the
> SVN versionof Django. I'm using Win2k, so to get the svn version I
> must install SVN, which means that I have to install APR, which is
> only available as source, which means I have to install m$ visual
> studio (or something).
>
> Is there anyone out there who has the svn version and can make it
> available as a zip (tar, gz, etc)?
>
> Failing that, when can I expect the next official release?
>
> Thanks
> Karl
>
>
> >
>


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

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



Satchmo

2007-07-22 Thread kbochert

I was hoping to try Satchmo, the Django shopping cart.

Unfortunately, it uses 'DecimalField' which is only available in the
SVN versionof Django. I'm using Win2k, so to get the svn version I
must install SVN, which means that I have to install APR, which is
only available as source, which means I have to install m$ visual
studio (or something).

Is there anyone out there who has the svn version and can make it
available as a zip (tar, gz, etc)?

Failing that, when can I expect the next official release?

Thanks
Karl


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



Re: How to display all my post data

2007-07-22 Thread Doug B

Assuming you just want to debug and are using the dev server you can
just do "print request.POST" and it will show up on the dev server
console.  The results aren't all that pretty, but usable.


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



latest django version

2007-07-22 Thread james_027

Hi,

I would like to use the latest django version. i am trying to use
tortoise SVN to get the latest version, but iam always getting this
error

Error * REPORT request failed on 'http://code.djangoproject.com/svn/
django/trunk/django' REPORT of 'http://code.djangoproject.com/svn/
django/trunk/django': 400 Bad  Request (http://code.djangoproject.com)

is there an easy to get the latest version of django in winxp?

Thanks
james


--~--~-~--~~~---~--~~
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 db-api or raw SQL: getting top 10 blog posters

2007-07-22 Thread James Bennett

On 7/22/07, Patrick <[EMAIL PROTECTED]> wrote:
> What would be the most efficient way to get 10 top authors using Django
> db-api? Or should I switch to raw SQL to handle this query?

The most efficient way would be to use raw SQL. There are a couple
queries like that on djangosnippets.org to get top-rated snippets,
most-bookmarked snippets, etc., and you might want to look at those as
examples of how to do it:

http://cab.googlecode.com/svn/trunk/managers.py

The "most_bookmarked" method on the BookmarksManager, and the
"top_rated" method on the RatingsManager both do this sort of query.

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

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



Django db-api or raw SQL: getting top 10 blog posters

2007-07-22 Thread Patrick

Hi, I have a small issue, which I'm not sure how to handle using Django 
db-api. This is part of my Blog model:

class Post(models.Model):
author = models.ForeignKey(User)
...

What would be the most efficient way to get 10 top authors using Django 
db-api? Or should I switch to raw SQL to handle this query?


--~--~-~--~~~---~--~~
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: Advertisement Management

2007-07-22 Thread Carl Karsten

Steve wrote:
> Does anybody know about a publicly available ad management program
> written using Django that I could easily drop into my project? If
> there isn't one, I could always write my own, but if there's one
> already started I'd rather not reinvent the wheel.
> 

The "drop into my project" concept is not easily implemented.

you should probably bring this up on
http://groups.google.com/group/django-hotclub

Carl K

> 
> > 
> 

--~--~-~--~~~---~--~~
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 display all my post data

2007-07-22 Thread Greg

I want to know what variables were 'POST' to my view.  I have the
following function

def addto(request):
if request.method == 'POST':
s = Style.objects.get(id=request['size_id'])
c = Choice.objects.get(id=request['prsdfdfice_id'])
assert False, request.method.items()  # what method do I use to 
see
all the POST elements
return HttpResponseRedirect("/rugs/cart/show")

What method do I use to see all the POST elements?

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



reverse pagination

2007-07-22 Thread Amit Upadhyay
Hi,

You are all aware of object pagination, search results, your photo on
flickr, stories on reddit, all have a next page/previous page paradigm.
Django makes it trivially easy to create such pages by providing object_list
generic view. There are some problems with the current implementation of
pagination that we see around, page no 0/1 is assigned to the latest objects
in the list. While in search result this makes little difference, in other
cases it has a few consequences.

In reddit for example, you are on the main page, you see 25 stories there,
you take 10 minutes to go through all of them, and click next. There is a
good chance that 3-5 stories on the first page would have moved to now
second page, and you will see them again. Not a good experience, but
acceptable. You spend next 3-4 hours working, and click back to see the
stories on the first page, you are taken to page 0, and there are good
chances you have missed 12 stories that moved from first page to second, as
your current page labelled second page became third. This is all quite
confusing if you think about it. [I am assuming from this discussion the
stories changing their relative rankings for simplicity, you can take
example of flickr group photos, they also change rapidly, and order does not
change there].

Another problem is, I am page 26 of this flickr group, and I see some fellow
has posted 8 nice photos to the group. I bookmark the page, and come back
later/email it to a friend, and by the time the page is visited again, 100s
of new photos has been added and the content of page 26 is now on page 29 or
so.

The last consequence of this is caching difficulty. If a group has 5
thousand pages worth 30 photos each, and one more photo gets added, either
the page number of the photos in each page will change for 5 thousand of
those pages. This will happen on each photo being added, and there for the
page can hardly be ever cached.

I propose a solution to this problem, I call it reverse pagination, and this
blog is currently using a patched django to demonstrate it. In reverse
pagination, page no 0/1 is assigned to the older page ever. When on reddit
home page, and click next, you will not go to page 2, you will jump to page
20566 or something like that. The content of page 20566 will never change,
only the content of latest page would be changing while new items are being
added. This means all pages other than the main page can be cached for the
rest of the life span of the website. And user will not face the other two
problems I listed above.

Only downside is on the main page/latest page, you will upto 19 items if you
paginate by 10 items per page.

Here is the patch for django.

http://code.djangoproject.com/ticket/4956
http://www.amitu.com/blog/2007/july/reverse-pagination/

Feedbacks appreciated!
-- 
Amit Upadhyay
http://www.amitu.com/blog/
+91-9820-295-512

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



Advertisement Management

2007-07-22 Thread Steve

Does anybody know about a publicly available ad management program
written using Django that I could easily drop into my project? If
there isn't one, I could always write my own, but if there's one
already started I'd rather not reinvent the wheel.


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



suggestion for sql error handling

2007-07-22 Thread Andrey Khavryuchenko

Hi!

Sometimes we all get sql errors from our code.  Nevertheless the traceback
kind of 
  File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 242, 
in count
cursor.execute("SELECT COUNT(*)" + sql, params)
  File "/usr/lib/python2.4/site-packages/django/db/backends/util.py", line 19, 
in execute
return self.cursor.execute(sql, params)
  File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", 
line 95, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: near "?": syntax error

isn't quite informative.

What I would like is to have sql clause and params in the exception I get.

The only thing that needs to be modified is *CursorWrapper.execute for each
backend.  Just like this for SQLiteCursorWrapper:

def execute(self, query, params=()):
query = self.convert_query(query, len(params))
try:
return Database.Cursor.execute(self, query, params)
except Exception, e:
e.query = query
e.params = params
raise

Any reason for *not* doing this?  
Would be such featurelet desireable?
If yes, I'll prepare a patch against the trunk.

-- 
Andrey V Khavryuchenko
Django NewGate -  http://www.kds.com.ua/djiggit/
Development - http://www.kds.com.ua 
Call akhavr1975 on www.gizmoproject.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: meta path_info, yet again

2007-07-22 Thread Graham Dumpleton

On Jul 19, 7:56 pm, Bram - Smartelectronix <[EMAIL PROTECTED]>
wrote:
> hello everone,
>
> a while back I mailed about a problem with path_info. Basically I'm
> having the same problem and the previous fix we discussed no longer works.
>
> I'm getting this behavior:
>
> http://www.com/a/=> path_info = "/a"
> http://www.com/a/b/=> path_info = "/b"
> http://www.com/a/b/c/=> path_info = "/b/c/"
>
> Apache 2.2.4mod_python3.3.1
>
> The previous time I had this error we were able to fix it by removing
> DocumentRoot from the apache config, but this time that's not really
> working.
>
> This is the virtual-host section with some small obfuscations:
>
> ( settings.py is in /opt/splice/pysplice/settings.py )
>
> 
>  ServerName xx.splicemusic.com
>  ServerAlias beard
>  AcceptPathInfo On
>  

And what happens when you don't unnecessarily put all this stuff in a
Location directive with '/' path. Ie., when it is directly in the
VirtualHost container?

>  AuthName "x"
>  AuthUserFile /x
>  AuthType Basic
>  require valid-user
>  Order allow,deny
>  Allow from All
>
>  PythonInputFilter tramline.core::inputfilter TRAMLINE_INPUT
>  PythonOutputFilter tramline.core::outputfilter TRAMLINE_OUTPUT
>  SetInputFilter TRAMLINE_INPUT
>  SetOutputFilter TRAMLINE_OUTPUT
>  PythonOption tramline_path /tmp/tramline/
>
>  SetHandler python-program
>  PythonHandler django.core.handlers.modpython
>  SetEnv DJANGO_SETTINGS_MODULE pysplice.settings
>  SetEnv LD_LIBRARY_PATH /usr/local/lib:/usr/local/pgsql/lib

Setting LD_LIBRARY_PATH like this is unlikely to do anything as SetEnv
variables are not pushed into the process environment.

>  PythonDebug On
>  PythonPath "['/opt/splice/'] + sys.path"
>  
>  
>  Satisfy Any
>  Allow from All
>  
>  
>  Satisfy Any
>  Allow from All
>  
>  
>  Satisfy Any
>  Allow from All
>  
>  Alias /media /opt/splice/pysplice/media
>   # for some things we need media served by apache!
>  SetHandler None
>  Satisfy Any
>  Allow from All
>  
> 
>
> I'm becoming pretty desperate for a fix as we're slowly but surely
> converting this server to our "live" server.
>
> thanks a lot,
>
>   - bram
>
> PS:http://www.splicemusic.comis moving to django. Yippy :-)


--~--~-~--~~~---~--~~
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: Flash Message template tag

2007-07-22 Thread rtconner

Are you talking about the Authentication message system found here?
http://www.djangoproject.com/documentation/authentication/#messages

One of the features of flash messages in other frameworks I've used ..
is that as soon as the message gets rendered it is deleted from the
session. It's been displayed .. there is no need for it anymore. That
is the concept that my Flash Message implementation revolved around.
Also I added the ability to render a template which displays a flash
message. This I really like because sometimes my flashes get crazy
with Javascript and animation and such. It's nice to be able to put
that all in a separate file. Lastly, sometimes I want to pass more
than one little string. So in my implementation I added the params
option which allows you to pass as much data of any type that you
want.

Here is my code.. if you don't want to search for it...
http://www.djangosnippets.org/snippets/319/

On Jul 16, 6:27 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 7/15/07, rtconner <[EMAIL PROTECTED]> wrote:
>
> > So one of the (very few) things I had not been happy with regarding
> > Django is its flash message handling. So I wrote something that would
> > make me happy. Its just a template tag add-on. Since so far Django has
> > been so great to me, I wanted to give a little bit back. So I don't
> > know where to post this but I thought I'd post a message letting you
> > all know about it.
>
> Out of curiosity, what were you disappointed with? The common
> complaint (and one that needs to be fixed) is that the current system
> only works with authenticated users, but if there are more problems
> I'd be interested to hear them.
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."


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



Re: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread rtconner

On Jul 22, 9:17 am, Derek Anderson <[EMAIL PROTECTED]> wrote:
> Tim Chase wrote:
> > Or, if you're away from the web, [...]
>
> because his secretary prints out and hand-delivers his emails?  ;-P

That was funny. :P


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



File upload using Flash

2007-07-22 Thread [EMAIL PROTECTED]

Hi all,

some time ago, probably on this list, someone posted a link to a
component in Flash with which you could do file upload from Django.
The component featured a progress bar.

Does anybody have a link to it?

Thanks,
Lorenzo


--~--~-~--~~~---~--~~
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: refreshing won't reload page

2007-07-22 Thread Florian Apolloner



On Jul 22, 10:01 pm, "Evan H. Carmi" <[EMAIL PROTECTED]>
wrote:
> Florian Apolloner wrote:
> > After editing your code, you will need to touch fcgi file
>
> Can you be more explicit. I know the location of a lighttpd.sh init
> file. But I am not sure if there is a fcgi file somewhere?
>
> Evan

Sry, mixxed something up :)
Kill the django server (pid should be in your pid file) and restart
the django server.
Use something like this:

#!/bin/bash

# Replace these three settings.
PROJDIR="/home/user/myproject"
PIDFILE="$PROJDIR/mysite.pid"
SOCKET="$PROJDIR/mysite.sock"

cd $PROJDIR
if [ -f $PIDFILE ]; then
kill `cat -- $PIDFILE`
rm -f -- $PIDFILE
fi

exec /usr/bin/env - \
  PYTHONPATH="../python:.." \
  ./manage.py runfcgi socket=$SOCKET pidfile=$PIDFILE

This will kill your django server and restart it...


--~--~-~--~~~---~--~~
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: refreshing won't reload page

2007-07-22 Thread Evan H. Carmi

Florian Apolloner wrote:
> After editing your code, you will need to touch fcgi file
Can you be more explicit. I know the location of a lighttpd.sh init
file. But I am not sure if there is a fcgi file somewhere?

Evan

--~--~-~--~~~---~--~~
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: i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-22 Thread Ramiro Morales

On 7/22/07, koenb <[EMAIL PROTECTED]> wrote:
>
> Check ticket 4899. It is the newline thing. The extra chr(13) under
> Windows breaks the fix from the ticket.
>

Oops. Yes I've just found the same, it seems I broke it under win32 with
the mod using itertools.dropwhile().

Find attached to that ticket a patch (ticket-4899.2.diff) that works
under Linux (i.e. no changes
in behaviour) and Windows (generates a non-empty django.po file)
extracting literals when working with the Django source code
($ bin/make-messages.py ...)

Please test with your applications and report back.

Regards,

-- 
 Ramiro Morales

--~--~-~--~~~---~--~~
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: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Derek Anderson

Tim Chase wrote:
> 
> This is also why I prefer mercurial (hg) as my version-control.
> Svn is nice if you're connected to your central repository all
> the time, but I also like to be able to use my version-control
> while I'm disconnected...yet still be able to sync up to a main
> repo.  I tried git and svk, but their interfaces were too
> unwieldy and the crowd was surly, however hg's interface is
> fairly close to svn's so it was easy to learn and its
> documentation has been good too.  Bzr holds promise, but it's
> still a bit young, a bit slow, has some warts, and the
> documentation is scattered across sites and versions which makes
> it hard to reference.  I'll be interested to see where it is in a
> year or two.
> 

have you tried monotone?


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



Startup help !!bug!!

2007-07-22 Thread kbochert

Seems unlikely but heres some detail on the problem reported in
'Startup help'

An exception was being raised in loading.py:get_app(app_label, emptyOK
= False)

This function was being called twice, the second time with an empty
app_label and emptyOK False.

It seems that management.py:execute_from_command_line() is seeing
an args array of ['sql', 'polls', '', '' ]

The cmd line  "manage.py sql polls"  results in
args[]  ["sql", "polls", "", ""]
and
The cmd line  "manage.py sql"  results in
args[]  ["sql", "", "", ""]
and
The cmd line  "manage.py sql a b c d"  results in
args[]  ["sql", "a", "b", "c"]

Doesn't make too much sense.

Now, is the bug in the creation of the args[] array from the command
line, or is there missing logic in getapp(), or its call?

Guidance needed
Karl


--~--~-~--~~~---~--~~
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: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Tim Chase

>> Or, if you're away from the web, [...]
> 
> because his secretary prints out and hand-delivers his emails?  ;-P

Or, as I frequently do, download my email before going offline
(whether on a plane, on a bus, at a site without network access,
etc).  Reading through the email offline, it's nice to have an
answer to my question without going online, especially if it's in
code known to be on the machine.  Fortunately, Django's code is
fairly clean (and the occasional unclean parts are usually
labeled with comments like "this is hackish, and needs to be
fixed"), fairly well documented, and easy to follow.


This is also why I prefer mercurial (hg) as my version-control.
Svn is nice if you're connected to your central repository all
the time, but I also like to be able to use my version-control
while I'm disconnected...yet still be able to sync up to a main
repo.  I tried git and svk, but their interfaces were too
unwieldy and the crowd was surly, however hg's interface is
fairly close to svn's so it was easy to learn and its
documentation has been good too.  Bzr holds promise, but it's
still a bit young, a bit slow, has some warts, and the
documentation is scattered across sites and versions which makes
it hard to reference.  I'll be interested to see where it is in a
year or two.


-tim (the too-frequently offline)








--~--~-~--~~~---~--~~
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: 4 arguments (5 given), in part 4 of tutorial

2007-07-22 Thread James McManus
Thanks!

On 7/22/07, Collin Grady <[EMAIL PROTECTED]> wrote:
>
>
> If you're using 0.96, you must follow the 0.96 tutorial instead, at
> http://djangoproject.com/documentation/0.96/tutorial04/
>
>
> >
>

--~--~-~--~~~---~--~~
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: i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-22 Thread koenb

Check ticket 4899. It is the newline thing. The extra chr(13) under
Windows breaks the fix from the ticket.

Koen


--~--~-~--~~~---~--~~
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: 4 arguments (5 given), in part 4 of tutorial

2007-07-22 Thread Collin Grady

If you're using 0.96, you must follow the 0.96 tutorial instead, at
http://djangoproject.com/documentation/0.96/tutorial04/


--~--~-~--~~~---~--~~
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: edit_inline and empty models

2007-07-22 Thread Collin Grady

Don't set a FileField or ImageField as core=True, it won't work as
expected.

Maybe make the alt text core=True instead, or require a name for the
model?


--~--~-~--~~~---~--~~
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: i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-22 Thread Carl Karsten

olivier wrote:
> Hi Carl,
> 
> Actually, it seems like the header stripping on line 122 of make-
> message.py is too aggressive and removes all lines of the output of
> xgettext.
> 
> I replaced :
> 
> msgs = '\n'.join(dropwhile(len,
> msgs.split('\n')))
> 
> by:
> 
> lines = msgs.split("\n")
> msg, write = [], False
> for line in lines:
> if not line.strip():
> write = True
> if write:
> msg.append(line)
> msgs = "\n".join(msg)
> 
> 
> (space formatting will probably get messed up by google group)
> 
> and everything goes fine.
> I'll fill a ticket when I can.
> 
> Olivier
> 
> 

How is it any different?I tried various values of X in the code below, and 
they all came up
Equal: True

Guessing it is either a windows/unix newline thing, or unicode.

Carl K


from itertools import dropwhile

def f1(msgs):
 msgs = '\n'.join(dropwhile(len, msgs.split('\n')))
 return msgs

def f2(msgs):
 lines = msgs.split("\n")
 msg, write = [], False
 for line in lines:
 if not line.strip():
 write = True
 if write:
 msg.append(line)
 msgs = "\n".join(msg)
 return msgs

def dump(m):
  print len(m), [ hex(ord(x)) for x in m ]

# test parameter
x='\n \na\nbc\n\n\nd\n\ne\n'
dump(x)

y1=f1(x)
y2=f2(x)

# examine results
dump(y1)
dump(y2)

print "Equal: %s" % (y1==y2)







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



Startup help

2007-07-22 Thread kbochert

Just starting.
I have followed the polls tutorial up to where it suggests
'python manage.py sql polls'
To see the sql generated for the polls app.
I get an error message that ends with:
django.core.exceptions.ImproperlyConfigured:
 App with label   could not be found

If I try 'python manage.py sql  foo'  I get the expected:
  App with label foo  could not be found

If I misspell the entry in INSTALLED_APPS, I get the expected
'ImportError: No module name xpolls'

'python manage.py validate polls'
reports 0 errors.

help appreciated
Karl


--~--~-~--~~~---~--~~
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: foreign key on database not created with models referencing from other application

2007-07-22 Thread james_027

Thanks russ I greatly appreciate it!, I'll just wait for the fix.

cheers,
james

On Jul 22, 11:01 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 7/22/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
> > the profile table's dell has constraint clause in it, while the
> > cellusage table has no constraint clause only key clause is only tells
> > that it is index.
>
> That appears to be the effect of ticket #2720 [1] that I mentioned
> earlier. The foreign key column _is_ getting created - it's the
> _constraint_ that isn't created correctly, depending on the order of
> creation. Even more annoying - they syntax to create the constraint
> actually _is_ generated - but MySQL ignores it.
>
> There is a proposed patch to fix this problem attached to the ticket.
> I haven't looked at the patch, so I have no idea how good it is, or if
> it solves the problem.
>
> This is a bug, and one of these days one of the core developers will
> hopefully get around to looking at it. However, in practice, the
> existence of this bug won't make much difference to you, especially as
> you are just starting out with Django. It won't affect the views
> Django produces, or the queries you can execute. Django's ORM
> framework will provide some protection from putting invalid data into
> the database - having the constraint in place acts as extra support to
> make sure nothing goes wrong.
>
> If you need row-referential integrity _now_, I can only suggest using
> a different database backend (MySQL has a few other annoying issues
> that can pose difficulties).
>
> For future reference: It would have been possible to resolve this
> issue in 1 or 2 emails if you had provided the SQL dump in the first
> place. It sounds like you had this SQL dump from the very beginning,
> but it took 6 emails for you to share this information with me.
> Repeatedly saying "X doesn't work" doesn't help me (or anyone else)
> debug a problem. On the other hand, stack traces, precise
> instructions, or other debug printouts are very helpful. Help us to
> help you, and everyone can go home early :-)
>
> [1]http://code.djangoproject.com/ticket/2720
>
> 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: refreshing won't reload page

2007-07-22 Thread Florian Apolloner

After editing your code, you will need to touch fcgi file, and then
lighty will restart python and reimport everything...

On 21 Jul., 22:39, "Evan H. Carmi" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I am running Django with lighttpd. I will make a change in the code and
> try and refresh the page through firefox. The page will reload but error
> page shows me the old code. I can refresh it 20-30 times before it will
> reload the new code. It seems as if something is being cached. I don't
> think that it is my browser because refresh should not load from the
> cache. Does lighttpd or django cache things automatically? Can I turn
> this off during development?
>
> Evan


--~--~-~--~~~---~--~~
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: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Derek Anderson

Tim Chase wrote:
> Or, if you're away from the web, [...]

because his secretary prints out and hand-delivers his emails?  ;-P



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



prepare() on oldforms.CheckboxSelectMultipleField not working properly?

2007-07-22 Thread Daniel Kvasnicka jr.

Hi people,
I've built a user registration form based on the example from Django
Book (http://www.djangobook.com/en/beta/chapter12/ -- Handling
Registration). I extended the form with several additional fields, two
of them being CheckboxSelectMultipleFields.

The problem is that after calling:

errors = form.get_validation_errors(data)

which in effect calls prepare() on every field, my data from those
selects are trimmed and contain only the last checked item. So when I
have the following choices from which I check the last two

choices = (
('0', 'foo'),
('1', 'bar'),
('2', 'hello'),
)

only 'hello' gets saved to the DB (MySQL 5.0.38).
Is there any solution...other than trying to rewrite everything with
newforms? :)

Thanks,
Dan


--~--~-~--~~~---~--~~
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: foreign key on database not created with models referencing from other application

2007-07-22 Thread Russell Keith-Magee

On 7/22/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> the profile table's dell has constraint clause in it, while the
> cellusage table has no constraint clause only key clause is only tells
> that it is index.

That appears to be the effect of ticket #2720 [1] that I mentioned
earlier. The foreign key column _is_ getting created - it's the
_constraint_ that isn't created correctly, depending on the order of
creation. Even more annoying - they syntax to create the constraint
actually _is_ generated - but MySQL ignores it.

There is a proposed patch to fix this problem attached to the ticket.
I haven't looked at the patch, so I have no idea how good it is, or if
it solves the problem.

This is a bug, and one of these days one of the core developers will
hopefully get around to looking at it. However, in practice, the
existence of this bug won't make much difference to you, especially as
you are just starting out with Django. It won't affect the views
Django produces, or the queries you can execute. Django's ORM
framework will provide some protection from putting invalid data into
the database - having the constraint in place acts as extra support to
make sure nothing goes wrong.

If you need row-referential integrity _now_, I can only suggest using
a different database backend (MySQL has a few other annoying issues
that can pose difficulties).

For future reference: It would have been possible to resolve this
issue in 1 or 2 emails if you had provided the SQL dump in the first
place. It sounds like you had this SQL dump from the very beginning,
but it took 6 emails for you to share this information with me.
Repeatedly saying "X doesn't work" doesn't help me (or anyone else)
debug a problem. On the other hand, stack traces, precise
instructions, or other debug printouts are very helpful. Help us to
help you, and everyone can go home early :-)

[1] http://code.djangoproject.com/ticket/2720

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



4 arguments (5 given), in part 4 of tutorial

2007-07-22 Thread James McManus
I am doing the Django tutorial. I have got everything to work up to the
point in Part 4, where I replace:

from django.conf.urls.defaults import *
urlpatterns = patterns('mysite.polls.views',
(r'^$', 'index'),
(r'^(?P\d+)/$', 'detail'),
(r'^(?P\d+)/results/$', 'results'),
(r'^(?P\d+)/vote/$', 'vote'),
)

in polls/url.py, with:

from django.conf.urls.defaults import *
from mysite.polls.models import Poll
info_dict = {
'queryset': Poll.objects.all(),
}
urlpatterns = patterns('',
(r'^$', 'django.views.generic.list_detail.object_list', info_dict),
(r'^(?P\d+)/$', '
django.views.generic.list_detail.object_detail', info_dict),
(r'^(?P\d+)/results/$', '
django.views.generic.list_detail.object_detail', dict(info_dict,
template_name='polls/results.html'), 'poll_results'),
(r'^(?P\d+)/vote/$', 'mysite.polls.views.vote'),)

when I get the following error message:

TypeError at /polls/
__init__() takes at most 4 arguments (5 given)
Request Method: GET
Request URL: http://localhost:8080/polls/
Exception Type: TypeError
Exception Value: __init__() takes at most 4 arguments (5 given)
Exception Location:
/usr/lib/python2.5/site-packages/django/conf/urls/defaults.py in patterns,
line 18

Any suggestions?

Thanks
Jim

--~--~-~--~~~---~--~~
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: Null=True not respected by admin?

2007-07-22 Thread Russell Keith-Magee

On 7/22/07, sagi s <[EMAIL PROTECTED]> wrote:
>
> I created a table where some of the fields have null=True since it's
> okay for them to be empty.
> Looking at the schema in mysql this option was correctly translated
> into the DB's schema, however when I try to add an entry via the admin
> interface I get errors on those fields saying that 'This field is
> required'.

I'm guessing that although you have null=True, you don't have
blank=True. This means that although the database will allow null
values, the admin view (and other form views) won't accept empty
values.

If you set blank=True on your fields, you should find that you can
leave them empty.

Yours,
Russ Magee %-)

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



Re: How to communicate with Authorize.net?

2007-07-22 Thread Chris Moffitt
The url for satchmo is - http://www.satchmoproject.com

The module that sends data to authorize.net is here-
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet/processor.py

-Chris

--~--~-~--~~~---~--~~
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: Script works in django and in manage.py but doesn't anywhere else

2007-07-22 Thread Kai Kuehne

Hi Russel,

On 7/22/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> You need to set up your PYTHONPATH. Your project should be in your
> PYTHONPATH, so that Django can import your project, and the apps in
> that project. Your script has an explicit workaround for this problem
> with settings.py - but Django needs to be able to access _all_ of your
> project, not just settings.py

Sounds reasonable, thank 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: i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-22 Thread olivier

Hi Carl,

Actually, it seems like the header stripping on line 122 of make-
message.py is too aggressive and removes all lines of the output of
xgettext.

I replaced :

msgs = '\n'.join(dropwhile(len,
msgs.split('\n')))

by:

lines = msgs.split("\n")
msg, write = [], False
for line in lines:
if not line.strip():
write = True
if write:
msg.append(line)
msgs = "\n".join(msg)


(space formatting will probably get messed up by google group)

and everything goes fine.
I'll fill a ticket when I can.

Olivier



On 21 juil, 17:43, Carl Karsten <[EMAIL PROTECTED]> wrote:
> olivier wrote:
> > Hi group,
>
> > I'm running Windows XP, django from the trunk, pyhon 2.5.1.
> > As recommended here [1], I run gettext natively (not Cygwin), using
> > gettext for win32 [2].
> > My templates, my python source files and my settings are all made by
> > the book.
>
> > Nevertheless, make_message doesn't find any string to translate,
> > without raising any error or warning.
>
> > Has someone any clue about what's going on ?
> > Are there any issues with i18n on win32 ?
>
> run the unit tests for win and sqlite as described:
>
> http://code.djangoproject.com/wiki/TestingDjango
>
> (let me how that page could be improved.)
>
> I am guessing you will get 3 errors, which has something to do with setup.py.
>
> Carl K


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



Null=True not respected by admin?

2007-07-22 Thread sagi s

I created a table where some of the fields have null=True since it's
okay for them to be empty.
Looking at the schema in mysql this option was correctly translated
into the DB's schema, however when I try to add an entry via the admin
interface I get errors on those fields saying that 'This field is
required'.

Any ideas?


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



Re: How to communicate with Authorize.net?

2007-07-22 Thread Christian Hoeppner
Greg escribió:
> Is there any documentation on how to send form data to a Authorize.net
> from within a Django view?
> 
> 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
> -~--~~~~--~~--~--~---
> 

You might want to google for "satchmo project". It's a django based
ecommerce solution. I can't seem to remember the url right now :)



signature.asc
Description: OpenPGP digital signature


Re: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Tim Chase

>> Who may help me to design a software? I want an account number, the
>> password producer (because I do not have means to think of quite good
>> account number password)
> 
> If I understand you correctly, I think you're looking for a random  
> password generator. Just search Google for "random password generator".
> 
> Here's a Python example, if that's what you're looking for:
> 
> 

Or, if you're away from the web, you can use the same code that
already exists in Django's User.objects.make_random_password()
method:

def make_random_password(self, length=10,
allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'):
"Generates a random password with the given length and
given allowed_chars"
# Note that default value of allowed_chars does not have
"I" or letters
# that look like it -- just to avoid confusion.
from random import choice
return ''.join([choice(allowed_chars) for i in
range(length)])


Incidentally, other than the letter "Q", the uppercase portion of
the default allowed_chars is the same set of characters allowed
in a VIN (Vehicle Identification Number, found in several places
such as the dash and door-frame on cars at least in the US) for
exactly the same reason...1/i/l look alike as do 0/O/Q

useless trivia for today :)

-tim





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



What AT, Earthlink, and AOL don't want you to know.

2007-07-22 Thread wpjam

Unlimited T1 Mobile Wireless Internet for $19.95 a month!

Everyone will want this!

Not WiFi... Not WiMAX...
   ...Meet the next Generation of T1 Wireless Broadband
   ...Unlimited T1 Mobile Wireless Internet
As compared to any existing mobile wireless Internet or wireless
broadband services, this new technology has the following features:

Easiest to set up - The hardware is no bigger than a Jump Drive,
simply plug it into any USB port on your computer or notebook, and you
will have up to 5 IP addresses with the ability to broadcast the
Internet connection signal via repeater towers from one central NOC
(Network Operations Center).

Requires far fewer towers - ability to broadcast signal to distances
of 30-miles from tower without degradation.

Best Coverage - due to ability to transmit signal through buildings,
forests, and up to 20 feet underground.

No Bottleneck - maintains at least a T1 connection both UP and DOWN
without degradation regardless of the amount of simultaneous users
connecting. And no Fair Access Policy. (FAP)

Most Secure - signal is secured with more than 256-bit SSL encryption
so no firewall hardware is required.

Most for the money - T1 connection is projected to be only $19.95 per
month. Business class up to T3 service will also be available.

Telephony - First class VOIP telephone service will also be offered
for a fraction of the cost of competitors. Current projection is $9.95
per month.

Mobile - Oh yes, and did I say MOBILE!  No dish required here. Imagine
a mobile T1 connection.

Imagine Having An Always On Wireless T1 to T3 Internet Connection...

In your home or office...

While Walking Down A Street... While Driving Down A Road...
While Camping, Golfing, Hiking Or Crossing the Country In A
Plane...

FACT:

"There were 565.7 million Internet users worldwide at the end of 2006,
and there will be 633.6 million at the end of 2007. This amounts to
2.2 new internet users every second of the day worldwide." -
eMarketer, March 2007


FACT:

"In the Internet age, the GREATEST risk is being left behind." -
Newsweek, December, 2006



This amazing technology is FR33 to market, the amount of money to be
made is outrageous, thousands have all ready signed up.

For more information go to http://www.zipstar.2freedom.com

For FAQ go to http://www.itsyoursupport.com/cgi/kb.cgi?category=7=en


--~--~-~--~~~---~--~~
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: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Tyson Tate

On Jul 22, 2007, at 12:15 AM, Alvin wrote:

> Who may help me to design a software? I want an account number, the
> password producer (because I do not have means to think of quite good
> account number password)

If I understand you correctly, I think you're looking for a random  
password generator. Just search Google for "random password generator".

Here's a Python example, if that's what you're looking for:



Regards,
Tyson

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



Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Alvin

Who may help me to design a software? I want an account number, the
password producer (because I do not have means to think of quite good
account number password)


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



Google's Disappointing Quarter

2007-07-22 Thread suntzu

The search giant's second-quarter earnings lagged analysts'
predictions. One reason: the tight labor market for tech workers

Google made no apologies on July 19 for missing analysts' earnings
expectations in the second quarter. Simply put, Google executives said
they overspent on luring quality people in the period-though they will
keep closer tabs on staff spending in the future. "The kind of people
that we brought in are so good that we are happy we did this," Google
Chief Executive Eric Schmidt said on a conference call discussing the
results.

In all, the number of full-time Google (GOOG) employees jumped by
1,548, to 13,786 at the end of June. That's partly why operating
expenses, other than the cost of revenue, jumped 85%, to $1.21 billion
in the period. That outpaced a 63% rise in net sales and helps explain
why profit rose only 28%, to $925.1 million. On a per-share basis,
earnings excluding certain expenses were $3.56, falling short of some
analysts' forecasts.

Taking Its Talent Search Global
This is only the second time in three years as a publicly traded
company that Google earnings failed to meet analysts' predictions.
Shareholders who have come to expect Google not only to meet, but
often significantly exceed, expectations responded in kind. The stock
dropped 7% in extended trading.

Google is stepping up spending in research and head count as it seeks
new areas of expansion amid a slowdown in overall sales growth. It's
also coming to terms with the high cost of luring tech talent in a
tight labor market. According to a recent report by the American
Electronics Assn., an industry trade group, fewer than 3% of computer
systems designers and 2% of engineers are out of work (see
BusinessWeek.com, 4/24/07, "The Myth of High-Tech Outsourcing"). Tech
salaries are expected to increase 3.8% this year, according to
ComputerEconomics.com.

As part of its hunt for the right talent, Google also is looking
overseas. In June, the company appealed to Congress to let more high-
skilled foreign workers into the U.S. under a temporary work visa
program known as H-1B. According to Google's testimony, about 8% of
the company's employees are in the U.S. thanks to the program. Without
more H-1B visas, Google maintains that it and other tech companies
will have trouble growing in the U.S. Critics of plans to increase the
quota of visas argue that the tech companies use them to hire cheaper
foreign employees at the expense of their American counterparts (see
BusinessWeek.com, 7/7/07, "Immigration: Google Makes Its Case").

Successful Ads and Widgets
Google executives told analysts that employee salaries and bonuses
would stabilize in coming months. However, they did not provide any
financial guidance as to how salaries would affect operating expenses
in the next quarter. Google's policy is to not give guidance.

During the call, Google executives highlighted ongoing success in the
company's mainstay: ads linked to Web search results. Revenue from
Google's owned and operated sites increased 74% from last year, to
$2.49 billion. Sales from partner sites grew 36%, to $1.35 billion.
"All told, I am very excited about the progress we are making in
search and ads," said Sergey Brin, Google's co-founder and president
of technology. Brin also touted the success of Google gadgets-small
applications, also known as widgets, that enable users to see
information from around the Web without leaving their Google home
page.

Despite investors' disappointment with Google's results in the second
quarter, some analysts are keeping an upbeat outlook. "It is hard to
look at 58% revenue growth and have conviction that they are hitting a
wall right now," says Derek Brown, an analyst with Cantor Fitzgerald,
who has a buy rating on the stock. If those more than 1,500 new
employees prove as smart an investment as Schmidt says they are,
Google won't be hitting that wall anytime soon.

Holahan is a writer for BusinessWeek.com in New York.

a href="http://www.tkqlhce.com/click-1993011-9487708; target="_top">3
Months FREE Web Hosting
http://www.ftjcfx.com/image-1993011-9487708; width="1"
height="1" border="0"/>

http://www.jdoqocy.com/click-1993011-1099458;
target="_top">Low cost domain registration, plus hosting and building
solutions. Dotster does it all!
http://www.awltovhc.com/image-1993011-1099458; width="1"
height="1" border="0"/>

http://www.jdoqocy.com/click-1993011-10400617;
target="_top">iPower Web Hosting
http://www.lduhtrp.net/image-1993011-10400617; width="1"
height="1" border="0"/>

http://www.tkqlhce.com/click-1993011-10393535;
target="_top">Top Rated Web Hosting - $3.95/mo
http://www.ftjcfx.com/image-1993011-10393535; width="1"
height="1" border="0"/>

http://www.tkqlhce.com/click-1993011-10361041;
target="_top">Hosted by StartLogic
http://www.tqlkg.com/image-1993011-10361041; width="1"
height="1" border="0"/>

http://www.dpbolvw.net/click-1993011-10398445;
target="_top">Value-priced Web Hosting on a rock-solid platform

Re: Using the enumerate() function in a loop?

2007-07-22 Thread Clarence Huang
On 7/22/07, Clarence Huang <[EMAIL PROTECTED]> wrote:
>
>  I am the Django users member? You have not told me? If is, may tell me
> your here some people to meet the formula design? If some can help me to
> design an account number, the password producer? (Because I each time all do
> not have means to find out a quite good account number, password)As
> soon  as  possible
> 
>

--~--~-~--~~~---~--~~
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 the enumerate() function in a loop?

2007-07-22 Thread Clarence Huang
 I am the Django users member? You have not told me? If is, may tell me your
here some people to meet the formula design? If some can help me to design
an account number, the password producer? (Because I each time all do not
have means to find out a quite good account number, password)


--~--~-~--~~~---~--~~
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 the enumerate() function in a loop?

2007-07-22 Thread Stefan Matthias Aust

Greg,

2007/7/22, Greg <[EMAIL PROTECTED]>:

> Does anybody know how I can get the list position so I can put it in
> the url?

Search for "forloop.counter0" on
http://www.djangoproject.com/documentation/templates/#for

-- 
Stefan Matthias Aust

--~--~-~--~~~---~--~~
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: Which database, and why?

2007-07-22 Thread Nicola Larosa

Tim Chase wrote:
> I think it's this historical baggage of non-ANSI-compliance for MySQL
> that dings it to a lower status than PostgreSQL.  As the newer, more 
> compliant versions of MySQL begin to be more available on hosting 
> services, this gap will close.

MySQL developers made many wrong choices, for the wrong reasons, all along
its development. Even if they now promise to have the right features (and
they still don't), I don't trust them with my data.

It's little more than a shiny, broken toy.


-- 
Nicola Larosa - http://www.tekNico.net/

You do have an automated test suite, right? And it does run periodically
(daily or upon every check-in) in a continuous integration system, right?
And you have everything set up so that you're notified by email or RSS
feeds when something fails, right? And you fix failures quickly so that
everything turns back to green, because you know that too much red, too
often, leads to broken windows and bit rot, right?
 -- Grig Gheorghiu, February 2007



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