Skip to content

Instantly share code, notes, and snippets.

View codeluggage's full-sized avatar
🌏
Alleviating systemic poverty, adapting to global warming, figuring out parenting

Matias Forbord codeluggage

🌏
Alleviating systemic poverty, adapting to global warming, figuring out parenting
View GitHub Profile
#!/usr/bin/env python
import os
import sys
def handler(event, context):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mydjangoproject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
service: serverless-django
custom: ${file(./variables.yml)}
provider:
name: aws
runtime: python3.7
functions:
hello:
environment: ${self:custom}
handler: handler.hello
#!/usr/bin/env python
import os
import sys
def hello(event, context):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mydjangoproject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
@codeluggage
codeluggage / r.dendron.macros.md
Last active May 2, 2022 02:31
How to use shortcuts to work with markdown checkboxes for Dendron