Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/root/.virtualenvs/chi-councilmatic/lib/python3.4/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/root/.virtualenvs/chi-councilmatic/lib/python3.4/site-packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.virtualenvs/chi-councilmatic/lib/python3.4/site-packages/django/core/management/base.py", line 393, in run_from_argv
self.execute(*args, **cmd_options)
File "/root/.virtualenvs/chi-councilmatic/lib/python3.4/site-packages/django/core/management/base.py", line 444, in execute
** loading all data types! **
LOADING ORGANIZATIONS 2016-02-05 19:05:47.141713
populating boundaries: chicago-wards-2015
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sandbox</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.0.16/css/bulma.min.css">
</head>
<body>
<div class='column is-5 is-offset-4'>
# These are all the settings that are specific to a jurisdiction
###############################
# These settings are required #
###############################
OCD_CITY_COUNCIL_ID = 'ocd-organization/4d011b3b-4906-47ac-9947-05f3422e83d0'
CITY_COUNCIL_NAME = 'Miami-Dade County Council'
OCD_JURISDICTION_ID = 'ocd-jurisdiction/country:us/state:fl/county:miami-dade/legislature'
LEGISLATIVE_SESSIONS = ['2014'] # the last one in this list should be the current legislative session
# These are all the settings that are specific to a deployment
import os
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'replacethiswithsomethingsecret'
# SECURITY WARNING: don't run with debug turned on in production!
# Set this to True while you are developing
DEBUG = True
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update
apt-get upgrade
apt-get install python3-pip git libpq-dev tree nginx postgresql-9.4
alias python=python3
import React from 'react'
import {render} from 'react-dom'
import {createStore} from 'redux'
const reducer = (state = 0, action) => {
switch(action.type){
case 'INCREMENT':
return state + 1
case 'DECREMENT':
pylab.plot(range(len(totalAvg)), totalAvg, label = "Average Total")
pylab.title("Simulation with Drug")
pylab.xlabel("time")
pylab.ylabel(" viruses")
pylab.show()
# simulationWithDrug(100, 1000, 0.1, 0.05, {'guttagonol': False}, 0.005, 10)
extends React.Component{...