summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7ef4abf)
fix caching in waiter
query for email to suggest username on social signup
add temporary info in footer
from waiter.settings import WAITER_URL
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from waiter.settings import WAITER_URL
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
+from django.views.decorators.cache import never_cache
def wait(request, path):
if WaitedFile.exists(path):
file_url = join(WAITER_URL, path)
def wait(request, path):
if WaitedFile.exists(path):
file_url = join(WAITER_URL, path)
e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
{% endblocktrans %}
</p>
e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
{% endblocktrans %}
</p>
+ <p>Nowa strona biblioteki Wolne Lektury powstała dzięki środkom otrzymanym w ramach Programu Operacyjnego Fundusz Inicjatyw Obywatelskich, Senatu RP (zadanie realizowane w ramach zlecania przez Kancelarię Senatu zadań w zakresie opieki nad Polonią i Polakami za granicą w 2011 r.) oraz Narodowego Instytutu Audiowizualnego w ramach programu Dziedzictwo Cyfrowe.</p>
{% block add_footer %}{% endblock %}
{% block add_footer %}{% endblock %}
"Install the required packages from the requirements file using pip"
print '>>> install requirements'
require('release', provided_by=[deploy])
"Install the required packages from the requirements file using pip"
print '>>> install requirements'
require('release', provided_by=[deploy])
- run('cd %(path)s; %(pip)s install -E . -r %(path)s/releases/%(release)s/requirements.txt' % env, pty=True)
+ run('cd %(path)s; %(pip)s install -E ve -r %(path)s/releases/%(release)s/requirements.txt' % env, pty=True)
def copy_localsettings():
"Copy localsettings.py from root directory to release directory (if this file exists)"
def copy_localsettings():
"Copy localsettings.py from root directory to release directory (if this file exists)"
print '>>> migrate'
require('project_name', provided_by=[staging, production])
with cd('%(path)s/releases/current/%(project_name)s' % env):
print '>>> migrate'
require('project_name', provided_by=[staging, production])
with cd('%(path)s/releases/current/%(project_name)s' % env):
- run('../../../bin/python manage.py syncdb --noinput' % env, pty=True)
+ run('../../../ve/bin/python manage.py syncdb --noinput' % env, pty=True)
- run('../../../bin/python manage.py migrate' % env, pty=True)
+ run('../../../ve/bin/python manage.py migrate' % env, pty=True)
def restart_webserver():
"Restart the web server"
def restart_webserver():
"Restart the web server"
; =========================================
[program:celery.%(project_name)s]
; =========================================
[program:celery.%(project_name)s]
-command=%(path)s/bin/python %(path)s/releases/current/%(project_name)s/manage.py celeryd --loglevel=INFO
+command=%(path)s/ve/bin/python %(path)s/releases/current/%(project_name)s/manage.py celeryd --loglevel=INFO
directory=%(path)s/releases/current/%(project_name)s
user=%(user)s
numprocs=2
directory=%(path)s/releases/current/%(project_name)s
user=%(user)s
numprocs=2
-site.addsitedir('%(path)s/lib/python2.6/site-packages')
+site.addsitedir('%(path)s/ve/lib/python2.6/site-packages')
import os
from os.path import abspath, dirname, join
import os
from os.path import abspath, dirname, join
-SOCIALACCOUNT_AUTO_SIGNUP = False
\ No newline at end of file
+SOCIALACCOUNT_AUTO_SIGNUP = False
+SOCIALACCOUNT_QUERY_EMAIL = True