Merge lp:~dholbach/ubucon-site/newsblog into lp:ubucon-site

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 37
Proposed branch: lp:~dholbach/ubucon-site/newsblog
Merge into: lp:ubucon-site
Diff against target: 89 lines (+47/-1)
3 files modified
README.local.md (+10/-0)
ubucon_site/requirements.txt (+1/-0)
ubucon_site/settings/__init__.py (+36/-1)
To merge this branch: bzr merge lp:~dholbach/ubucon-site/newsblog
Reviewer Review Type Date Requested Status
Michael Hall (community) Approve
Review via email: mp+290402@code.launchpad.net

Description of the change

Add Aldryn newsblog. Rest of the configuration happens in the admin interface.

To post a comment you must log in.
Revision history for this message
Michael Hall (mhall119) wrote :

The charm config needs libxml2-dev and libxslt-dev added to it's list of packages to install from apt for this to work, but otherwise it looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'README.local.md'
2--- README.local.md 1970-01-01 00:00:00 +0000
3+++ README.local.md 2016-03-30 08:22:06 +0000
4@@ -0,0 +1,10 @@
5+sudo apt install virtualenv libxml2-dev libxslt-dev
6+
7+# Enable DATABASE in ubucon_site/settings/__init__.py
8+
9+virtualenv env
10+./env/bin/pip install -r ubucon_site/requirements.txt
11+./env/bin/python manage.py syncdb
12+./env/bin/python manage.py initdb
13+./env/bin/python manage.py collectstatic
14+./env/bin/python manage.py runserver
15
16=== modified file 'ubucon_site/requirements.txt'
17--- ubucon_site/requirements.txt 2015-11-13 13:41:09 +0000
18+++ ubucon_site/requirements.txt 2016-03-30 08:22:06 +0000
19@@ -1,3 +1,4 @@
20+aldryn-newsblog==1.2.1
21 Django==1.7.1
22 Django-Select2==4.3.1
23 Pillow==2.9.0
24
25=== modified file 'ubucon_site/settings/__init__.py'
26--- ubucon_site/settings/__init__.py 2015-12-10 16:25:19 +0000
27+++ ubucon_site/settings/__init__.py 2016-03-30 08:22:06 +0000
28@@ -82,6 +82,7 @@
29
30 TEMPLATE_LOADERS = (
31 'django.template.loaders.filesystem.Loader',
32+ 'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
33 'django.template.loaders.app_directories.Loader',
34 'django.template.loaders.eggs.Loader'
35 )
36@@ -97,7 +98,9 @@
37 'django.core.context_processors.tz',
38 'sekizai.context_processors.sekizai',
39 'django.core.context_processors.static',
40- 'cms.context_processors.cms_settings'
41+ 'cms.context_processors.cms_settings',
42+ # For Aldryn
43+ 'aldryn_boilerplates.context_processors.boilerplate',
44 )
45
46 TEMPLATE_DIRS = (
47@@ -154,6 +157,21 @@
48 'djangocms_teaser',
49 'djangocms_video',
50
51+ # Required for aldryn news blog:
52+ 'aldryn_apphooks_config',
53+ 'aldryn_boilerplates',
54+ 'aldryn_categories',
55+ 'aldryn_common',
56+ 'aldryn_newsblog',
57+ 'aldryn_people',
58+ 'aldryn_reversion',
59+ 'aldryn_translation_tools',
60+ 'easy_thumbnails',
61+ 'filer',
62+ 'parler',
63+ 'sortedm2m',
64+ 'taggit',
65+
66 'ubucon_site'
67 )
68
69@@ -254,3 +272,20 @@
70 # Allow iframes in ckeditor
71 TEXT_ADDITIONAL_TAGS = ('iframe',)
72 TEXT_ADDITIONAL_ATTRIBUTES = ('scrolling', 'allowfullscreen', 'frameborder')
73+
74+# Settings for Aldryn
75+THUMBNAIL_PROCESSORS = (
76+ 'easy_thumbnails.processors.colorspace',
77+ 'easy_thumbnails.processors.autocrop',
78+ # 'easy_thumbnails.processors.scale_and_crop',
79+ 'filer.thumbnail_processors.scale_and_crop_with_subject_location',
80+ 'easy_thumbnails.processors.filters',
81+ 'easy_thumbnails.processors.background',
82+)
83+
84+STATICFILES_FINDERS = [
85+ 'django.contrib.staticfiles.finders.FileSystemFinder',
86+ # important! place right before django.contrib.staticfiles.finders.AppDirectoriesFinder
87+ 'aldryn_boilerplates.staticfile_finders.AppDirectoriesFinder',
88+ 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
89+]

Subscribers

People subscribed via source and target branches