Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

making sure that media on the development environment is not served from outside the environment. #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

twoolie
Copy link

@twoolie twoolie commented Aug 4, 2011

~ settings: use epio settings to set correct media paths; bring development media path inside app directory.
~ structure: auto create media, static and static_root using stub .gitignores
~ fabfile: use --noinput on collectstatic to remove prompt
~ fabfile: use file to make sure fabfile can be called from anywhere and still initiate epio client from correct directory.

twoolie added 3 commits August 4, 2011 22:32
…llectstatic doesn't bother us with a prompt
media and static directories that people will need.
allowing users to hit 500 error when tables in intermediate state.
MEDIA_URL = '/media/'

STATIC_ROOT = PROJECT_DIR.child('static_root')
STATIC_ROOT = PROJECT_DIR.child('static-root')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the change from underscore to hyphen here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it looks neater. Easier to read.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, I think legibility is a matter of personal preference. I use underscores, not dashes. -1 on this change.

@idan
Copy link
Owner

idan commented Aug 16, 2011

I like some of the practical bits in this pull request, but there are parts I don't grok. Check out the above comments on lines of code.

@twoolie
Copy link
Author

twoolie commented Aug 16, 2011

Updated. What do you think overall?

@idan
Copy link
Owner

idan commented Aug 21, 2011

Added comments above for each of the changes.

Overall I like the changes, save those I've explicitly -1'd. Once everything is sorted out with the various comments I've made, this will get merged -- thank you for your work!

While you're at it, add an Authors section at the bottom of readme with your name in it.

@idan
Copy link
Owner

idan commented Aug 21, 2011

You've kicked the ball this far; I don't want to appear unappreciative. If you like, I can pull these commits to a branch, make the desired cleanup, and merge it myself.

@twoolie
Copy link
Author

twoolie commented Aug 21, 2011

if you'd like to cherry pick code, go ahead. Otherwise i can fix it up and you can pull. your choice.

@twoolie twoolie closed this Aug 21, 2011
@twoolie twoolie reopened this Aug 21, 2011
@twoolie
Copy link
Author

twoolie commented Aug 21, 2011

NOT CLOSED! NOT CLOSED! DAMNIT TOUCHPAD!

@@ -1,6 +1,9 @@
from __future__ import absolute_import
from .base import *

MEDIA_ROOT = PROJECT_DIR.parent.child('data')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're adding this line here anyways, might as well do it right: the value for MEDIA_ROOT should be config['core']['data_directory'], which requires importing config a bit further up in the file.

@idan
Copy link
Owner

idan commented Aug 21, 2011

Well, gonna pull an executive lazy and let you make the changes; thanks again for your work. :)

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

Successfully merging this pull request may close these issues.

2 participants