(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| @transaction.commit_on_success | |
| def _action(action, o): | |
| getattr(o,action)() | |
| o.is_processing = False | |
| o.save() | |
| def _bulk_action(action, objs): | |
| for o in objs: | |
| _action(action,o) |
| #define SIO_C 2 | |
| #define SIO_D 4 | |
| #define SIO_CLOCK_DELAY 100 | |
| void setup() | |
| { | |
| pinMode(8,OUTPUT); | |
| // while(1) | |
| // { |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| from django.http import StreamingHttpResponse | |
| from wsgiref.util import FileWrapper | |
| import mimetypes | |
| import os | |
| import re | |
| range_re = re.compile(r'bytes\s*=\s*(\d+)\s*-\s*(\d*)', re.I) | |
| class RangeFileWrapper (object): | |
| def __init__(self, filelike, blksize=8192, offset=0, length=None): |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
TL;DR
Create a backup:
pg_dumpall > mybackup.sqlPerform the upgrade:
sudo pg_dropcluster 9.4 main --stopHopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"
This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).
I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)
Main features: