Skip to content

Commit

Permalink
STATIC_URL seems to be returning as None even when not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
tgecho committed Jan 19, 2011
1 parent e5deb3f commit 4632d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
DJANGO10_COMPAT = django.VERSION[0] < 1 or (django.VERSION[0] == 1 and django.VERSION[1] < 1)

STATIC_URL = getattr(settings, 'STATIC_URL', settings.MEDIA_URL)
if STATIC_URL == None:
STATIC_URL = settings.MEDIA_URL
MEDIA_PATH = getattr(settings, 'EDITOR_MEDIA_PATH', '%seditor/' % STATIC_URL)

0 comments on commit 4632d43

Please sign in to comment.