- iphone5s 320x504
- iphone4s 320x412
- iphone6 375x603
- mi3 360x567
This file contains hidden or 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
var tagger = function(options) { | |
var tags = []; | |
options = options||{}; | |
var lipre = options.lipre||""; | |
var lipost = options.lipost||""; | |
var tagList = $("ul#add-flow-tags"); | |
var originalTags = []; | |
This file contains hidden or 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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': 'mydatabase', | |
} | |
} |
This file contains hidden or 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 | |
LOGS_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'logs') | |
LOGGING = { | |
'version': 1, | |
'dusable_existing_loggers': True, | |
'formatters': { | |
'normal': { | |
'format': '%(levelname)s %(asctime)s %(module)s %(message)s' |
This file contains hidden or 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
handlers: | |
- url: /static/(.*) | |
static_files: templates/static/$1 | |
- url : /.* | |
script: app.py |
This file contains hidden or 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
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
gzip on;
gzip_min_length 1k;
gzip_buffers 16 64k;
gzip_http_version 1.1;
gzip_comp_level 6;
gzip_types text/plain application/json application/javascript application/x-javascript text/javascript text/css application/xml;
gzip_vary on;
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods, require_GET, require_POST
from django.views.decorators.csrf import csrf_exempt
This file contains hidden or 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 django.contrib.auth as auth | |
from django.views.decorators.http import require_http_methods, require_GET, require_POST | |
@require_http_methods(['GET', 'POST']) | |
@ensure_csrf_cookie | |
def login(request): | |
if request.method == 'GET': | |
return render(request, "login.html") |
This file contains hidden or 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
#--index-url http://pypi.douban.com/simple | |
Django==1.7 | |
django-auth-remember | |
django-render-json | |
django-render-csv | |
django-auth-json | |
python-memcached | |
django-social-auth | |
django-tables3 |