0

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 ?

xRobot
  • 25,579
  • 69
  • 184
  • 304

1 Answers1

4

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.

Community
  • 1
  • 1
Davor Lucic
  • 28,970
  • 8
  • 66
  • 76