Such a clean cut and knowledgeable answer.

10/10 thanks so much Russell!

I'll make sure to add both to my settings file.

Cheers,

JJ

On Thursday, August 9, 2012 10:50:26 PM UTC-4, Russell Keith-Magee wrote:
>
> On Fri, Aug 10, 2012 at 10:41 AM, JJ Zolper <codin...@gmail.com<javascript:>> 
> 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 these settings reside so that I can actually change them: 
> > 
> > http://djangobook.com/en/2.0/chapter17/ 
> > http://django-book.readthedocs.org/en/latest/appendixD.html 
> > 
> https://docs.djangoproject.com/en/dev/ref/middleware/#django.middleware.common.CommonMiddleware
>  
> > 
> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-APPEND_SLASH 
> > 
> > I did not see them in my settings.py file where I expected them and I 
> don't 
> > want to go through my Django source trying to helplessly find it. 
>
> When you generate your project, Django generates a sample settings.py 
> that contains the settings you're most likely going to need to 
> override -- things that involve paths, the list of apps you want to 
> install, and so on. 
>
> There are *many* other settings that can form part of a Django project 
> -- they're all documented at the last link you provided. You can put 
> any of these settings in your own settings.py file. If you don't 
> provide them, the default value is used; if you do, your value is 
> used. 
>
> If you want, you can even invent your own settings for your own app. 
> This might be handy for storing things like authentication keys for 
> third-party services. 
>
> So - just put: 
>
> APPEND_SLASH = False 
> PREPEND_WWW = True 
>
> in your project's settings.py file, and you'll be off and running. 
>
> Yours, 
> Russ Magee %-) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/b6cIZXxcKdEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to