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 ?
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.