I have the following code in my wsgi.py:
path = '/home/adrop/Ablog' if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'Ablog.settings'
And I think it's working. Then I have all that related to static files in setting.py:
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'static'),
'/home/adrop/Ablog/static/', ]
MEDIA_ROOT = u'/home/adrop/Ablog/media' MEDIA_URL = '/media/'
STATIC_ROOT = u'/home/adrop/Ablog/static' STATIC_URL = '/static/'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', )
But it seems all the static files are not working.
And I also run the collectstatics command in bash, but it shows that nothing new to collect.
Could you please help me and take a look at this? Thank you very much