tags:

views:

49

answers:

1

Maybe this is a stupid question.

In php application I used to insert properly htaccess in home directory that redirect from example.com at www.example.com.

But with django how I have to do ?

+3  A: 

See this SO question.

Also a quote from Django documentation:

PREPEND_WWW Default: False

Whether to prepend the "www." subdomain to URLs that don't have it. This is only used if CommonMiddleware is installed (see Middleware). See also APPEND_SLASH.

rebus