I hereby claim:
- I am jaddison on github.
- I am jamesaddison (https://keybase.io/jamesaddison) on keybase.
- I have a public key whose fingerprint is AE7B AA19 D3DE 0614 0D08 67B6 1A39 8609 930F 09DB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from django.conf import settings | |
from django.conf.urls import include, url | |
from django.conf.urls.static import static | |
from django.contrib import admin | |
from django.urls import Constraint, Resolver404 | |
""" | |
where the following in in the project settings.py: | |
SITE_DOMAIN_MY = ('http', 'my.example.com') |
#!/bin/bash | |
# This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box. | |
# Run the following command in a root shell: | |
# | |
# bash <(curl -s https://gist.github.com/justindowning/5670884/raw/vagrant-clean.sh) | |
function print_green { | |
echo -e "\e[32m${1}\e[0m" | |
} |
0x561E9A2d7cC2FfB8DcB098faD6d221d40dec509c |
0x9F7863A61e3A9E4746A650D02CbBE8F1b857f09d |
#!/bin/bash | |
if [[ ! -v SUPRNOVA_KEY ]] | |
then | |
echo -e "SUPRNOVA_KEY environment variable isn't set.\n\nThis should be the API key from your Suprnova account." | |
exit 1 | |
fi | |
if [[ ! -v SUPRNOVA_TARGET ]] | |
then | |
echo -e "SUPRNOVA_TARGET environment variable isn't set.\n\nThis should be 'zcl' if you are connecting to 'zcl.suprnova.cc'" |
# models.py | |
# the dev adds new fields to this as the client asks for more features | |
class ClientSettings(models.Model): | |
base_labour_rate = models.FloatField(...) | |
# middleware.py | |
class ClientSettingsMiddleware(object): | |
_settings = None |