get_next_by_FIELD and alternate managers

2006-09-03 Thread nate-django
In my blog I take advantage of get_next_by_FIELD (pub_date in this case) for navigation to older and newer stories in my entry detail view. I also have a flag in my entry model that says whether or not a blog entry is published. I defined an alternate manager called "published" to make it easier

Re: Advanced Admin Customization

2006-09-01 Thread nate-django
On Fri, Sep 01, 2006 at 10:21:38AM -0700, mthorley wrote: > Table creation is handled by core.management. In it, a lookup is > preformed where it loads the dict DATA_TYPES (or something like that) > from db.backends..creation. Then it attempts a key matching the > field class name of each field in

Re: My blog is now Django -- source is available

2006-08-22 Thread nate-django
On Tue, Aug 22, 2006 at 06:20:14AM -0700, Tim Shaffer wrote: > It looks like some of your views are very simple and could use generic > views, if you wanted. > > def home(request): > return render_to_response('home.html') > > could use django.views.generic.simple.direct_to_template I was

My blog is now Django -- source is available

2006-08-22 Thread nate-django
Since so many people are developing their own blogs in Django, I thought it would be good to announce that the source code to mine is now available. Mine is probably of most interest to people migrating from COREBlog or other Zope blogging software. Browse: http://refried.org/viewvc/viewvc.py/re

Re: Django covered in podcast with Guido

2006-08-07 Thread nate-django
On Mon, Aug 07, 2006 at 12:46:57AM -0700, Dan Shafer wrote: > On 8/6/06, Alan Green <[EMAIL PROTECTED]> wrote: > > On 8/5/06, Simon Willison <[EMAIL PROTECTED]> wrote: > > > http://www.twit.tv/floss11 > > > > > > Django gets some good discussion about 50 minutes in. > > > > Guido sure says nice th

Re: when is 1 != 1? (according to 'ifequal' in template)

2006-08-07 Thread nate-django
On Mon, Aug 07, 2006 at 06:07:24PM -, hotani wrote: > I'm doing a comparison of a session variable and an id for a 'selected' > tag in a drop-down in a template. If I output both vars, they will both > be "1" yet 'ifequal' is still returning false. Has water stopped being > wet? Is one a stri

Re: Managing database privileges

2006-07-05 Thread nate-django
On Tue, Jul 04, 2006 at 11:23:16PM -0300, Douglas Campos wrote: > you can specify what user/password to connect to database in > settings.py file, under your project dir > > http://www.djangoproject.com/documentation/tutorial1/#database-setup True, but that's not what I was asking. > On 7/4/06,

Managing database privileges

2006-07-04 Thread nate-django
I am in the process of moving my Django project from using the development server to Apache and mod_python. I created the PostgreSQL databases as myself and ran the development server as myself. Now that I'm getting stuff going with mod_python, it'll start running as user "www-data" under Apache

Re: Wiki or Blogs done with django

2006-05-29 Thread nate-django
On Mon, May 29, 2006 at 09:48:11AM +0200, Giovanni Giorgi wrote: > I am planning to build a small personal web site. > I have used Plone CMS (Zope powered) but it is very slow and requires > a lot of memory. I'm coming from a similar camp. I've had a blog running on Zope with COREBlog for about

Re: hack for file-browser

2006-05-02 Thread nate-django
On Tue, May 02, 2006 at 02:47:33PM +0200, va:patrick.kranzlmueller wrote: > i?m working on a file-browser for/with the django-admin. > screenshots are here: > http://www.vonautomatisch.at/django/ftp/ Wow, that looks great! I would love to use that in my apps. Nate --~--~-~--~~-

Manipulators and non-editable fields

2006-04-21 Thread nate-django
Perhaps I'm going about this the wrong way... I'm trying to validate fields for a comments app I'm working on. As part of the model I have a few non-editable fields, IP address and date. Can non-editable fields be validated or even saved when using a manipulator? Here is the code I'm working wi

Re: ImageField nightmares

2006-03-25 Thread nate-django
On Sat, Mar 25, 2006 at 07:35:46AM -0800, sparkydeville wrote: > To clarify the use-case, consider an article like an image gallery, > wherein one article can have more than one image associated with it. > Further it would be helpful if the Article add/edit form could allow > users to add images w

Re: Advice on developing with django for a team of 10+

2006-03-24 Thread nate-django
On Thu, Mar 23, 2006 at 09:23:30AM -0800, tonemcd wrote: > Oooh, now that's neat. My own tinkering with svn to ignore .pyc files > hasn't worked out so well... The way I did it was to edit my ~/.subversion/config file. There is a section, "[miscellany]" that includes a "global-ignores" option.

Re: mod_python & devserver & apache restart

2006-02-21 Thread nate-django
On Tue, Feb 21, 2006 at 08:12:30PM +0100, patrick k wrote: > 1. is the django development-server only meant for local use? i?m asking > because i tried to use it with dreamhost and it doesn?t seem to work. You need to specify the hostname and port with runserver. i.e. python manage.py runserver