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 functools import update_wrapper | |
from django.conf import settings | |
from django.utils.decorators import classonlymethod | |
from django.views.generic.base import TemplateResponseMixin | |
from haystack.query import SearchQuerySet | |
from haystack.forms import FacetedSearchForm | |
from haystack.views import FacetedSearchView as HaystackFacetedSearchView |
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
server { | |
server_name domain.tld; | |
root /var/www/zenphoto; | |
index index.php; | |
# pass the PHP scripts to php-fpm server | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
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 | |
import imp | |
import shutil | |
import pkgutil | |
import logging | |
from optparse import make_option | |
from django.core.management.base import BaseCommand, CommandError |
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
server { | |
listen 80; | |
server_name sentry.roadside-developer.com; | |
access_log /var/log/nginx/access.sentry.roadside-developer.com; | |
gzip on; | |
gzip_proxied any; | |
gzip_types text/plain application/xml application/x-javascript text/javascript text/css; | |
location / { |
NewerOlder