Re: append_slash alternative: remove_slash

2009-06-18 Thread donquixote
On 16 Jun., 15:05, Luke Plant wrote: > On Sunday 14 June 2009 06:12:32 donquixote wrote: > > > Nice (i): > >http://mysite.org/members/emil > >http://mysite.org/members/emil/contact > > > Not nice (ii): > >http://mysite.org/members/emil/ > >http://mysite.org/members/emil/contact/ > > You have so

Re: append_slash alternative: remove_slash

2009-06-18 Thread Ulrich Petri
Am 18.06.2009 um 14:35 schrieb Luke Plant: > > On Thursday 18 June 2009 01:03:15 Waylan Limberg wrote: > >> And that's really what this whole discussion is all about - >> making the developer who chooses the url scheme feel good about it. >> The fact is, whether the url I'm told over the phone s

Re: append_slash alternative: remove_slash

2009-06-18 Thread Luke Plant
On Thursday 18 June 2009 01:03:15 Waylan Limberg wrote: > And that's really what this whole discussion is all about - > making the developer who chooses the url scheme feel good about it. > The fact is, whether the url I'm told over the phone should have a > slash at the end or not doesn't matter

Re: append_slash alternative: remove_slash

2009-06-18 Thread Nick Phillips
Graham Dumpleton wrote: > I was only commenting in relation to how Apache works and the > conjecture that: > > Yep, I assumed so - just wanted to make sure that nobody read it in a more general way. > Take it as you will as being irrelevant to the main conversation about > Django itself, but

Re: append_slash alternative: remove_slash

2009-06-17 Thread Graham Dumpleton
On Jun 18, 12:24 pm, Nick Phillips wrote: > Graham Dumpleton wrote: > >>> It's better to see it this way: Every page is an individual piece of > >>> content for itself, and still every page can have subpages. > > >>> A directory, on the other hand, can have subpages, but is not that > >>> inter

Re: append_slash alternative: remove_slash

2009-06-17 Thread Nick Phillips
Graham Dumpleton wrote: >>> It's better to see it this way: Every page is an individual piece of >>> content for itself, and still every page can have subpages. >>> >>> A directory, on the other hand, can have subpages, but is not that >>> interesting for itself. Which we don't want to hap

Re: append_slash alternative: remove_slash

2009-06-17 Thread Graham Dumpleton
On Jun 18, 10:03 am, Waylan Limberg wrote: > On Wed, Jun 17, 2009 at 6:19 PM, donquixote wrote: > > > On 17 Jun., 03:14, Graham Dumpleton > > wrote: > >> On Jun 17, 10:04 am, donquixote wrote: > > >> > I would still be interested to read some arguments in favour of the > >> > trailing slash.

Re: append_slash alternative: remove_slash

2009-06-17 Thread Waylan Limberg
On Wed, Jun 17, 2009 at 6:19 PM, donquixote wrote: > > On 17 Jun., 03:14, Graham Dumpleton > wrote: >> On Jun 17, 10:04 am, donquixote wrote: >> >> > I would still be interested to read some arguments in favour of the >> > trailing slash. From a user perspective, it seems that without is >> > be

Re: append_slash alternative: remove_slash

2009-06-17 Thread donquixote
On 17 Jun., 03:14, Graham Dumpleton wrote: > On Jun 17, 10:04 am, donquixote wrote: > > > I would still be interested to read some arguments in favour of the > > trailing slash. From a user perspective, it seems that without is > > better. > > The big issue with trailing slash, is that you shoul

Re: append_slash alternative: remove_slash

2009-06-17 Thread donquixote
I think the multiple slashes are a quite theoretical problem. - The server might remove them anyway - People will know that this is a typo. The only reason why I talked about multiple slashes was for the sake of completeness: If we discuss a remove_slash solution, then why not clean up the comple

Re: append_slash alternative: remove_slash

2009-06-17 Thread Justin Myers
On Jun 16, 6:07 pm, Graham Dumpleton wrote: > On Jun 16, 10:55 pm, Justin Myers wrote: > > Which hopefully will bring us back on topic: Regardless of our > > individual feelings on the trailing-slash holy war here, Patrick said > > it best--let's have a way to get rid of the URLs we agree are ba

Re: append_slash alternative: remove_slash

2009-06-16 Thread M. N. Islam Shihan
Thanks for pointing me to the bikeshed. It is an excellent topic that I wasn't aware of. Anyway, I'm still not understanding how this topic relates to my reply. On Jun 17, 2009, at 6:25 AM, Russell Keith-Magee wrote: > > On Wed, Jun 17, 2009 at 5:02 AM, M. N. Islam > Shihan wrote: >> >>

Re: append_slash alternative: remove_slash

2009-06-16 Thread donquixote
You are right! I always had assumed the browser would understand these relative urls no matter if slash or not. I made a test, and it turns out I was wrong. A lot of websites out there either don't use relative urls, or they use a tag etc. Others (such as wikipedia) make their URLs relative to w

Re: append_slash alternative: remove_slash

2009-06-16 Thread Graham Dumpleton
On Jun 17, 10:04 am, donquixote wrote: > I would still be interested to read some arguments in favour of the > trailing slash. From a user perspective, it seems that without is > better. The big issue with trailing slash, is that you should use a trailing slash on a URL which represents an int

Re: append_slash alternative: remove_slash

2009-06-16 Thread Russell Keith-Magee
On Wed, Jun 17, 2009 at 5:02 AM, M. N. Islam Shihan wrote: > > On Jun 17, 2009, at 2:27 AM, Hanne Moa wrote: >> >> And I want the bikeshed to be painted blue with yellow stars on. > > ??? For an explanation, see http://www.bikeshed.com/ For extra amusement, reload the page a few times :-) Your

Re: append_slash alternative: remove_slash

2009-06-16 Thread donquixote
I would still be interested to read some arguments in favour of the trailing slash. From a user perspective, it seems that without is better. But of course, I don't want to take away anyone's APPEND_SLASH setting. For an existing system, I think it's the best to keep the slashes. Pleas

Re: append_slash alternative: remove_slash

2009-06-16 Thread Graham Dumpleton
On Jun 16, 10:55 pm, Justin Myers wrote: > On Jun 16, 3:49 am, Ivan Sagalaev wrote: > > > Indeed I don't really want to discuss the proposal itself (I don't > > really care of the outcome since you don't propose to remove > > APPEND_SLASH altogether). I was just trying to show that bashing som

Re: append_slash alternative: remove_slash

2009-06-16 Thread M. N. Islam Shihan
??? On Jun 17, 2009, at 2:27 AM, Hanne Moa wrote: > > On Tue, Jun 16, 2009 at 22:08, M. N. Islam > Shihan wrote: >> I think another toggle flag ENABLE_REMOVE_SLASH_MODE (or any other >> appropriate name) can be added to the settings.py and setting that >> tlag to true will alter the existing

Re: append_slash alternative: remove_slash

2009-06-16 Thread Hanne Moa
On Tue, Jun 16, 2009 at 22:08, M. N. Islam Shihan wrote: > I think another toggle flag ENABLE_REMOVE_SLASH_MODE (or any other > appropriate name) can be added to the settings.py and setting that > tlag to true will alter the existing APPEND_SLASH flag to be treated > as prposed REMOVE_SLASH settin

Re: append_slash alternative: remove_slash

2009-06-16 Thread M. N. Islam Shihan
I think another toggle flag ENABLE_REMOVE_SLASH_MODE (or any other appropriate name) can be added to the settings.py and setting that tlag to true will alter the existing APPEND_SLASH flag to be treated as prposed REMOVE_SLASH setting and act accordingly. In this way the existing APPEND_S

Re: append_slash alternative: remove_slash

2009-06-16 Thread Luke Plant
On Sunday 14 June 2009 06:12:32 donquixote wrote: > Nice (i): > http://mysite.org/members/emil > http://mysite.org/members/emil/contact > > Not nice (ii): > http://mysite.org/members/emil/ > http://mysite.org/members/emil/contact/ You have some problems: 1) All contrib apps, and many others, pu

Re: append_slash alternative: remove_slash

2009-06-16 Thread Adys
I have never messed with this part of Django but I'm up for a try; by the end of this month I'll have some time off to work on it if no one else is able to. Feel free to file a ticket. On Jun 16, 3:55 pm, Justin Myers wrote: > On Jun 16, 3:49 am, Ivan Sagalaev wrote: > > > Indeed I don't really

Re: append_slash alternative: remove_slash

2009-06-16 Thread Justin Myers
On Jun 16, 3:49 am, Ivan Sagalaev wrote: > Indeed I don't really want to discuss the proposal itself (I don't > really care of the outcome since you don't propose to remove > APPEND_SLASH altogether). I was just trying to show that bashing some > people's preference doesn't help in making a point

Re: append_slash alternative: remove_slash

2009-06-16 Thread Ivan Sagalaev
Adys wrote: > And please don't speak "on behalf" of other Django developers. I don't. It's a simple matter of fact that APPEND_SLASH defaults to True and CommonMiddleware is installed be default and djangoproject.com uses trailing slash and first four sites from http://djangosites.org/ also do

Re: append_slash alternative: remove_slash

2009-06-16 Thread Adys
On Jun 16, 11:27 am, Ivan Sagalaev wrote: > Sorry for interrupting your lively conversation gentlemen... If you > allow me to give an advice then your proposal will look better without > constantly referring to one trailing slash with disparaging adjectives > (such as "unclean"). Most of Django

Re: append_slash alternative: remove_slash

2009-06-16 Thread Ivan Sagalaev
Adys wrote: > Clean: > http://example.com/foo/bar > > Unclean > http://example.com/foo/bar/ > http://example.com/foo///bar > http://example.com///foo//bar/// Sorry for interrupting your lively conversation gentlemen... If you allow me to give an advice then your proposal will look better wi

Re: append_slash alternative: remove_slash

2009-06-15 Thread Patrick Taylor
On 15-Jun-09, at 6:50 PM, donquixote wrote: > > @Adys: > As I understand, Justin's "remove all slashes" was just a hypothetical > example. > > @Justin: > I agree that it's not about avoiding an illusion. It's just ugly and > unhandy, that's it. And yes, most non-django systems out there that I >

Re: append_slash alternative: remove_slash

2009-06-15 Thread donquixote
@Adys: As I understand, Justin's "remove all slashes" was just a hypothetical example. @Justin: I agree that it's not about avoiding an illusion. It's just ugly and unhandy, that's it. And yes, most non-django systems out there that I can think of do either have crappy old school urls, or nice on

Re: append_slash alternative: remove_slash

2009-06-15 Thread Adys
Are you sure you understood the original proposal? No one here wants to remove all slashes! Just "cleanup" the url: Clean: http://example.com/foo/bar Unclean http://example.com/foo/bar/ http://example.com/foo///bar http://example.com///foo//bar/// The last two would be a more aggressive sett

Re: append_slash alternative: remove_slash

2009-06-15 Thread Justin Myers
I can appreciate the need for this setting (among other things, it might make migrating URLs from systems where this is more standard (e.g., Drupal) simpler), but I wouldn't go so far as to talk about an "illusion". Unless we're proposing to remove all slashes from all URLs--which is certainly po

Re: append_slash alternative: remove_slash

2009-06-13 Thread M. N. Islam Shihan
+1 I also like the remove_slash version of urls over the append_slash version as the trailing slash creates a directory structure illusion which is not true. Cheers Shihan On Jun 14, 2009, at 11:12 AM, donquixote wrote: > > Ok, I know similar questions have been asked about the trailing

Re: append_slash alternative: remove_slash

2009-06-13 Thread Adys
I've been looking for this, as an user. I can only agree with the proposal. I think a single setting would be less confusing though: TRAILING_SLASH = ("append", "remove", "remove_last", "full_clean") for the different methods you described. Or maybe that's just overdoing it... For backwards-compat

append_slash alternative: remove_slash

2009-06-13 Thread donquixote
Ok, I know similar questions have been asked about the trailing slash before. See http://groups.google.com/group/django-developers/browse_thread/thread/78f370da90a5a268/6e95edb134564009?lnk=gst&q=append_slash My proposal is a little different: - I agree there should be only one url for each page.