This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse | |
from django.shortcuts import redirect | |
from django.views.generic.detail import BaseDetailView, \ | |
SingleObjectTemplateResponseMixin | |
from tt.url.unicode import urlencode | |
class CanonicalUrlBaseDetailView(BaseDetailView): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(armstrong_test)niran@matryoshka:~/tribune/armstrong_test$ pip install -U git+https://github.com/armstrong/armstrong.core.arm_sections@master#egg=armstrong.core.arm_sections | |
Downloading/unpacking armstrong.core.arm-sections from git+https://github.com/armstrong/armstrong.core.arm_sections@master | |
Cloning https://github.com/armstrong/armstrong.core.arm_sections (to master) to /home/niran/.virtualenvs/armstrong_test/build/armstrong.core.arm-sections | |
Running setup.py egg_info for package armstrong.core.arm-sections | |
no previously-included directories found matching 'build/*' | |
Downloading/unpacking django==1.3.0 (from armstrong.core.arm-sections) | |
Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded | |
Running setup.py egg_info for package django | |
Downloading/unpacking armstrong.utils.backends (from armstrong.core.arm-sections) | |
Downloading armstrong.utils.backends-0.2.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(armstrong_test)niran@matryoshka:~/tribune/armstrong_test$ pip install -U git+https://github.com/armstrong/armstrong.core.arm_sections@master#egg=armstrong.core.arm_sections | |
Downloading/unpacking armstrong.core.arm-sections from git+https://github.com/armstrong/armstrong.core.arm_sections@master | |
Cloning https://github.com/armstrong/armstrong.core.arm_sections (to master) to /home/niran/.virtualenvs/armstrong_test/build/armstrong.core.arm-sections | |
Running setup.py egg_info for package armstrong.core.arm-sections | |
Before install bootstrap. | |
Scanning installed packages | |
Setuptools installation detected at /home/niran/.virtualenvs/armstrong_test/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg | |
Egg installation | |
Patching... | |
Renaming /home/niran/.virtualenvs/armstrong_test/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg into /home/niran/.virtualenvs/armstrong_test/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1311700981.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
niran@matryoshka:~/tribune$ mkvirtualenv --no-site-packages armstrong_test | |
New python executable in armstrong_test/bin/python | |
Installing setuptools............done. | |
virtualenvwrapper.user_scripts Creating /home/niran/.virtualenvs/armstrong_test/bin/predeactivate | |
virtualenvwrapper.user_scripts Creating /home/niran/.virtualenvs/armstrong_test/bin/postdeactivate | |
virtualenvwrapper.user_scripts Creating /home/niran/.virtualenvs/armstrong_test/bin/preactivate | |
virtualenvwrapper.user_scripts Creating /home/niran/.virtualenvs/armstrong_test/bin/postactivate | |
virtualenvwrapper.user_scripts Creating /home/niran/.virtualenvs/armstrong_test/bin/get_env_details | |
(armstrong_test)niran@matryoshka:~/tribune$ mkdir armstrong_test | |
(armstrong_test)niran@matryoshka:~/tribune$ cd armstrong_test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
import django.core.mail | |
class MissingConnectionException(Exception): | |
pass | |
def get_connection(label=None, **kwargs): | |
if label is None: | |
label = getattr(settings, 'EMAIL_CONNECTION_DEFAULT', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# If you haven't played around with WordPress much and you're trying to find out what | |
# exactly this "category object" thing that's referenced in many places is. You might | |
# look for a category table in the database for some clues, but there isn't one. That's | |
# because WordPress uses "terms" to handle both categories and tags, each of which are | |
# "taxonomies". Looking in those tables will give you want you want, or you could just | |
# print a category object. | |
# | |
# More info: http://codex.wordpress.org/WordPress_Taxonomy |
NewerOlder