0

I recently installed Django-1.4. While the display of admin page on Django serveris as expected, the display on apache seems to be surprising. Apache is only displaying text on web page why?

Thanks in advance.

diegueus9
  • 29,351
  • 16
  • 62
  • 74
Sudip
  • 523
  • 2
  • 7
  • 14

2 Answers2

0

Admin statics are automatically served on devserver only. On production, follow The doc. ADMIN_MEDIA_PREFIX has been deprecated in Django 1.4, use STATIC_ROOT instead.

okm
  • 23,575
  • 5
  • 83
  • 90
  • thanks.. i have read it and tried creating symlink in my apache root directory.. bt it didnt worked :-( – Sudip Apr 06 '12 at 13:01
  • then please update your question, what's your config and the output of Apache. As dm03514 suggests, just find out the 404-links and make sure Apache could find corresponding files and serve them correctly – okm Apr 06 '12 at 13:33
0

I would try and set up an alias to the media files. For me this is a little cleaner and more explicit than a symlink.

dm03514
  • 54,664
  • 18
  • 108
  • 145