Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Wilson Miner
Dojo is designed to be flexible, but can be too heavyweight for small tasks. Mochikit is designed to be super-lightweight but has a much more limited scope as far as what it's capable of. On 10/17/06, iain duncan <[EMAIL PROTECTED]> wrote: > > I have not dug into either Dojo or Mochikit yet and

Re: Django and Media Temple Grid Server

2006-10-17 Thread Wilson Miner
Sounds like they're leaning toward adding a Django option in the future, but I think we can help speed them along by letting them know there's plenty of demand out there. They suggest contacting their sales staff to let them know if you'd be interested in a Django grid server:

Re: Re: Why I'm giving up on Django

2006-09-29 Thread Wilson Miner
That was actually a conscious decision to keep from needing support images for the debug pages. I wanted them to be completely self-contained, which is why we used the unicode glyph for the disclosure triangle (a pretty universal UI indicator) to indicate that those sections could be expanded.

Re: customizing admin templates

2006-08-01 Thread Wilson Miner
Try putting this in your main base_site.html template: {{ app.name|default:"Django" }} Administration I'm not sure if the app info is available in the changelist/change form contexts, but it's worth a shot. On 8/1/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > I'm sorry to keep bothering

Re: How would Django handle a large number of records

2006-06-21 Thread Wilson Miner
> The World Online admin > interface (where Django was born) has a number of content types with > tens of thousands -- if not hundreds of thousands -- of records. 393,181 stories and counting... On 6/21/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/21/06, Patrick Anderson <[EMAIL

Re: Template variables

2006-06-20 Thread Wilson Miner
Hi Patrick, You might find some helpful responses in this thread: http://groups.google.com/group/django-users/browse_frm/thread/50ee1c147854769/a79890af3059229d?q=menu=3#a79890af3059229d On 6/20/06, Patrick <[EMAIL PROTECTED]> wrote: > > Hi i'm newbie and i want to publish my Django website. >

Re: Divide list in a template

2006-06-17 Thread Wilson Miner
I don't know of a way to do this by a calculated fraction of the total items in the list, but you can use the slice filter to break it up into groups of a set number: {% for object in object_list|slice:":5" %} {% for object in object_list|slice:"5:10" %} etc. There's also a handy trick if you

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Wilson Miner
Or specify the dimensions in ems if you want a closer equivalent to rows and columns. On 6/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > > Wondering if there's a way to specify how many rows and columns the > > generic update page uses for a

Re: Additional controls in admin interface?

2006-06-06 Thread Wilson Miner
You're looking for the "filter_interface" option for the ManyToManyField. You can find out more here: http://www.djangoproject.com/documentation/model_api/#many-to-many-relationships Also, if you specify an ordering meta option on your model, your ManyToManyField will be sorted by the field you

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Wilson Miner
Another option is to create it as a flat page with the url "/" and pull in all your content using template tags. On 6/6/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/6/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > > 1) create a homepage app to aggregate it all (don't be worried, it can

Re: How fix the "feature" of not serving static files?

2006-05-24 Thread Wilson Miner
Seems like you would get better results from your time by writing a script to replace relative paths with absolute urls. On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Ok. > > Like I say, I understand the reason in separate the dynamic from the > static, despite the fact this is

Re: How fix the "feature" of not serving static files?

2006-05-23 Thread Wilson Miner
Is there a particular reason you can't just use the full media url in your templates? ie. "http://media.coolsite.com/files/css/shadow.css; instead of "../css/shadow.css"? On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm building a CMS for my internal use... I own a web

Re: authentication style select box

2006-05-17 Thread Wilson Miner
Sean, You're looking for the filter_interface argument for the ManyToManyField: http://www.djangoproject.com/documentation/model_api/#many-to-many-relationships On 5/17/06, Sean <[EMAIL PROTECTED]> wrote: > > Hi, > I was wondering if the searchable select box as used in the add user > interface

Re: sites in django.contrib ?

2006-05-10 Thread Wilson Miner
It's generally used as a ManyToMany in other apps to assign objects (blog posts, stories, e.g.) to be published to one or more sites at a time. On 5/10/06, Zeuxis <[EMAIL PROTECTED]> wrote: > > Hi, > > I wonder what it the purpose of the sites app in django.contrib ? It > does not >

Re: Comment options not appearing in admin

2006-05-10 Thread Wilson Miner
With comments installed you can use the comments template tags to attach a comment thread to any object in the template. For example, for a hypothetical blog post, the template code to get the list of free comments for the object might look like this: {% load comments %} {%

Re: Django-Powered Game in Beta - MyDarkSecret.com

2006-05-09 Thread Wilson Miner
Cool! Very interesting to see a totally different kind of Django app. I'll have to try it out. On 5/8/06, ZebZiggle <[EMAIL PROTECTED]> wrote: > > Hey everyone! > > As you may or may not know (or are sick of hearing about) ... I've > been dabbling on a web-game for a while now. It's called "My

Re: Django Admin CSS Problems in Safari

2006-05-09 Thread Wilson Miner
I still haven't been able to confirm this particular display problem, but adding the padding rule to #container doesn't break anything, so I went ahead and commited that change. On 4/29/06, parsch <[EMAIL PROTECTED]> wrote: > > > Matthew Flanagan schrieb: > > > I can confirm that i'm seeing this

Re: Admin Functionality Enhancement

2006-05-08 Thread Wilson Miner
This is actually along the lines of some of the big-picture admin changes I've been thinking about. Another side effect is that if each app has it's own dashboard/changelist/filters, it also opens up the actual index page for some additional functionality. On 5/8/06, Rudolph <[EMAIL PROTECTED]>

Re: Ecommerce & Django

2006-04-15 Thread Wilson Miner
On 4/14/06, Clint Ecker <[EMAIL PROTECTED]> wrote: > Here's basically what I have... the thing with t-shirts is that you can have > a base product, the design... and it's got several subproducts Medium Black > shirts, Large black shirts, Meidum blue. And they've all got different > prices

Re: moving items in admin-interface

2006-04-03 Thread Wilson Miner
Depends on who you talk to. We use it all over the place. I'm not sure what the status is with magic-removal. It interacts with edit_inline, which AFAIK doesn't have a finished interface in m-r yet. On 4/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The order_with_respect_to field seems

Re: display_inline=True?

2006-03-28 Thread Wilson Miner
AFAIK, it's not really in the scope of the admin to display information that can't be edited. Anything along those lines is probably a candidate for customization. On 3/28/06, pbx <[EMAIL PROTECTED]> wrote: > > When viewing one object in the admin (say, a Landlord) I'd like to be > able to

Re: Customising Admin

2006-03-28 Thread Wilson Miner
If you only give the user permission to change your object, they will not see an add button when they log in. On 3/28/06, Rune Strand <[EMAIL PROTECTED]> wrote: > > Just to learn Django, I'm 'porting' a small CMS I wrote in PHP for a > customer. While the standard admin buttons "Save an add

Re: ImageField nightmares

2006-03-25 Thread Wilson Miner
I've had similar problems with using an image field as the core field in an edit_inline relationship. When an object with an edit_inline relationship is saved, the admin checks if the core fields on any of th erelated objects are blank, and if so, it deletes that related object. aWhat happens

Re: Help with Django base template and CSS

2006-03-04 Thread Wilson Miner
I meant to say "that's just for development, NOT production". On 3/4/06, Wilson Miner <[EMAIL PROTECTED]> wrote: > Django doesn't serve media (images, css, etc.). The development server > handles the media necessary for the admin interface, but that's just > for producti

Re: Help with Django base template and CSS

2006-03-04 Thread Wilson Miner
Django doesn't serve media (images, css, etc.). The development server handles the media necessary for the admin interface, but that's just for production. You'll need a regular web server (Apache, lighttpd, etc.) to serve your media. Once you've got that going, you'll need to update the

Re: Making a Field Optional in Admin, Admin Issues

2006-02-27 Thread Wilson Miner
> I also created a super user via the admin GUI and this is not working > -- the super user cannot log in!!! Make sure the user is set to "staff" as well. The "staff" setting allows the user to log in, the "superuser" setting gives them access to all objects in the system.

Re: Django logo

2005-12-14 Thread Wilson Miner
I haven't got around to posting those with guidelines, but I've attached a version you migth be able to use.Cheers,WilsonOn 12/3/05, Maniac <[EMAIL PROTECTED]> wrote: I'm writing a blog post about Django and want to use a logo as adecoration. There are number of nice badges

Re: admin/base_site.html

2005-11-16 Thread Wilson Miner
That's just a template block which you can fill in with your own contents (or rename or remove altogether if you choose). Django doesn't do any magic management of public site navigation (unless you use it to build an app that does). See this section of the template documentation for an overview