Dump existing data:
python3 manage.py dumpdata > datadump.json
Change settings.py to Postgres backend.
Make sure you can connect on PostgreSQL. Then:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- | |
Noto Mono + Color Emoji Font Configuration. | |
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole. | |
Usage: | |
0. Ensure that the Noto fonts are installed on your machine. | |
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf |
from mock import patch #http://pypi.python.org/pypi/mock | |
import flask | |
import myapp | |
@patch('flask.templating._render', return_value='') | |
def test_mocked_render(mocked): | |
t = myapp.app.test_client() | |
print "mocked", repr(t.get("/").data) | |
print "was _render called?", mocked.called |