Skip to content

Instantly share code, notes, and snippets.

@joaodubas
Created August 17, 2011 23:56
Show Gist options
  • Save joaodubas/1152959 to your computer and use it in GitHub Desktop.
Save joaodubas/1152959 to your computer and use it in GitHub Desktop.
eventex settings
import os
ROOT = os.path.dirname(os.path.abspath(__file__))
join_root = lambda *x: os.path.join(ROOT, *x)
MEDIA_ROOT = join_root('media', 'uploads')
MEDIA_URL = '/upload/'
STATIC_ROOT = join_root('media', 'assets')
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'
STATICFILES_DIRS = (
join_root('static'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment