Skip to content

Instantly share code, notes, and snippets.

View audreyfeldroy's full-sized avatar
💕

Audrey M. Roy Greenfeld audreyfeldroy

💕
View GitHub Profile
08-28 21:45:54.815: WARN/AudioFlinger(35): write blocked for 115 msecs
08-28 21:46:05.153: DEBUG/dalvikvm(2497): GC freed 112 objects / 4816 bytes in 118ms
08-28 21:46:07.313: WARN/AudioFlinger(35): write blocked for 111 msecs
08-28 21:46:15.953: WARN/AudioFlinger(35): write blocked for 103 msecs
08-28 21:46:20.903: DEBUG/dalvikvm(2497): GC freed 125 objects / 5752 bytes in 121ms
08-28 21:46:22.233: WARN/AudioFlinger(35): write blocked for 76 msecs
08-28 21:46:41.213: WARN/AudioFlinger(35): write blocked for 112 msecs
08-28 21:46:46.133: DEBUG/dalvikvm(2497): GC freed 161 objects / 7264 bytes in 116ms
08-28 21:46:51.175: WARN/AudioFlinger(35): write blocked for 116 msecs
08-28 21:46:55.543: WARN/AudioFlinger(35): write blocked for 73 msecs
psql -U postgres -c "DROP DATABASE packaginator;"
psql -U postgres -c "CREATE DATABASE packaginator OWNER packaginator;"
python manage.py syncdb
python manage.py migrate
python manage.py loaddata fixtures/dump_clean_data.json
python manage.py runserver 0.0.0.0:8000
from account.models import Account
l = Account.objects.all()
l = list(l)
l
lsqlite = Account.objects.using('sqlite').all()
lsqlite = list(lsqlite)
lsqlite
spostgres = set((c.app_label, c.model) for c in l)
ssqlite = set((c.app_label, c.model) for c in lsqlite)
ssqlite - spostgres
pip install Sphinx==1.0.7 (or whatever the latest version is)
mkdir docs
cd docs
sphinx-quickstart
> Root path for the documentation [.]:
> Separate source and build directories (y/N) [n]:
> Name prefix for templates and static dir [_]:
> Project name: django-startcbv
> Author name(s): Audrey Roy
> Project version: 0.1
> Project release [0.1]:
> Source file suffix [.rst]:
> Name of your master document (without suffix) [index]:
> autodoc: automatically insert docstrings from modules (y/N) [n]: y
sys.path.insert(0, os.path.abspath('../startcbv'))
sys.path.insert(0, os.path.abspath('../test_project'))
import settings
from django.core.management import setup_environ
setup_environ(settings)
_templates
_static
_build
==========================
Reference for startcbv app
==========================
The startcbv app gives you the management command "python manage.py startcbv things".
``startcbv management command``
===============================
.. automodule:: management.commands.startcbv
.. django-startcbv documentation master file, created by
sphinx-quickstart on Mon Jul 11 21:34:47 2011.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to django-startcbv's documentation!
===========================================
Contents
-----------