django-photologue | Powerful image management for the Django web framework | REST library
kandi X-RAY | django-photologue Summary
kandi X-RAY | django-photologue Summary
Powerful image management for the Django web framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Colorpace an image
- Check if an image is transparent
- Apply a watermark to an image
- Reduces opacity
- Creates a test image
- Handles the request
- Create image size
django-photologue Key Features
django-photologue Examples and Code Snippets
Community Discussions
Trending Discussions on django-photologue
QUESTION
I have setup django-photologue, and I am trying to get it to load the default templates. I can get the HTML file loaded, but it won't load any of the CSS (mainly just bootstrap)
When accessing photologue, I get the following error on the console:
...ANSWER
Answered 2018-Aug-24 at 17:04The issue here is that your server is looking for your css file here:
/photologue/gallery/css/bootstrap.min.css
Where it doesn't actually exist, hence the 404 error (file/page not found). If you're using the base Django instructions for setting up a project, it is highly likely that your static files are found here:
/static/css/bootstrap.min.css
.
Please make sure you have the following in your settings.py
file:
QUESTION
Problem:
Enabling DEFAULT_FILE_STORAGE
in settings.py creates TypeError:
Unicode-objects must be encoded before hashing
(logs below)
DEFAULT_FILE_STORAGE = ''
creates TypeErrorDEFAULT_FILE_STORAGE = 'app.aws.utils.MediaRootS3Boto3Storage'
creates TypeError
What am I doing?
- I'm trying to set up S3 storage for static & media files.
- I'm specifically trying to enable photologue storage in the /media/ folder in my AWS bucket.
What's working?
- If I comment out
#DEFAULT_FILE_STORAGE = 'app.aws.utils.MediaRootS3Boto3Storage'
in settings.py - I can run
python manage.py collectstatic
and all my static files are successfully uploaded to the /static/ folder on aws - Static assets are working
- Media assets are working properly locally
What's breaking?
DEFAULT_FILE_STORAGE
set to any value creates this error message.
Logs:
...ANSWER
Answered 2018-Mar-09 at 06:01OK, so I see the second article suggests using that setting for DEFAULT_FILE_STORAGE, but it looks a bit unusual to me.
Referencing http://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html, you would use:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-photologue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page