Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Max Battcher
Eugene Lazutkin wrote: Look at Dojo. I did a small how-to on creating widgets here: http://lazutkin.com/blog/2005/dec/24/live-filtering/. Some people, who read it, missed my point: it was not about Ajax functionality (you can do it with any library), it was about creation of self-contained gen

image field update impossible.

2006-01-25 Thread [EMAIL PROTECTED]
Hello i created a foo model to expose the problem, from django.core import meta # Create your models here. class Aclass(meta.Model): question = meta.CharField(maxlength=200) img= meta.ImageField('Attach Image', upload_to='postimgs', blank=True) class META: admin = m

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Eugene Lazutkin
Ben Bangert wrote: Louis that made the Django adaptation stuff, I just ported it from Ruby. :) In this case I want to see the packaging. Thanks, Eugene

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ben Bangert
Louis that made the Django adaptation stuff, I just ported it from Ruby. :) The RJS style stuff is going to take some thinking about the best style of usage within Django, any volunteers? I'll be happy to go over the details. - Ben

Re: Cache issue on Dreamhost?

2006-01-25 Thread Eugene Lazutkin
Chase wrote: I recently installed Django on Dreamhost, following the great instructions here: http://wiki.dreamhost.com/index.php/Django. The installation worked fine, but any change I make to an app takes hours to register on the Web. It seems to be an fcgi or caching problem, possibly not relo

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Eugene Lazutkin
Ben Bangert wrote: Eugene Lazutkin wrote: A lot of people who use list boxes, radio buttons, and other widgets don't know X11/Win32 graphics APIs and event systems. My point is there are many ways to minimize exposure to js. Agreed, I have yet to see anyone come up with clear cases for widget

Cache issue on Dreamhost?

2006-01-25 Thread Chase
I recently installed Django on Dreamhost, following the great instructions here: http://wiki.dreamhost.com/index.php/Django. The installation worked fine, but any change I make to an app takes hours to register on the Web. It seems to be an fcgi or caching problem, possibly not reloading myproject

Re: magic_removal table update

2006-01-25 Thread Max Battcher
Jason Davies wrote: ALTER TABLE auth_groups ALTER id SET DEFAULT nextval('public.auth_group_id_seq'::text); This was the peculiar incantation I was looking for, thanks. Now I just have a non-fatal, non-blocking error from the django_content_types table... -- --Max Battcher-- http://www.wor

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ben Bangert
Eugene Lazutkin wrote: > A lot of people who use list boxes, radio buttons, and other widgets > don't know X11/Win32 graphics APIs and event systems. My point is there > are many ways to minimize exposure to js. Agreed, I have yet to see anyone come up with clear cases for widgets within web prog

Re: rss problem

2006-01-25 Thread Adrian Holovaty
On 1/25/06, danylo <[EMAIL PROTECTED]> wrote: > This is what I'm getting: > > > > http://www.foo.bar > > http://www.foo.bar > Hey Dan, You need to create templates for the title and description. If your feed's slug is foo, these templates should be called "feeds/foo_title.html" and "feeds/fo

Re: several django questions, models, apache

2006-01-25 Thread [EMAIL PROTECTED]
removing the trailing ^ is the only way so far, here the httpd where i took ofthe / after "/cefinban and added a ServerName then typing in the browser http://127.0.0.1/cefinban/admin/ if url.py link is (r'^admin/', include('django.contrib.admin.urls.admin')), give me a 404 error The current

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Eugene Lazutkin
Ben Bangert wrote: I think its actually rather high level, in that you don't really need to know any Javascript what-so-ever. Obviously not knowing any Javascript will be a limitation to exactly what you can do, but the helpers and RJS meet a lot of people's needs with a very minimal amount of

rss problem

2006-01-25 Thread danylo
As part of my first steps into Python and Django, I'm trying to generate an RSS feed for a group of individual writers. I'm finally able to generate an RSS feed, but it's incorrect. This is what I'm getting: http://www.foo.bar http://www.foo.bar The link and guid are correct, but I'm not ge

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ben Bangert
Eugene Lazutkin wrote: > My only problem with RoR's approach in general regardless of underlying > library is it is very low level. Essentially it is a way to propagate > some events to the server. I am not sure I like the idea of callbacks > for every sneeze. David (of RoR) really dislikes progra

Re: repository with apps

2006-01-25 Thread limodou
2006/1/26, Wilson <[EMAIL PROTECTED]>: > > Tim, > > There are plans for an app repository once Django 1.0 is officially > released. Stay tuned! > > I'm waiting... -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Eugene Lazutkin
Ben Bangert wrote: For those concerned about the fact that these helpers use ProtoType and Scriptaculous, it should be noted that Mochikit 1.3 will include equivalent functionality. This should make it seamless to use Mochikit instead with no or minimal changes to the helper functions. (What I

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ben Bangert
I'd think the most reasonable approach would be to have the frameworks reference the module. Myghty doesn't require an API, as the names are just imported and attached to a template global helper object, ie, <% h.observe_field(.) %>. TurboGears may likely require a bunch of API's for the vari

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ian Holsman
That sounds like a great idea (working together), and personally I'm not too hung up about which AJAX library I use, as long as it can do the job (which most seem too for my simple things) I like the idea of having one way of doing this across frameworks, it makes them all simpler to learn and in

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ben Bangert
For those concerned about the fact that these helpers use ProtoType and Scriptaculous, it should be noted that Mochikit 1.3 will include equivalent functionality. This should make it seamless to use Mochikit instead with no or minimal changes to the helper functions. There's several people now wo

Re: flash

2006-01-25 Thread Eugene Lazutkin
[EMAIL PROTECTED] wrote: I have problem is that my flash is not working when i used Django i am using internet explorer i don't know why althought i put my swf file is in the media folder 1st of all: test with your browser that all required files are accessible. E.g., enter .swf's url and

Re: repository with apps

2006-01-25 Thread Wilson
Tim, There are plans for an app repository once Django 1.0 is officially released. Stay tuned!

flash

2006-01-25 Thread mary . adel
I have problem is that my flash is not working when i used Django i am using internet explorer i don't know why althought i put my swf file is in the media folder Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] Office: +202 - 62

repository with apps

2006-01-25 Thread Tim Terlegård
It would be nice with an official repository with django apps. There may very well exist 1000 roughly equivalent poll app implementations out there already. Wouldn't it be good if we had a repository of reusable common apps? I think it would be awesome. Not sure who should get commit access and s

Re: meta.Admin 'fleids' option

2006-01-25 Thread [EMAIL PROTECTED]
Big thanks! I'm found error, misprint in field's names..

Re: Template cache which speeded up my setup 25 times

2006-01-25 Thread Adrian Holovaty
On 1/25/06, hugo <[EMAIL PROTECTED]> wrote: > You might have written this as a simple template loader - and used the > basic template loaders as starting point, just overloading the > get_template functionality. That way you would be able to use the > standard render_to_xxx functions - you only wo

Re: magic_removal table update

2006-01-25 Thread Adrian Holovaty
On 1/25/06, Max Battcher <[EMAIL PROTECTED]> wrote: > I'm living on the bleeding edge (just migrated to rev. 2123) with my > current development, and followed the suggested ALTER TABLE commands > from the wiki page, and though I can read from the data (all of the > views work correctly), I can't s

Re: Template cache which speeded up my setup 25 times

2006-01-25 Thread hugo
>The code is below, all you have to do is call >install_loader_cache() >when your app starts (in the urls perhaps) and use >render_to_response >from this package when rendering output (the default one has >an old >reference to get_template so it won't use the cache until this >feature >gets includ

Template cache which speeded up my setup 25 times

2006-01-25 Thread WSobczuk
Hey, On my hosts doing several hundred requests per second the load was at 100 already, and then Adrian suggested to cache the templates. So I implemented a simple cache (which is now a hack but perhaps it will be included in Django soon) which brought the load down to 5 - so a lot of speedup at

Re: magic_removal table update

2006-01-25 Thread Jason Davies
Max Battcher wrote: > I'm living on the bleeding edge (just migrated to rev. 2123) with my > current development, and followed the suggested ALTER TABLE commands > from the wiki page, and though I can read from the data (all of the > views work correctly), I can't save because all of the sequence

Re: magic_removal table update

2006-01-25 Thread Andreas Stuhlmüller
On 1/25/06, Max Battcher <[EMAIL PROTECTED]> wrote: > At this point I'm a bit stumped on how to properly do this. Is there an > easy way to resync the sequences in PostgreSQL that I've overlooked? Did you try "django-admin.py sqlsequencereset"? This used to work for me. Andreas

Re: editing multiple records

2006-01-25 Thread patrick k
could someone please give some details on this issue? of course, one can use custom views to integrate editing of multiple records. on the other hand, i can do _almost everything_ with custom views - so, that doesn´t really help. before i start writing custom views for that, i just want to be su

magic_removal table update

2006-01-25 Thread Max Battcher
I'm living on the bleeding edge (just migrated to rev. 2123) with my current development, and followed the suggested ALTER TABLE commands from the wiki page, and though I can read from the data (all of the views work correctly), I can't save because all of the sequences are now out of sync.