-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WhiteNoise + Lambda + Zappa #164
Comments
I haven't used this myself, but I think that It should be possible to configure Zappa to do this automatically using the If you do get a working configuration it would be great if you could update this ticket with the details so I could add it to the documentation. |
Thank you @evansd . My findings until now:
I'm getting 403, to the following url
Am I missing something in configuration ? |
Is your Django app running on the root of the domain, or under the When running at the domain root everything works out of the box, but if you're running under a particular path you need to configure WHITENOISE_STATIC_PREFIX explicity e.g:
|
Works ! Where do you want me to add the instructions ? |
Great. Just add them to this ticket for now so at least they'll be easy to find later. Thanks. |
Using WhiteNoise, Zappa and Django
|
Did you try your config using the STATIC_HOST with cloudfront as CDN? |
Hello Guys,
We are using Zappa + Django in AWS Lambda. I really like the idea of using whitenoise, at least for serving our Django admin pages, it sounds to me like a simple solution that does not require a lot of configuration (like similar S3 solutions).
I followed the tutorial and tried the following with no avail:
Well makes sense, from what I know the only writeable directory is /tmp so I tried
When go to
my-site.com/admin
I'm getting 403 when trying to retrieve the resources which again makes sense.So what is the correct way to implement it ?
The text was updated successfully, but these errors were encountered: