Ask Your Question
0

How do you configure MEDIA_ROOT and MEDIA_URL?

asked 2011-11-28 18:18:50 -0500

Joseph gravatar image Joseph
303 12 3 19

updated 2011-11-28 18:21:04 -0500

How do you configure MEDIA_ROOT and MEDIA_URL? This is mentioned in this answer and this doc, but no documentation is provided about how to actually set up these variables and configure your system appropriately. I tried googling and couldn't find anything.

Also, it seems like there is a setting ASKBOT_FILE_UPLOAD_DIR. Since avatars are user uploaded, can't they just be put in ASKBOT_FILE_UPLOAD_DIR, which makes configuration simpler?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-11-29 11:15:30 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

You can set MEDIA_ROOT and MEDIA_URL to the same values as ASKBOT_FILE_UPLOAD_DIR and ASKBOT_UPLOADED_FILES_URL (now noticing that settings are named inconsistently.

Django Avatar app wants to use MEDIA_ROOT and the MEDIA_URL. Maybe askbot should use the same and create a subdirectory within and comply with the django's convention better.

link publish delete flag offensive edit

Comments

Just added this info to the settings templates, I agree there was no good explanation anywhere.

Evgeny ( 2011-11-29 11:47:22 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-11-28 18:18:50 -0500

Seen: 81 times

Last updated: Nov 29 '11