question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem when using static file management with django + s3

See original GitHub issue

hello.

When doing staticfile management with django + s3 Django_summernote/templates/django_summernote/widget_iframe_editor.html : Problem with static tag in line 27.

27 $.getScript('{% static "django_summernote/lang/summernote-" %}' + settings.lang + '.min.js');

{% static “django_summernote/lang/summernote-” %} rendering => “https://{{s3-url}}/static/django_summernote/lang/summernote-” is not found error.

The file 'django_summernote/lang/summernote-' could not be found with <xx.s3ext.StaticS3BotoStorage object at xxxx>.

Due to this issue, we have temporarily created a “summernote-” file on s3.

any ideas? help me.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
larssincommented, Dec 18, 2016

I have a similar problem just with django.contrib.staticfiles.storage.CachedStaticFilesStorage. Manually adding a ‘django_summernote/lang/summernote-’ file to the collected static files solves the problem. Guess that the static template tag is supposed to check for the existence of the file?

I’m running Django 1.10.4 with the settings: ` settings.DEBUG = False

STATIC_URL = ‘/static/’

STATIC_ROOT = os.path.join(BASE_DIR, “static”)

STATICFILES_STORAGE = ‘django.contrib.staticfiles.storage.CachedStaticFilesStorage’ … `

0reactions
ffuentesecommented, Jul 28, 2018

Is this really fixed? I can’t deploy my app because of this problem (heroku) with latest pip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django unable to serve static files from s3 bucket
when I run manage.py collectstatic the static files are pushed to the bucket successfully, but when I access the Django admin the CSS...
Read more >
Using Amazon S3 to Store your Django Site's Static and ...
Storing your Django site's static and media files on Amazon S3, instead of serving them yourself, can make your site perform better.
Read more >
Serving Static Files in Python With Django, AWS S3 and ...
In this article, we take a look at how to serve static files using Django, including ing examples of serving static files locally...
Read more >
django and aws s3 (static files and media)
Hi, I have configured AWS S3 to store the static and media files but for some reason it is not working. when i...
Read more >
Storing Django Static and Media Files on Amazon S3
The STATICFILES_STORAGE setting configures Django to automatically add static files to the S3 bucket when the collectstatic command is run.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found