Based on https://gist.github.com/springmeyer/7459452
- Mapnik >= 2.3 and the python bindings
from import_export import fields, resources | |
from .models import MyModel | |
from .xls import ExcelDateWidget | |
class MyModelResource(resources.ModelResource): | |
# Other fields here... | |
my_date = fields.Field(attribute='my_date', column_name='MY_DATE', widget=ExcelDateWidget()) | |
class Meta: |
https://github.com/atom/whitespace/issues/10 | |
from @hbirch: | |
Atom->Preferences then search for Whitespace on the left to get to the whitespae package's preferenes. Then unclick "remove trailing whitespace." |
#!/usr/bin/env python | |
import optparse | |
import sys | |
import os | |
os.environ['S3_USE_SIGV4'] = 'True' | |
from boto.s3.connection import S3Connection | |
def sign(bucket, path, access_key, secret_key, https, expiry, host=None): |
APPNAME = 'foobar' | |
# Overwrite settings depending on environment | |
# include at end of settings.py to overwrite settings in a per environment way | |
ENVIRONMENT_NAME = os.environ.get('ENVIRONMENT_NAME', 'production') | |
extra_settings = 'settings-%s.py' % ENVIRONMENT_NAME | |
extra_settings_path = os.path.join(BASE_DIR, APPNAME, extra_settings) | |
if os.path.exists(extra_settings_path): | |
print 'Try to load extra settings: %s' % extra_settings |
[uwsgi] | |
procname-prefix-spaced=/apps/%c | |
chdir = %d/app | |
need-app = true | |
touch-reload = %d/uwsgi.ini | |
# old way | |
# module = wsgi | |
# new way | |
mount = /apps/appname=djangoapp/wsgi.py |
################################################################################### | |
# | |
# Apache2::AuthenNTLM - Copyright (c) 2002 Gerald Richter / ECOS | |
# | |
# You may distribute under the terms of either the GNU General Public | |
# License or the Artistic License, as specified in the Perl README file. | |
# | |
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR | |
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
*~ | |
*.pyc |
Based on https://gist.github.com/springmeyer/7459452