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
# -*- coding: utf-8 -*- | |
import re | |
from django.conf import settings | |
from django.http import HttpResponseRedirect | |
from django.utils import translation | |
from django.utils.translation import get_language_from_request | |
# |
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
#! /bin/sh | |
# REDMINE for Nginx + Unicorn init script | |
# improvised from the awesome work maintained by the GitLab team: | |
# Credit to: @randx and others at GitLab | |
### BEGIN INIT INFO | |
# Provides: redmine | |
# Required-Start: $local_fs $remote_fs $network $syslog redis-server |
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
# -*- coding: utf-8 -*- | |
# Django 1.6 | |
from django.contrib import admin | |
from django.forms import ModelChoiceField | |
from django.forms.models import ModelForm | |
from blog.models import Post | |
from .models import Item |
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
# -*- coding: utf-8 -*- | |
# Django 1.6 | |
from django.contrib import admin | |
from django.forms import ModelChoiceField | |
from django.forms.models import ModelForm | |
from blog.models import Post | |
from .models import Item | |
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
Environment: | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/en/staff/cms/page/7/None/preview/ | |
Django Version: 1.6.2 | |
Python Version: 2.7.2 | |
Installed Applications: | |
('django.contrib.auth', |
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
import os | |
gettext = lambda s: s | |
""" | |
Django settings for project project. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/1.6/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/1.6/ref/settings/ |
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
function AlphaImage(img){ | |
var threshold = 40, | |
canvas, | |
ctx, | |
width, | |
height, | |
imgData; | |
width = img.width; | |
height = img.height; |
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
{% load i18n menu_tags %}{% get_available_languages as languages %}{% get_language_info for LANGUAGE_CODE as lang %} | |
<li><span class="current-language">{{ lang.code|upper }}<i class="drop"></i></span> | |
<ul>{% for language in languages %} | |
<li class="{% ifequal current_language language.0 %}selected{% endifequal %}"><a href="{% page_language_url language.0 %}">{{ language.0|language_name_local|capfirst }}</a></li>{% endfor %} | |
</ul> | |
</li> |
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
### Keybase proof | |
I hereby claim: | |
* I am mkoistinen on github. | |
* I am mkoistinen (https://keybase.io/mkoistinen) on keybase. | |
* I have a public key whose fingerprint is 9840 EA07 2C83 5E63 0391 9A4D 7864 8B53 2FBC E49C | |
To claim this, I am signing this object: |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django import template | |
from classytags.core import Tag, Options | |
from classytags.arguments import Argument | |
register = template.Library() |
OlderNewer