Re: Ajax support, there is no need for reinventing the wheel

2006-06-04 Thread James Bennett

On 6/4/06, Scott Anderson <[EMAIL PROTECTED]> wrote:
> You have to make sure to trap both successes and failures in the
> Javascript code -- I don't know how mochikit does that, but with
> prototype you need to specify an onFailure hook to get errors.

And with Dojo the 'error' parameter you pass to dojo.io.bind() should
be a callback for error handling. Or if you just want one callback for
all responses, you can have your 'load' callback look at the
parameters passed to it to determine whether there was an error.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

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



Re: Getting Django Magic-Removal on Webfaction

2006-06-04 Thread Remi

Hi,

> I just opened a Webfaction account so that I can learn Django in a real
> web environment instead of running it locally on my pc.
>
> The version they install is not magic-removal. Does anyone know how to
> install this version on a Webfaction account? I had subversion
> installed.
>
> I'm not very well versed in much of this, so as much detail that can be
> provided would be appreciated. Thank you.

At WebFaction we install the Django python module in
$HOME/lib/python2.4 and the Django scripts in $HOME/bin, so you're free
to replace them by whatever version you need.

Also, your own Apache instance with mod_python is in
$HOME/webapps//apache2/...


Regards,

Remi.

http://www.webfaction.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
-~--~~~~--~~--~--~---



sorry for the stupid noob question - kwarg?

2006-06-04 Thread David Robinson

Really, I've tried looking this one up myself (you wouldn't believe how 
many questions I *haven't* had to ask... (thanks for well-written docs 
everyone)). It seems almost obvious, but I am proving to be just dense 
enough to not get what is this "kwarg".

Dave

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



Re: Ajax support, there is no need for reinventing the wheel

2006-06-04 Thread Scott Anderson

This is endemic with all asynchronous Javascript work, no matter what
the back-end.

You have to make sure to trap both successes and failures in the
Javascript code -- I don't know how mochikit does that, but with
prototype you need to specify an onFailure hook to get errors.

Regards,
-scott



On Sat, 2006-06-03 at 11:23 -0400, Jay Parlar wrote:
> I was playing around with mochikit and Django yesterday, and was
> getting really frustrated by one particular aspect:
> 
> In any view code that was only responding to async requests, if I had
> a typo or error in my Python code (anything that would raise an
> exception), I wasn't seeing any exceptions *anywhere*. Usually of
> course, Django sends the exception information back to the client, to
> be displayed on screen. Doesn't work so well when some JS is expecting
> the response.
> 
> This was using the dev server and DEBUG=True. Maybe I missed something
> in terms of how to get useful output, but it'd be nice if there were a
> decorator or something that could tell Django that the client
> expecting a response is *not* going to be able to display that
> response, and the exception info should be displayed on the terminal.
> 
> Just my two cents,
> Jay 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
-~--~~~~--~~--~--~---



Re: Ajax support, there is no need for reinventing the wheel

2006-06-04 Thread Scott Anderson

I'm sorry, but I can't agree. I've used DWR as well, and the "server
generates your Javascript to include" model really creates a lot of
problems, both with versioning and performance.

Simple is best. I've had the best luck with straightforward use of the
prototype.js Ajax class.

Regards,
-scott


On Sat, 2006-06-03 at 12:05 +0100, Derek Hoy wrote:
> I used DWR for a java project I finished last year - 
> http://getahead.ltd.uk/dwr/
> 
> It really simplifies the client-server ajax stuff.  It lets you fetch
> an object from the server and have it available in the client as a js
> object, with properties and methods all available in your client code.
> DWR serverside code generates the js files for download to the client
> that handles all the marshalling stuff, so you don't see any of it.
> 
> It would make a great model for ajax support in Django. You call a DWR
> js function, giving it a callback to your js function. This function
> gets an object as a param, you use the object to fill bits of your
> page etc.
> 


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



Re: Not possible activate the admin site

2006-06-04 Thread GinTon

Solved after of reinstall Python and Django SVN.

I'm supposed that there will be a missing file.


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



Re: installing docutils on Dreamhost

2006-06-04 Thread Sean R.

Hello - I'll be releasing a full howto on django and Dreamhost (yeah
another one) later this week. It will show how to handle docutils and
all those other packages with much less work. I'll post here whenever
I've cleaned it up.

--
Sean R.


RĂ©mi wrote:
> On 2 Jun 2006, at 18:31, [EMAIL PROTECTED] wrote:
>
> > I did not edit the .bash_profile like you.  Instead I ran "setup.py
> > install --prefix $HOME" which created the bin and lib dir right in
> > $HOME.  Then in my django.fcgi file I added
> > $HOME/lib/python2.3/site-packages/ to the PYTHONPATH like this.
> > sys.path += ['/home/MYUSER/lib/python2.3/site-packages']
> >
> > That has worked for me.  I hope it works for you.  Good luck.
>
> At last it works! Thanks a lot!!!
> Thank you Waylan for the explanation too!
> 
> 
> --Remi


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



Calendar and time widget in admin

2006-06-04 Thread Chris Moffitt

I've noticed that if there is a date or time field on an admin form that 
comes after a collapsed field, then the widget does not show up in the 
right place.  If I expand the collapsed fields then it looks fine but if 
they are collapsed then it shows up in the same place which is no longer 
the right place.

Anyway, it's tough to explain but is fairly simple to replicate.  Is 
anyone else seeing the same thing?

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



Re: Initial data for sites framework?

2006-06-04 Thread Jorge Gajon

Hi,
This is not exactly what you are asking for, but you can modify your
own local copy of Django. The file to modify is:

trunk/django/contrib/sites/management.py

Change the line that looks like this:
s = Site(domain="example.com", name="example.com")

Cheers,
Jorge


On 6/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> HI.
>
> I don't use the sites framework. Still, it looks as is I need to
> install and initialize it in order to get the feeds (syndication)
> framework.
>
> Is there some place I can put the initial values for the sites
> framework, so the standard site is created automatically in the
> database and I don't need to log into the admin and edit my site each
> time I generate the database again during development)? It always
> defaults to "example.com" after a syncdb.
>
> Daniel
>
>
> >
>

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



Getting Django Magic-Removal on Webfaction

2006-06-04 Thread keukaman

I just opened a Webfaction account so that I can learn Django in a real
web environment instead of running it locally on my pc.

The version they install is not magic-removal. Does anyone know how to
install this version on a Webfaction account? I had subversion
installed.

I'm not very well versed in much of this, so as much detail that can be
provided would be 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
-~--~~~~--~~--~--~---



Re: Django Quick Start with Schema Evolution Support

2006-06-04 Thread Tom Tobin

On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
>
> I've create a simple Schema Evolution Support for Django and I am
> working to created a Django Quickstart, which will allow even
> unexperienced users to see a django site running within their browsers.

Ilias Lazaridis is a known mailing list and Usenet troll, and is
therefore being ignored by this community.  Any statements by Ilias
Lazaridis should be considered incorrect, inaccurate, or otherwise
tainted with the intention of disrupting conversation on django-users
and/or django-developers.

Reference:
- http://en.wikipedia.org/wiki/Internet_troll
- http://en.wikipedia.org/wiki/Ilias_Lazaridis
- http://www.encyclopediadramatica.com/index.php/Ilias
- http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/138966

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



Re: Not possible activate the admin site

2006-06-04 Thread Jay Parlar

Can you copy/paste the contents of your urls.py file?

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



Re: Django Quick Start with Schema Evolution Support

2006-06-04 Thread Steven Armstrong

On 06/04/06 18:11, Ilias Lazaridis wrote:
> Jay Parlar wrote:
>> Ilias:
>> 
>> I thought you would stop bothering Django people after it was revealed
>> on Django-dev that you're a known Internet troll:
> [...]
> 
> This starts to become ridiculous.
> 

What do you expect?

To be honest I actually think some of the things on the page [1] you 
posted may be usable.

But after posting around like a moron to various developers list and 
wasting everybody's time - how can you expect that anybody would take 
you or anything that comes from you seriously?

[1] http://case.lazaridis.com/multi/wiki/DjangoProductEvaluation


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



Re: Django Quick Start with Schema Evolution Support

2006-06-04 Thread Jay Parlar

On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
> This starts to become ridiculous.

That's your own fault. You've dug a pretty deep grave for yourself,
with your behaviour across various newgroups. You can't blame people
for wanting to dismiss you because of it.

>
> I've _implemented_ as simple schema evolution for django, which I need
> for a personal project with a _deadline_.

And based on your past behaviours, that might just be a result of you
trying to become an even better troll.

For me, I'll just ignore you from now on. Maybe other people here will
be more accepting of a well known troll. If you really are trying to
change your ways, then best of luck to you, in defeating the persona
you've created for yourself. You've already been dismissed on
django-dev, so my guess is that the odds of any of your work ever
hitting the Django SVN tree are pretty slim.

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



Re: Django Quick Start with Schema Evolution Support

2006-06-04 Thread Ilias Lazaridis

Jay Parlar wrote:
> Ilias:
> 
> I thought you would stop bothering Django people after it was revealed
> on Django-dev that you're a known Internet troll:
[...]

This starts to become ridiculous.

You can find the pointers, including several descriptions of past 
evaluations within my website:

http://lazaridis.com/core/eval/index.html

-

To this thread:

I've _implemented_ as simple schema evolution for django, which I need 
for a personal project with a _deadline_.

I share the results in the open source way with other users, whilst 
requesting feedback.

Please have the gentleness to stop your _fully_ off topic messages, 
which do not contribute any value to this clearly technical topic here.

.

-- 
http://lazaridis.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
-~--~~~~--~~--~--~---



Initial data for sites framework?

2006-06-04 Thread [EMAIL PROTECTED]

HI.

I don't use the sites framework. Still, it looks as is I need to
install and initialize it in order to get the feeds (syndication)
framework.

Is there some place I can put the initial values for the sites
framework, so the standard site is created automatically in the
database and I don't need to log into the admin and edit my site each
time I generate the database again during development)? It always
defaults to "example.com" after a syncdb.

Daniel


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



Re: Ajax support, there is no need for reinventing the wheel

2006-06-04 Thread Vladimir Pouzanov

On 6/4/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
> I'd like django to pick a ajax toolkit and use it. (i don't care
> which one it chooses)

What do you think about this: http://tinyurl.com/eeejh

-- 
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.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
-~--~~~~--~~--~--~---