This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dateranges": [ | |
{ | |
"start_date": "2015-01-29", | |
"end_date": "2015-02-19" | |
}, | |
{ | |
"start_date": "2015-02-11", | |
"end_date": "2015-02-12" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will need to run these with superuser permissions. | |
# Either prefix `sudo` to all commands, or switch user | |
# Be very careful when you switch user | |
sudo su - root | |
# Update all the packages | |
yum update | |
# Install the basics - python27, gcc, svn, git, httpd, make, uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django provides some great and easy to use decorators | |
# that accept simple functions that you could use to | |
# perform certain tests on the user. However, if your test | |
# depends on some parameter within the request object (like mine did), | |
# you could do something like: | |
from django.contrib.auth import REDIRECT_FIELD_NAME | |
from django.utils.decorators import available_attrs | |
from django.utils.http import urlquote |