TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
""" | |
Logical deletion for Django models. Uses is_void flag | |
to hide discarded items from queries. Overrides delete | |
methods to set flag and soft-delete instead of removing | |
rows from the database. | |
""" | |
from django.apps import apps | |
from django.contrib.admin.utils import NestedObjects | |
from django.db import models | |
from django.db.models import signals |
from django.conf import settings | |
from whitenoise.django import DjangoWhiteNoise | |
class DjangoCompressWhiteNoise(DjangoWhiteNoise): | |
def __call__(self, environ, start_response): | |
# Handle files generated on the fly by django-compressor | |
url = environ['PATH_INFO'] | |
if url.startswith(self.static_prefix) and url not in self.files: | |
if self.is_compressed_file(url): |
about | |
admin | |
blog | |
calendar | |
contact | |
copyright | |
dashboard | |
errors | |
events |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
Couldn't find the text of this for a while...
awk | |
bunzip2 | |
bzcat | |
bzip2 | |
cat | |
chown | |
cp | |
curl | |
cut | |
date |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |