Merge lp:~dholbach/ubucon-site/fix-migration-paths into lp:ubucon-site

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 41
Proposed branch: lp:~dholbach/ubucon-site/fix-migration-paths
Merge into: lp:ubucon-site
Diff against target: 97 lines (+36/-20)
2 files modified
ubucon_site/migrations/0002_auto_20160425_1408.py (+19/-0)
ubucon_site/settings/__init__.py (+17/-20)
To merge this branch: bzr merge lp:~dholbach/ubucon-site/fix-migration-paths
Reviewer Review Type Date Requested Status
UbuCon site developers Pending
Review via email: mp+292805@code.launchpad.net
To post a comment you must log in.
42. By Daniel Holbach

move TEMPLATE_DEBUG and TEMPLATE_LOADERS to new template fields

43. By Daniel Holbach

remove APP_DIRS, clashes with template loaders

44. By Daniel Holbach

add auto migration

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'ubucon_site/migrations/0002_auto_20160425_1408.py'
2--- ubucon_site/migrations/0002_auto_20160425_1408.py 1970-01-01 00:00:00 +0000
3+++ ubucon_site/migrations/0002_auto_20160425_1408.py 2016-04-25 14:11:01 +0000
4@@ -0,0 +1,19 @@
5+# -*- coding: utf-8 -*-
6+from __future__ import unicode_literals
7+
8+from django.db import migrations, models
9+
10+
11+class Migration(migrations.Migration):
12+
13+ dependencies = [
14+ ('ubucon_site', '0001_initial'),
15+ ]
16+
17+ operations = [
18+ migrations.AlterField(
19+ model_name='rawhtml',
20+ name='cmsplugin_ptr',
21+ field=models.OneToOneField(parent_link=True, related_name='ubucon_site_rawhtml', primary_key=True, serialize=False, to='cms.CMSPlugin'),
22+ ),
23+ ]
24
25=== modified file 'ubucon_site/settings/__init__.py'
26--- ubucon_site/settings/__init__.py 2016-03-30 08:21:27 +0000
27+++ ubucon_site/settings/__init__.py 2016-04-25 14:11:01 +0000
28@@ -28,7 +28,6 @@
29 # SECURITY WARNING: don't run with debug turned on in production!
30 DEBUG = True
31
32-TEMPLATE_DEBUG = True
33
34 ALLOWED_HOSTS = []
35
36@@ -86,7 +85,6 @@
37 'DIRS': [
38 os.path.join(BASE_DIR, 'templates'),
39 ],
40- 'APP_DIRS': True,
41 'OPTIONS': {
42 'context_processors': [
43 'django.template.context_processors.request',
44@@ -104,19 +102,18 @@
45 # For Aldryn
46 'aldryn_boilerplates.context_processors.boilerplate',
47 ],
48+ 'loaders': [
49+ 'django.template.loaders.filesystem.Loader',
50+ 'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
51+ 'django.template.loaders.app_directories.Loader',
52+ 'django.template.loaders.eggs.Loader',
53+ ],
54+ 'debug': True,
55 },
56 },
57 ]
58
59
60-TEMPLATE_LOADERS = (
61- 'django.template.loaders.filesystem.Loader',
62- 'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
63- 'django.template.loaders.app_directories.Loader',
64- 'django.template.loaders.eggs.Loader'
65-)
66-
67-
68 MIDDLEWARE_CLASSES = (
69 'django.contrib.sessions.middleware.SessionMiddleware',
70 'django.middleware.csrf.CsrfViewMiddleware',
71@@ -241,16 +238,16 @@
72 #}
73
74 MIGRATION_MODULES = {
75- 'djangocms_column': 'djangocms_column.migrations_django',
76- 'djangocms_flash': 'djangocms_flash.migrations_django',
77- 'djangocms_googlemap': 'djangocms_googlemap.migrations_django',
78- 'djangocms_inherit': 'djangocms_inherit.migrations_django',
79- 'djangocms_link': 'djangocms_link.migrations_django',
80- 'djangocms_style': 'djangocms_style.migrations_django',
81- 'djangocms_file': 'djangocms_file.migrations_django',
82- 'djangocms_picture': 'djangocms_picture.migrations_django',
83- 'djangocms_teaser': 'djangocms_teaser.migrations_django',
84- 'djangocms_video': 'djangocms_video.migrations_django'
85+ 'djangocms_column': 'djangocms_column.migrations',
86+ 'djangocms_flash': 'djangocms_flash.migrations',
87+ 'djangocms_googlemap': 'djangocms_googlemap.migrations',
88+ 'djangocms_inherit': 'djangocms_inherit.migrations',
89+ 'djangocms_link': 'djangocms_link.migrations',
90+ 'djangocms_style': 'djangocms_style.migrations',
91+ 'djangocms_file': 'djangocms_file.migrations',
92+ 'djangocms_picture': 'djangocms_picture.migrations',
93+ 'djangocms_teaser': 'djangocms_teaser.migrations',
94+ 'djangocms_video': 'djangocms_video.migrations',
95 }
96
97 AUTHENTICATION_BACKENDS = (

Subscribers

People subscribed via source and target branches