python - Django doesn't load static files from S3 -


i made run 'python manage.py collectstatic' upload staticfiles s3 bucket.

but after running 'sudo service apache2 restart', page doesn't load staticfiles although s3 bucket has 'static' directory including static files.

how can solve problem?

i include static files below :

{% load compress %} {% load static staticfiles %} {% compress css %} <link rel="stylesheet type="text/css" href ="{% static 'bower_components/.../bootstrap.css' % /} ... {% endcompress %} 

my settings.py below:

static_url = s3_url + '/static/' # path of static directory included in s3 bucket  static_root = static_url  staticfiles_dirs = (     os.path.join(base_dir, 'static/'), ) 

is there i'm missing now?


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -