Files
2012-02-21 01:15:00 -05:00

1 line
3.9 KiB
JSON

[{"user_id": 9153, "stars": [], "topic_id": 43182, "date_created": 1312314708.0326569, "message": "I looked through the docs but I can't seem to find information on what these two settings should be set too. On self hosted deployments it's a no brainer. What are these two directories on ep.io?", "group_id": 2873, "id": 1778733}, {"user_id": 9153, "stars": [], "topic_id": 43182, "date_created": 1312319556.7557249, "message": "I suppose running `python manage.py collectstatic` before-hand shouldn't be an issue.", "group_id": 2873, "id": 1779334}, {"user_id": 38656, "stars": [], "topic_id": 43182, "date_created": 1312318537.923526, "message": "Its up to you :-) If its any help, I store my static files in with my app. under static/\nI store my media files in EPIO_DATA_DIRECTORY (environment variable of path to a writeable file system)\nMEDIA_ROOT = os.path.join(os.getenv('EPIO_DATA_DIRECTORY',PROJECT_DIR), 'media')\nSTATIC_ROOT = os.path.join(PROJECT_DIR, 'static/')", "group_id": 2873, "id": 1779223}, {"user_id": 9153, "stars": [], "topic_id": 43182, "date_created": 1312318786.3285871, "message": "Thanks! This most def does help. I was under the impression that the project root once uploaded was was read-only.", "group_id": 2873, "id": 1779236}, {"user_id": 38656, "stars": [], "topic_id": 43182, "date_created": 1312319177.2030129, "message": "The project root is ready-only. But there is ../data (EPIO_DATA_DIRECTORY) which is writeable :-)\nI have no need to write to my static directory post upload, so keep it in the read-only storage. Media is another case though!", "group_id": 2873, "id": 1779289}, {"user_id": 8740, "stars": [], "topic_id": 43182, "date_created": 1312322362.0488989, "message": "@glenbot yes, collectstatic can be done beforehand", "group_id": 2873, "id": 1779629}, {"user_id": 8740, "stars": [], "topic_id": 43182, "date_created": 1312322440.5865791, "message": "and, as dangerfield said, there's a writable directory (docs here: https://www.ep.io/docs/runtime/#filesystem)", "group_id": 2873, "id": 1779643}, {"user_id": 9153, "stars": [], "topic_id": 43182, "date_created": 1312323822.978384, "message": "thanks for the help", "group_id": 2873, "id": 1779753}, {"user_id": 41617, "stars": [], "topic_id": 43182, "date_created": 1317221003.393779, "message": "dnagerfields method is working for me, i see the files in the ../data directory, however when I try to view them in my browser I get a 404. im using \"import settings\" and \"(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),\" in my urls.py which works fine in development but not on ep.io. in my production_settings.py i have \"MEDIA_ROOT = os.getenv('EPIO_DATA_DIRECTORY')\" and i have \"MEDIA_URL = '/media/'\" in my settings.py only. any ideas? thanks.", "group_id": 2873, "id": 2232786}, {"user_id": 8740, "stars": [], "topic_id": 43182, "date_created": 1317254084.360213, "message": "@tomvon the static.serve view isn't suitable for development; add a section in epio.ini with [static] /media = ../data/", "group_id": 2873, "id": 2237178}, {"user_id": 42481, "stars": [], "topic_id": 43182, "date_created": 1319081000.2738481, "message": "This not works for me", "group_id": 2873, "id": 2389696}, {"user_id": 14492, "stars": [], "topic_id": 43182, "date_created": 1322790042.028873, "message": "Could you guys give some more detailed noob-friendly explanations?", "group_id": 2873, "id": 2681306}, {"user_id": 14492, "stars": [], "topic_id": 43182, "date_created": 1322790020.9443891, "message": "I have an app that is suposed to allow image uploads (I used this tutorial with some changes: http://www.lightbird.net/dbe/photo.html).\nI uploaded my app and everything seems ok except when I try to upload an image. I understood that is because django is trying to upload to a read-only directory. What I couldn't understand was the proposed solution (yes, noob here).", "group_id": 2873, "id": 2681304}]