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

How to Get Django, Storages and Dropbox to work #265

Closed
dedayoa opened this issue Feb 5, 2017 · 5 comments
Closed

How to Get Django, Storages and Dropbox to work #265

dedayoa opened this issue Feb 5, 2017 · 5 comments
Labels

Comments

@dedayoa
Copy link

dedayoa commented Feb 5, 2017

Hello Guys,
Desperate fellow here. I've done the following, but the farthest I got was this error
dropbox.rest.ErrorResponse: [400] {'path': "Invalid path '/c:\\Users\\Dayo\\git2\\loudam\\static\\css\\animate.css': character at index 3: backslash not allowed"}

  1. Installed Storages
  2. Installed the python dropbox SDK
  3. Added storages to INSTALLED_APPS
  4. Configured my DROPBOX_OAUTH2_TOKEN to the Generated access token
  5. Configured DROPBOX_ROOT_PATH to 'static' - I really don't know what this should be

I then try to collecstatic, then I run into the error I earlier pasted.
My goal is actually to be able to upload to and serve media files from dropbox (for a site hosted on heroku)

Any help will be much appreciated.

@ZuluPro
Copy link
Contributor

ZuluPro commented Feb 9, 2017

Hello @dedayoa
Thanks for report this issue.

Could you give us the following things:

  • The traceback of the error
  • Your STATIC_ROOT

This error appears clearly Windows-related.

@jschneier
Copy link
Owner

This looks like a Windows issue

@jschneier
Copy link
Owner

Ah related to #137 and #138.

@dedayoa
Copy link
Author

dedayoa commented Mar 2, 2017

Hi @jschneier
Thanks for getting back. However, I moved to Amazon S3, seeing that dropbox will be killing the public folder on the 15th anyway.
I no longer have the configurations in place.
B.R

@jschneier
Copy link
Owner

@dedayoa thanks for the update. going to close this as a dupe of the above issues in that case.

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

No branches or pull requests

4 participants