djangosnippets.org: Latest snippets tagged with 'symlink'https://djangosnippets.org/tags/symlink/2008-09-19T12:57:05.775553-05:00Link Media Command
2008-09-19T12:57:05.775553-05:00elwaywitvachttps://djangosnippets.org/snippets/1066/<p>A command for manage.py which scans through installed applications the way admin.autodiscover does, just looking for media folders. It then creates a symbolic link to the media under MEDIA_ROOT/app_name.</p>
<p>Usage: save in an apps management/commands folder and run with "python manage.py linkmedia"</p>
<p>Only works on *nix systems, but there should …</p>
Freely redistributable