-from fnpdjango.deploy import *
+from fnpdeploy import *
try:
from fabfile_local import *
except ImportError:
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl'
+ env.django_root_path = 'src'
+ env.requirements_file = 'requirements/requirements.txt'
env.services = [
Supervisord('wolnelektury'),
Supervisord('wolnelektury.celery'),
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl/beta'
- env.services = []
+ env.ve = '/srv/wolnelektury.pl/ve'
+ env.django_root_path = 'src'
+ env.requirements_file = 'requirements/requirements.txt'
+ env.services = [
+ Supervisord('beta'),
+ ]
@task
Fabric
sphinx
pyinotify
+fnpdeploy
['kind'])
self.assertEqual([(tag.name, tag.count) for tag in related_themes],
[('ChildTheme', 1), ('ParentTheme', 1), ('Theme', 2)])
-
- def test_catalogue_tags(self):
- """ test main page tags and counts """
- context = self.client.get('/katalog/').context
- self.assertEqual([(tag.name, tag.count) for tag in context['categories']['author']],
- [('Jim Lazy', 1), ('Common Man', 1)])
- self.assertEqual([(tag.name, tag.count) for tag in context['categories']['theme']],
- [('ChildTheme', 1), ('ParentTheme', 1), ('Theme', 2)])
-
'autor/jane-doe/',
'autor/jane-doe/gatunek/genre/',
'autor/jane-doe/gatunek/genre/motyw/theme/',
- 'pl.json',
'b/%d/mini.pl.html' % self.book.pk,
'b/%d/mini_nolink.pl.html' % self.book.pk,
'b/%d/short.pl.html' % self.book.pk,
'book_fragments', name='book_fragments'),
# Includes.
- url(r'^(?P<lang>[^/]+)\.json$', 'catalogue_json'),
url(r'^b/(?P<pk>\d+)/mini\.(?P<lang>.+)\.html', 'book_mini', name='catalogue_book_mini'),
url(r'^b/(?P<pk>\d+)/mini_nolink\.(?P<lang>.+)\.html', 'book_mini', {'with_link': False}, name='catalogue_book_mini_nolink'),
url(r'^b/(?P<pk>\d+)/short\.(?P<lang>.+)\.html', 'book_short', name='catalogue_book_short'),
return render(request, 'catalogue/catalogue.html', locals())
-@ssi_included
-def catalogue_json(request):
- return catalogue(request, True)
-
-
def book_list(request, filter=None, get_filter=None,
template_name='catalogue/book_list.html',
nav_template_name='catalogue/snippets/book_list_nav.html',