Re: Detect SSL/HTTPS

2006-05-05 Thread Steven Armstrong
On 05/05/06 20:06, Jakub Labath wrote: > Hi Steven, > > Thanks but I don't seem to have the 'wsgi.url_scheme' available in my > request.META could it be becuase I'm using apache and mod_python? > Hi Yea, after having another look, it seems that's only available while running the dev server. M

Re: Detect SSL/HTTPS

2006-05-05 Thread Steven Armstrong
On 05/05/06 19:33, Jakub Labath wrote: > Hi, > > I eventually solved my problem by modifying django/core/handlers/modpython.py > so that request.META would contain a key HTTPS. > > --- core/handlers/modpython.py (revision 2299) > +++ core/handlers/modpython.py (working copy) > @@ -86,6 +86,8 @

Re: +1 on part of #1810 (put parse_dsn() in django.conf)

2006-05-11 Thread Steven Armstrong
On 05/11/06 17:02, [EMAIL PROTECTED] wrote: Regarding the dsn stuff i don't really care. Since the config file itself is python I can do in there whatever I like. So +0 on that. For putting the dsn in the env I'm -1 as it may cause security problems. IMHO the only place where such config as a

Re: multi-auth branch... time to merge?

2006-05-30 Thread Steven Armstrong
On 05/30/06 20:33, Joseph Kocherhans wrote: > Has anyone tested out the multi-auth branch yet? I haven't heard > anything, so either people aren't using it, or it's working well and > the docs are good enough. Personally, I've been using it with both > external SQL and LDAP backends for over a mon

Must app names in django be unique?

2006-06-04 Thread Steven Armstrong
Hi, It seems that app names in django must be unique or weird things happen. Is that correct? I have a project called 'phc', in which I have an app called 'auth'. In this app there is a module named 'UserProfile'. So my installed apps looks like this: INSTALLED_APPS = ( 'django.contrib.a

Re: Must app names in django be unique?

2006-06-04 Thread Steven Armstrong
On 06/04/06 14:00, Steven Armstrong wrote: > Hi, > > It seems that app names in django must be unique or weird things happen. > Is that correct? > Just found this [1], so sorry for the noise. I searched through the tickets, but forgot to check the mailing list archi

Re: Solving the POST-data-lost-after-redirect problem

2006-06-07 Thread Steven Armstrong
On 06/07/06 05:11, Adrian Holovaty wrote: > http://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOSTdata > > It's about time to solve this one. Who has a creative, elegant solution? :-) > > Some ideas, just to start discussion -- > > * THROW ERROR ON POST: The CommonMiddleware, wh

Any news from the django dojo front?

2006-06-14 Thread Steven Armstrong
Hi all Have been playing around with dojo lately and started building widgets to use in my django apps. Must say - although docs are sparse - dojo is one helluva framework :) While googling for input I came across ticket #13 and now I'm wondering how much of those ideas and super sexy mockups

Re: ManyToManyField looks broken

2006-06-26 Thread Steven Armstrong
On 06/25/06 16:58, Malcolm Tredinnick wrote: > On Sun, 2006-06-25 at 22:39 +0800, Russell Keith-Magee wrote: >> On 6/25/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: >> > >> > I'd like to draw some attention to ticket >> > http://code.djangoproject.com/ticket/2232 (mainly russelm's attention as >>

Re: Default escaping -- again!

2006-07-28 Thread Steven Armstrong
On 07/28/06 15:34, Ahmad Alhashemi wrote: > > Bill de hÓra wrote: >> Scope it per template: >> >> {% extends "base_generic.html" %} >> {% escape %} >> >> This lets people who want auto-escaping, have it, without typing in >> "|escape" everywhere or screwing things up site wide with globals. > >

Re: modularity of apps

2006-07-29 Thread Steven Armstrong
Assuming that the reverse url mappings is taken care of I see two things one may want to define per app. configuration and dependencies There are usually two kinds of configuration settings an app may need. Required ones that the user must set for the app to work, and optional ones for which s

Re: Strip Whitespace Middleware

2006-08-02 Thread Steven Armstrong
On 08/02/06 09:09, Malcolm Tredinnick wrote: [...] > My motivation here was having to debug an email generation template > yesterday that was like a train wreck with all the template tags jammed > together to avoid spurious blank lines. It's going to be a few more days > before I can work on this

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread Steven Armstrong
On 08/07/06 18:39, limodou wrote: > On 8/8/06, Michael Radziej <[EMAIL PROTECTED]> wrote: >> >> limodou wrote: >> > On 8/7/06, Kevin Menard <[EMAIL PROTECTED]> wrote: >> >> On 8/7/06, Joe <[EMAIL PROTECTED]> wrote: >> >>> Wouldn't you want to put your database settings (Username and password) >> >

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread Steven Armstrong
On 08/07/06 19:27, limodou wrote: > On 8/8/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: >> >> On 08/07/06 18:39, limodou wrote: >> > On 8/8/06, Michael Radziej <[EMAIL PROTECTED]> wrote: >> >> >> >> limodou wrote: >> >>

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread Steven Armstrong
On 08/07/06 20:35, Michael Radziej wrote: > Steven Armstrong wrote: > >> Why not just create a second settings file, call it settings_local.py or >> whatever, and at the end of settings.py do something like: >> >> from settings_local import * > > Well (ap

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-08 Thread Steven Armstrong
On 08/08/06 02:46, Malcolm Tredinnick wrote: > On Mon, 2006-08-07 at 14:22 -0400, Kevin Menard wrote: >> On 8/7/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: >> >> > We don't need a default solution for this. It's not within the scope >> > of this project to tell people how they should organize

Thoughts on extensibility of the admin app

2006-08-10 Thread Steven Armstrong
Hi all I'm just thinking out loud here. Don't know if something like this is even wanted in django land. I've been playing around with trac lately and am rather fond of their light weight component architecture [1]. I was wondering if an approach like this may be a good idea for the django a

Re: Can I respond to table cell mouse clicks without using JavaScript?

2006-10-01 Thread Steven Armstrong
On 10/01/06 16:22, carlwenrich wrote: > I've done this with JavaScript, but I'd like to stay with Django/Python > if possible. > No. As this happens on the client JavaScript is your only option. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread Steven Armstrong
On 10/16/06 20:13, DavidA wrote: > Hi, > > I noticed an inconsistency between the request META information in the > modpython handler versus the base handler. > > I'm opening the URL http://web/data/pos/ which goes through two URL > conf's: > > The default urls.py for the application: > (r'

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread Steven Armstrong
On 10/16/06 20:27, DavidA wrote: > > Steven Armstrong wrote: >> Have you got a folder/file named 'data' in your apaches document root? >> If so, try nuking or renaming it. > > No. And no virtual directories or aliases named 'data' either, nor a > f

Re: Developer documentation?

2007-02-08 Thread Steven Armstrong
Rob Hudson wrote: > I'd like to see more inline documentation of the code. Some .py files > have this but some don't. Just an overview of what the file does, how > things are organized, maybe some concrete examples via doctests. > Something for the average python programmer to get a toehold into

Re: Getting started in Django development.

2007-02-12 Thread Steven Armstrong
zbelzer wrote: > Hi all. > > I've been learning about and working with Django for a little while > now and I have decided that I would like to help contribute to the > project and community. I'm decent with python, but I still find that > looking through the entire code base is pretty intimidatin

Re: i18n branch has been merged to trunk

2005-11-04 Thread Steven Armstrong
On 11/04/05 06:13, Jacob Kaplan-Moss wrote: Howdy -- I've merged the i18n branch into the trunk; major thanks are due to hugo! I'm running it live on all the LJW sites and it works fine, but there could be some lurking issues, so caveat programmer. Adrian will have a blog post on the ma

Re: i18n for JavaScript

2005-11-28 Thread Steven Armstrong
On 11/28/05 18:25, hugo wrote: My first instinct in this sort of case is to find out what others are doing, i.e. Dojo folks, RoR, TG, etc. That's what I did. Zilch. Nada. Zero. Nothing. Seems nobody ever cared about a proper solution to JavaScript and i18n. What they do are hacks, if they do s

Re: Django Ajax Redux

2005-12-10 Thread Steven Armstrong
On 12/10/05 21:45, Eugene Lazutkin wrote: Inline. "Robert Wittams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I had a look at dojo before and these were the questions that popped up in my mind: Dojo seems to rely on adding its own unnamespaced attributes to normal elements.

Re: Django Ajax Redux

2005-12-12 Thread Steven Armstrong
On 12/12/05 01:15, Lachlan Cannon wrote: Using classes it's not clear if it's there to style an element or to pass params to some js widget or whatever. When using custom attrs it's much clearer what's going on. I couldn't disagree more. :) class is there to 'subclass' elements. The W3C them

Re: GvR prefers Django Template over Cheetah And Modularised Django

2006-01-31 Thread Steven Armstrong
On 01/31/06 22:25, Ian Holsman wrote: are you proposing a standard interface to templating languages in python ala WSGI but for templates? There's currently a discussion about just that on the python web-sig mailing list. http://mail.python.org/pipermail/web-sig/2006-January/thread.html#1

syncdb inital sql data

2006-03-03 Thread Steven Armstrong
Hi django devs In a app I'm currently building I rely on the 'sqlinitialdata' feature. I've recently switched to the magical-removal branch where this is not yet implemented. I've opened a ticket #1438 [1] and sent a patch that implements it. It currently just fetches .sql files from the app/s

Re: syncdb inital sql data

2006-03-03 Thread Steven Armstrong
On 03/04/06 01:34, Russell Keith-Magee wrote: > On 3/4/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: >> >> Hi django devs >> >> In a app I'm currently building I rely on the 'sqlinitialdata' feature. >> I've recently switched to the

Re: Solved: DNS for *.djangoproject.com broken

2008-07-22 Thread Steven Armstrong
Ludvig Ericson wrote on 07/22/08 22:45: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Jul 22, 2008, at 16:40, Jeremy Dunck wrote: >> In general, expect DNS hiccups for a while; the whole world is >> patching right now. > > Off-topic, yes, but I have to ask, what do you mean? Guess he

Re: MEDIA_URL template tag/context processor/etc again

2007-05-29 Thread Steven Armstrong
Simon G. wrote on 04/25/07 13:33: > Evening all, > > There's been a long history of people asking for some way of easily > using the MEDIA_URL setting in templates. At a quick glance, I get > #1278, #3818, #2532, and #4105. > > These have all been marked wontfix, and I closed this last one to >

validators as Meta attribute in ModelForms

2008-04-13 Thread Steven Armstrong
Hi I've made a small change to the ModelForm framework to allow declarative definition of validators. This allows for quick and easy reuse of validators and means I have to write less clean_foo methods. This works both in the admin as in custom views. What used to be written like this: clas

Re: validators as Meta attribute in ModelForms

2008-04-15 Thread Steven Armstrong
Honza Král wrote on 04/16/08 00:13: > Hi, > check out ticket #6845 ( http://code.djangoproject.com/ticket/6845 ). > It enables you to define validators on both DB Fields and FormFields > and should make your work much easier. > Hi Honza Found your ticket just after posting this :) Will keep an

Re: Rethinking silent failures in templates

2008-05-18 Thread Steven Armstrong
James Bennett wrote on 05/18/08 06:30: > On Wed, May 14, 2008 at 8:58 AM, Simon Willison <[EMAIL PROTECTED]> wrote: >> Silent errors are bad. If we were to remove them, how much of a >> negative impact would it have on the existing user base? > > The impression I get is that a lot of people rely