Skip to content
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

Use MEDIA_ROOT/URL for uploads #51

Open
winstliu opened this issue May 26, 2020 · 2 comments
Open

Use MEDIA_ROOT/URL for uploads #51

winstliu opened this issue May 26, 2020 · 2 comments

Comments

@winstliu
Copy link
Collaborator

Not STATIC_*.

This will ease local development so that we can have static files (CSS) served locally but media files (PDFs) served remotely.

https://docs.djangoproject.com/en/3.0/topics/files/

@verndrade
Copy link
Collaborator

there are other ways to make local easy. If the AWS keys are invalid html will render the static files you have locally, maybe try deleting the local API keys or adding a char or two

@winstliu
Copy link
Collaborator Author

My current workaround is to comment out STATICFILES_STORAGE and add STATIC_URL='/static/' instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants