Re: Setting APPEND_SLASH = False and PREPEND_WWW = True

2012-08-10 Thread JJ Zolper
Hello all, > > > > I am interested in making these two changes to Django: Setting > APPEND_SLASH > > = False and PREPEND_WWW = True. > > > > The following links describe what each of these do but do not tell me > > actually where these sett

Re: Setting APPEND_SLASH = False and PREPEND_WWW = True

2012-08-09 Thread Russell Keith-Magee
On Fri, Aug 10, 2012 at 10:41 AM, JJ Zolper wrote: > Hello all, > > I am interested in making these two changes to Django: Setting APPEND_SLASH > = False and PREPEND_WWW = True. > > The following links describe what each of these do but do not tell me > actually where the

Setting APPEND_SLASH = False and PREPEND_WWW = True

2012-08-09 Thread JJ Zolper
Hello all, I am interested in making these two changes to Django: Setting APPEND_SLASH = False and PREPEND_WWW = True. The following links describe what each of these do but do not tell me actually where these settings reside so that I can actually change them: http://djangobook.com/en/2.0

Testcases are not working with PREPEND_WWW

2011-09-20 Thread Felix Stiehler
Hello there, I am trying to use the Django way of testing, but it somehow does not work together with the PREPEND_WWW setting. All I get is the 301 status code and no redirect is followed even when follow=True. from django.test.client import Client c = Client() r = c.get('/users/login/

Re: PREPEND_WWW

2008-12-19 Thread jmat
jmat wrote: > > > I'm using 1.0 > > > Is the patch post 1.0 ?  I was having a tough time figuring out if > > that patch was post 1.0 or not on the ticket (I'm probably blind ;) > > > APPEND_SLASH is not modified (so it is default True) > > > I c

Re: PREPEND_WWW

2008-12-15 Thread Craig Kimerer
(I'm probably blind ;) > > APPEND_SLASH is not modified (so it is default True) > > I changed PREPEND_WWW to True but it did not seem to have any > effect... > > I can try the patch if it is a post 1.0 ... haven't had time to go > chase into the django code to com

Re: PREPEND_WWW

2008-12-15 Thread jmat
I'm using 1.0 Is the patch post 1.0 ? I was having a tough time figuring out if that patch was post 1.0 or not on the ticket (I'm probably blind ;) APPEND_SLASH is not modified (so it is default True) I changed PREPEND_WWW to True but it did not seem to have any effect... I can try

Re: PREPEND_WWW

2008-12-15 Thread Craig Kimerer
Which version of Django are you using? Do you also have APPEND_SLASH set to true? There was a ticket about this a while back that was fixed ( http://code.djangoproject.com/ticket/9199). Hope that helps. Craig On Mon, Dec 15, 2008 at 11:23 AM, jmat wrote: > > Just curious, has anyone else eve

Re: PREPEND_WWW

2008-12-15 Thread jmat
Ok, thanks, I was curious if we use a .htaccess file to do the re- writing with django, does the file live in the webroot or in the django application root? On Dec 15, 12:41 pm, Ross wrote: > @jmat I have never tried Django's PREPEND_WWW, but it can easily be > handled by Apache.

Re: PREPEND_WWW

2008-12-15 Thread Ross
@jmat I have never tried Django's PREPEND_WWW, but it can easily be handled by Apache. Some of the features involving URLs, paths, etc. are possibly better left to Apache. Apache has a rewrite guide that has all the information you should need. I found a good link a while ago with exactly

Re: PREPEND_WWW

2008-12-15 Thread jmat
Just curious, has anyone else ever set this to true and not had it work? On Dec 14, 4:05 pm, jmat wrote: > I set this to true in my settings file but It doesn't seem to be > getting picked up. > > Does this still have issues with some middleware or am I seeing some > kind of settings reload or c

PREPEND_WWW

2008-12-14 Thread jmat
I set this to true in my settings file but It doesn't seem to be getting picked up. Does this still have issues with some middleware or am I seeing some kind of settings reload or cache issue? --~--~-~--~~~---~--~~ You received this message because you are subscrib

Unit Tests & PREPEND_WWW

2008-04-07 Thread davenaff
I've been having problems with unit tests that check the response status codes of various pages. When PREPEND_WWW is set to True (as in test and prod), the Django test client returns a status code of 301 instead of 200 for any requested url (as dev is set up). Has anyone figured out a sol