Re: Is their an easy way to implement an ordered list of, say, urls in Django

2012-12-27 Thread Kevin Monceaux
On Sat, Dec 22, 2012 at 05:22:05PM -0800, Doug S wrote: > I want to store an ordered list of items in my models > and allow insertions and appending to the end of the list. I've been using Django Positions for handling ordered lists: https://github.com/jpwatts/django-positions/ It seems to

Re: Upload Multiple Images App ?

2011-08-08 Thread Kevin Monceaux
On Fri, Aug 05, 2011 at 10:31:38AM -0700, fire_water wrote: > and has a http://code.google.com/p/django-stdimage/ > issues/detail?id=22">known bug that does not delete images when > its object/row is deleted. > According to django-imagekit's github.com page, it has the same

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Kevin Monceaux
On Thu, Jul 07, 2011 at 10:46:47AM -0400, Shawn Milochik wrote: > If I even filter a mailing list so it doesn't go into my inbox I end > up falling behind and deleting all the messages unread. The only way I > actively participate in this list is because it hits my inbox. I'm on too many mailing

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Kevin Monceaux
On Wed, Jul 06, 2011 at 08:38:42PM -0300, Andre Terra wrote: > If we could move the questions to a specific site, everyone would > benefit. Not everyone. I much prefer mailing lists to any of the other options mentioned. With a threaded mail client, I use Mutt, they're much easier to keep up

Re: Is there an HTML editor that's Django-aware

2011-05-20 Thread Kevin Monceaux
On Fri, May 20, 2011 at 07:51:06AM -0400, Brian Bouterse wrote: > +1 for vim I'll second that motion. I've tried numerous other editors and keep sticking with vim for almost everything. I do use emacs for my e-mail editor, with Mutt as my mail client. -- Kevin http://www.RawFedDogs.net

Re: Static files

2011-05-18 Thread Kevin Monceaux
On Wed, May 18, 2011 at 03:03:42PM -0500, Kevin Monceaux wrote: > to: > >return render(response, 'index.html', {'form': form}) I should proof read more carefully. That should be: return render(request, 'index.html', {'form': form}) -- Kevin http://www.RawFedDogs

Re: Static files

2011-05-18 Thread Kevin Monceaux
John, On Wed, May 18, 2011 at 09:12:59AM -0700, John Wheeler wrote: > I had to change > >return render_to_response('index.html', {'form': form}) > > to > >return render_to_response('index.html', {'form': form}, > context_instance=RequestContext(request)) And if you're running

Re: Django's documention is horrible

2011-01-11 Thread Kevin Monceaux
On Tue, Jan 11, 2011 at 05:12:46PM -0600, Kevin Monceaux wrote: > Do you mean like the reference manual one can build from Django > source? The above wasn't entirely clear. I meant the manual one can build from the documentation source code which is included the Django source t

Re: Django's documention is horrible

2011-01-11 Thread Kevin Monceaux
On Tue, Jan 11, 2011 at 12:36:26AM -0800, mrmclovin wrote: > I guess your post should be replaced by my first one :). It's exactly > what I was trying to say: django need a reference manual to complement > the existing documentation. Do you mean like the reference manual one can build from

Re: Mailing Lists Vs. Forums (Was: Django's documention is horrible)

2011-01-10 Thread Kevin Monceaux
On Tue, Jan 11, 2011 at 07:51:55AM +0800, Russell Keith-Magee wrote: > I am yet to meet an online forum interface that doesn't make me want > to gouge my own eyes out. For my money, email is a vastly preferable > interface in almost every respect. Google's Groups could certainly > do with some

Re: moving from Postgres to MySQL

2010-10-23 Thread Kevin Monceaux
On Fri, Oct 22, 2010 at 07:58:20AM +0100, Chris Withers wrote: > On 21/10/2010 15:40, ringemup wrote: > >MySQL has a tool (mysqldump) that will output the contents of an > >entire database to a SQL file that can then be loaded directly into > >another database. Does Postgres not have anything

Re: query related question

2010-01-14 Thread Kevin Monceaux
E. Hankan, On Thu, Jan 14, 2010 at 10:53:31PM -0500, E. Hakan Duran wrote: Take the following with a grain, or three, of salt. I'm a little rusty. I converted a web site to Django back in the pre-1.x days and am just getting back to tinkering with Django to enhance the functionality of said

Re: Photo Gallery Suggestions

2009-12-15 Thread Kevin Monceaux
Oops, I knew I'd leave out at least one. On Tue, Dec 15, 2009 at 10:42:10AM -0600, Kevin Monceaux wrote: > Some of the items on my wish list include: Customizable upload/save path, preferably including a directory named after the photo's ID, to avoid filename collisions. -- Ke

Re: Django and Linux distros

2008-05-19 Thread Kevin Monceaux
On Mon, 19 May 2008, Gene Campbell wrote: > I totally agree. I took this path over the last 5 years: redhat (1 > yr) -> gentoo (3 yrs)-> archlinux (6 mos) -> pclinuxos (1 day) -> > ubuntu (6 mos) I took a similar path. I started with Slackware back in the 1.xx kernel days. Recently I did

Re: Django and Linux distros

2008-05-16 Thread Kevin Monceaux
Jon, On Fri, 16 May 2008, JonSidnell wrote: > I'm suddenly struck by the notion that I would like to be dev'ing > Django on Linux of some flavour rather than Windows. Congratulations!!! > It's been a wee while since I stuck my toes in the Linux waters, so I > was wondering if anyone here has

Re: tutorial DB touble

2008-05-07 Thread Kevin Monceaux
Sebey, On Wed, 7 May 2008, sebey wrote: What do you have for your DATABASE_NAME in your settings.py file? > sqlite3.DatabaseError: file is encrypted or is not a database It looks like it's pointed to an existing file that's not an SQLite file. It should look something like: DATABASE_NAME =

Re: Custom Widget with jQuery?

2008-05-07 Thread Kevin Monceaux
-richard, On Wed, 7 May 2008, Richard Dahl wrote: > I am not sure exactly what you mean by 'not step on each others toes' > What exactly are you concerned with? You could very easily have a form > with 4 phone number fields: home, office, mobile, fax; using jQuery's > .class selector i.e.

Custom Widget with jQuery?

2008-05-07 Thread Kevin Monceaux
Django Fans, Could someone point me at some examples of custom widgets that use jQuery, or other javascript libraries if there's a better choice. For example, if I wanted to create a phone number widget using jQuery's masked input plugin, what would be the best way to go about it. I've just

Re: Should I set up Django locally or on a web server?

2008-05-01 Thread Kevin Monceaux
Selmac?, I've never used a Mac, so take the following with a grain of salt. On Thu, 1 May 2008, selmac wrote: > I know the makers of Django like postgress. Does anyone have > instructions for an installation of the whole package (apache, postgres, > django, python, mod_python) on a mac? It

Re: Queryset-refactor branch has been merged into trunk

2008-04-29 Thread Kevin Monceaux
On Sun, 27 Apr 2008, simonbun wrote: > So qs-rf hit trunk and was merged into nfa on the same day! That's > excellent news, both for me and for django. Thanks so much for your > efforts Malcolm (and Brosner for the quick merge)! I'll second that. I've been running against the nfa branch. I

Re: Enhancing the Admin Interface

2008-04-28 Thread Kevin Monceaux
James, On Mon, 28 Apr 2008, James Matthews wrote: > Can someone please point me to a site that lists all the enhancement for > the admin interface. (filter lists,search,orderby etc..) They're on the Model Reference documentation page:

Re: order_by for related tables

2008-04-24 Thread Kevin Monceaux
Matias, On Thu, 24 Apr 2008, Matias Surdi wrote: > I can't get to work the order_by('related_table.field') as described in > http://www.djangoproject.com/documentation/db-api/#order-by-fields > > Is this documentation correct? I think it's close. To get the above to work in cases were I've

FileField filename validation examples?

2008-04-22 Thread Kevin Monceaux
Django Fans, Could someone point me towards some examples of validating the filenames/types of uploaded files? Digging through the list archives I came across a post from 2006: http://groups.google.com/group/django-users/browse_thread/thread/ebe1768bce0a01e3/ which has an example of a

Re: How do I escape a single quote in a Django template?

2008-04-21 Thread Kevin Monceaux
jmDesktop, On Mon, 21 Apr 2008, jmDesktop wrote: > {% trans 'Bob's administration' %} One can find examples of using the trans template tag about 1/4 of the way down the Internationalization documentation page: http://www.DjangoProject.com/documentation/i18n/ For the above it looks like:

Re: Fwd: custom form on admin interface page

2008-04-21 Thread Kevin Monceaux
André, On Mon, 21 Apr 2008, Andre Meyer wrote: > btw I am using the 0.96.1 release. Does that still use old_forms? Have > not yet looked into old/newforms... Yes it does. At the moment to use newforms-admin, one has to check out the newforms-admin branch from SVN. If you'd like to find out

Re: custom form on admin interface page

2008-04-19 Thread Kevin Monceaux
André, On Sat, 19 Apr 2008, apm wrote: > so i figured out the following (in admin/change_list.html): > > {% ifequal cl.opts.verbose_name "poll" %} > > Import from file > value="import" type="submit"> > > {% endifequal %} > > is

Re: newforms-admin questions

2008-04-09 Thread Kevin Monceaux
Django Fans, I'd like to second most of Rob's questions. While pondering some of the same questions I came across his post and didn't see a reply. On Sun, 9 Mar 2008, Rob Hudson wrote: > How's the stability and/or "readiness" of newforms-admin? I've just recently converted a web site I act

Re: Set Index (Home) Page

2008-04-07 Thread Kevin Monceaux
On Mon, 7 Apr 2008, ichbindev wrote: > that would take care of (b) where no page was matched. It would also > take care of (a) but in principle the home page should not be reached > through a "page not found" kind of thing. I agree, in your initial post you said: > Both of these are not

Re: Set Index (Home) Page

2008-04-07 Thread Kevin Monceaux
On Mon, 7 Apr 2008, ichbindev wrote: > In short, is there such a thing as 'default' in urlpatterns so that it > calls a view when none of the other patterns match? Is something like: http://www.DjangoProject.com/documentation/url_dispatch/#handler404 what you're looking for? Kevin

Re: Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
On Tue, 8 Apr 2008, Eric Abrahamsen wrote: > You just want plain old {% resetcycle %}, nothing else. It will reset > the innermost cycle you put it in... I tried the above, and still get the same results. I'm not sure if it makes a difference, but although I'm using cycle within a loop I've

Re: Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
Eric, On Mon, 7 Apr 2008, Eric Abrahamsen wrote: > > Someone pointed me at this page, and I've been happily using the > resetcyle tag ever since.. > > http://code.djangoproject.com/ticket/5908 Thanks, that sounds like just what I'm looking for. However, I've applied the patch and added a {%

My First Django Site

2008-04-07 Thread Kevin Monceaux
Django Fans, I started out planning to convert one or two dynamic pages of a local canine agility club's web site which I act as webmaster for to Django to see if I really liked Django and to get an idea of how long it would take to convert the whole site. Well, in just under a week I ended

Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
Django Fans, I have another cycle tag question. Is there any way to reset a cycle tag variable so that it starts from the beginning? In a inclusion tag's template I have a {% cycle 'Odd' 'Even' as rowcolors %} tag at the top of the template and elsewhere in the template use {% cycle

Re: Cycle Tag Question

2008-04-06 Thread Kevin Monceaux
Django Fans, On Sat, 5 Apr 2008, Kevin Monceaux wrote: > When used inside a loop is there any way to have the cycle tag simply > cycle through the given strings/variables each time it's called regardless > of the loop index? > I tried placing a {% cycle 'Odd' 'Even' as rowcolor

Cycle Tag Question

2008-04-05 Thread Kevin Monceaux
Django Fans, When used inside a loop is there any way to have the cycle tag simply cycle through the given strings/variables each time it's called regardless of the loop index? The spot I need to use the cycle tag within my loop is inside an ifchanged block, so the cycle tag is not called on