Re: Do you code django with Komodo?

2008-06-24 Thread Jökull
What OS are you running? I'm on Windows and use e-texteditor which has support for TextMate bundles. You can get some pretty nice Django bundles which will do a lot of autocompleting and such tasks. Komodo seems to have a couple of nice things going for it - mainly SVN support. In my setup I'm do

Re: Sorting

2008-01-01 Thread Jökull
I'll suggest the sortable in ui.jquery.com for front end. On ordering you may want to run some serialize function in JavaScript and submit with AJAX to a function that writes the order. Another flavor is to simple put move_up and move_down functions to your model. There is an example of this on d

Re: Outputting MS word-friendly format

2007-12-19 Thread Jökull
A quick google returned this: http://pyrtf.sourceforge.net/ On Dec 19, 3:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Like the title says, I'd like to output a word-friendly format. > Obviously plain text is trivial, but I'd like to have a doc or at > least rtf format. Can anyone point

Re: sending >500 emails using send_email in a for loop

2007-12-19 Thread Jökull
You may want to have a look at http://groups.google.com/group/django-mailer It seems to have died halfway complete but there is a bit of discussion and at least some code you could look at. Jökull On Dec 18, 9:18 pm, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote: > I'v

Re: Scaling architecture question: separate media server

2007-10-30 Thread Jökull
Maybe a SFTP mount or some sort of rsync will suffice? On Oct 29, 4:18 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 10/29/07, Jökull <[EMAIL PROTECTED]> wrote: > > > There is a lively discussion on an interesting upcoming feature of > > Django call

Scaling architecture question: separate media server

2007-10-29 Thread Jökull
I am in the planning stage of creating a Django media player. It is intended for a small group of users, but still anticipating a lot of bandwidth usage both upload and download as this is an MP3 repository with a web frontend. There is a lively discussion on an interesting upcoming feature of Dj

Re: newforms __init__

2007-08-30 Thread Jökull
Awesome. Thanks! BTW it's right there in the documentation. Apologies. http://www.djangoproject.com/documentation/newforms/#using-a-subset-of-fields-on-the-form On Aug 30, 3:40 pm, daev <[EMAIL PROTECTED]> wrote: > То remove fields from from you don't need to use __init__ > form_for_model, form

newforms __init__

2007-08-30 Thread Jökull
Does anyone have a code example of __init__ where you modify a form_for_inst/model to remove some fields? I'm trying to build an edit form but don't want to expose all fields of the model. Maybe I missed it but I didn't see this scenario covered in the newforms documentation. Is this maybe not th

Re: Admin Look

2007-08-23 Thread Jökull
Have a look at the CSS file the admin pages use. You can include it in your projects. For a login see other threads - this is already documented. On Aug 23, 1:03 pm, eyscooby <[EMAIL PROTECTED]> wrote: > Hello > I was wondering, if it is possible to have the look/feel of the django > admin page

Re: django app for managing sending email to users...

2007-08-07 Thread Jökull
I have an implementation of a mass mailing functionality. Basically a "campaign" is constructed in the admin interface. There is a preview field and if filled it short-circuits the save functionality. If the preview is left blank users and a campaign id are put into a "dispatch" table where each e

Re: Best Practice for translating db-stored values

2007-07-15 Thread Jökull
Have you looked at django-multilingual? http://code.google.com/p/django-multilingual/ I'm about to have a go at implementing this. It looks great for multilingual content sites. On Jul 14, 5:27 pm, Panos Laganakos <[EMAIL PROTECTED]> wrote: > Using gettext_lazy, is the way to go, for marking mo

Re: syncdb building freaky database

2007-07-12 Thread Jökull
front" is a boolean field, but also is unique. You can't > have more than two entries (and obviously one has to be True, one > False), but you are seeing it after only one entry because both the > first and second records are False. > > -rob > > On Jul 12, 3:22 pm, Jö

syncdb building freaky database

2007-07-12 Thread Jökull
1. All fields have 'NOT NULL' and are required - this does not reflect my model 2. I get strange errors in the admin when adding a second item of anything : IntegrityError at /admin/portfolio/work/add/ (1062, "Duplicate entry '0' for key 2") portfolio/models.py --- from

Re: Django + newforms + jQuery

2007-07-12 Thread Jökull
What do you mean? Perhaps you should go to the jQuery-EN group and look for examples of form manipulation there. J On Jul 12, 7:42 am, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > Hi, any one willing to share some examples of django newforms with > jQuery? > > Thanks in advance! > > Przemek >