This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb
Guide: | |
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer | |
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted. | |
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware. | |
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt |
This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb
# REF: http://www.quora.com/How-do-I-create-and-update-embedded-documents-with-MongoEngine | |
class Comment(EmbeddedDocument): | |
content = StringField() | |
name = StringField(max_length=120) | |
class Post(Document): | |
title = StringField(max_length=120, required=True) | |
author = StringField(required=True) |