Commit 0e39afa2 by muhammad-ammar

staticfiles changes

parent 52a01e65
...@@ -23,3 +23,10 @@ DJANGO_SECRET_KEY = return_dict['django_secret_key'] or 'test_secret_key' ...@@ -23,3 +23,10 @@ DJANGO_SECRET_KEY = return_dict['django_secret_key'] or 'test_secret_key'
DJANGO_ADMIN = ('', '') DJANGO_ADMIN = ('', '')
DJANGO_DEBUG = return_dict['debug'] if 'debug' in return_dict else False DJANGO_DEBUG = return_dict['debug'] if 'debug' in return_dict else False
DATABASES = return_dict['DATABASES'] DATABASES = return_dict['DATABASES']
STATIC_ROOT_PATH = return_dict.get(
'STATIC_ROOT_PATH',
os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
'static'
)
)
...@@ -44,8 +44,9 @@ USE_I18N = True ...@@ -44,8 +44,9 @@ USE_I18N = True
USE_L10N = True USE_L10N = True
USE_TZ = True USE_TZ = True
# Absolute filesystem path to the directory that will hold user-uploaded files. # Absolute filesystem path to the directory that will hold user-uploaded files.
STATIC_ROOT = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "static") STATIC_ROOT = STATIC_ROOT_PATH
STATIC_URL = '/static/' STATIC_URL = '/static/'
# Additional locations of static files # Additional locations of static files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment