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
+
+@never_cache
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>
+ <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 %}
"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)"
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)
if env.use_south:
- 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"
; =========================================
[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
#!%(python)s
import site
-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
LOGIN_REDIRECT_URL = '/'
-SOCIALACCOUNT_AUTO_SIGNUP = False
\ No newline at end of file
+SOCIALACCOUNT_AUTO_SIGNUP = False
+SOCIALACCOUNT_QUERY_EMAIL = True