First time here? Check out the FAQ!
0

How to host static files on a subdomain?
 

I want to offload all static files (css, js, images) to a separate subdomain. Please let me know the procedure to follow.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
naavi's avatar
185
naavi
asked 12 years ago

Comments

see more comments

1 Answer

0

You can do this by changing the STATIC_URL value, more information here

URL to use when referring to static files located in STATIC_ROOT.

Example: "/site_media/static/" or "http://static.example.com/"

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Fitoria's avatar
1.1k
Fitoria
answered 12 years ago
link

Comments

see more comments