Skip to content

Instantly share code, notes, and snippets.

Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/janeway/itemsnode/add/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
def index_view(self, request, node=None, extra_context=None):
entries = self.blog.entries.all()
if self.entries_per_page:
paginated_page = paginate(request, entries, self.entries_per_page)
entries = paginated_page.object_list
else:
paginated_page = None
context = {}
context.update(extra_context or {})
context.update({'blog': self.blog, 'entries': entries, 'paginated_page': paginated_page})
from django.db import models
from django.conf import settings
from philo.models import Tag, Titled, Entity, MultiView, Page, register_value_model
from django.conf.urls.defaults import url, patterns
from django.http import Http404, HttpResponse
from datetime import datetime
from philo.contrib.penfield.utils import paginate
from philo.contrib.penfield.validators import validate_pagination_count
from django.db import models
from django.conf import settings
from philo.models import Tag, Titled, Entity, MultiView, Page, register_value_model
from django.conf.urls.defaults import url, patterns
from django.http import Http404, HttpResponse
from datetime import datetime
from philo.contrib.penfield.utils import paginate
from philo.contrib.penfield.validators import validate_pagination_count
diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py
index 371ea57..7dee823 100644
--- a/contrib/penfield/models.py
+++ b/contrib/penfield/models.py
@@ -4,6 +4,8 @@ from philo.models import Tag, Titled, Entity, MultiView, Page, register_value_mo
from django.conf.urls.defaults import url, patterns
from django.http import Http404, HttpResponse
from datetime import datetime
+from philo.contrib.penfield.utils import paginate
+from philo.contrib.penfield.validators import validate_pagination_count
@kgodey
kgodey / frontend-engineer.md
Last active March 30, 2021 18:55
Frontend Engineer at Center of Complex Interventions

Senior Frontend Engineer

The Project

We're looking for a frontend engineer to help build a brand new open source product that helps users of all skill levels use, extend, and visualize their data. We are heavily inspired by Dabble DB.

The current team is two engineers, we're alumni of Creative Commons and have experience working on open source projects and building community. We're aiming for an initial team size of four, including this position and a product designer. We're based out of the nonprofit Center of Complex Interventions and are advised by Joi Ito and Reid Hoffman.

The Position

We haven't started writing code for this project yet and you'll be our first frontend engineer. We expect that you'll have full ownership of the front end, including picking the stack, writing modular, scalable, and well-documented code, and ensuring accessibility, near-instantaneous performance, and a great user experience. You'll also

@kgodey
kgodey / product-designer.md
Last active March 3, 2021 10:36
Product Designer at Center of Complex Interventions

Senior Product Designer

The Project

We're looking for a product designer to help build a brand new open source product that helps users of all skill levels use, extend, and visualize their data. We are heavily inspired by Dabble DB.

The current team is two engineers, we're alumni of Creative Commons and have experience working on open source projects and building community. We're aiming for an initial team size of four, including this position and a frontend engineer. We're based out of the nonprofit Center of Complex Interventions and are advised by Joi Ito and Reid Hoffman.

The Position

We haven't started writing code for this project yet and your first task will be to help us design and ship the MVP. You'll have full ownership of the product design process, including user interviews, taking ideas from initial conception to high-fidelity designs, and regular usability testing. You'll translate complex data manipulation