Skip to content

Commit 4f1d8df

Browse files
committed
Customizations to support a new header on Post. Hyper.
1 parent 8841f75 commit 4f1d8df

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.swp
2+
tasks/custom

tasks/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,11 @@
7676
enabled: true
7777
state: started
7878
when: mailman3_process_manager != "supervisor"
79+
80+
- name: Customizations
81+
ansible.builtin.include_tasks:
82+
file: "{{ item }}"
83+
with_first_found:
84+
- files:
85+
- custom/main.yml
86+
skip: true

templates/settings.py.j2

+9-4
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ if env("ADD_REMOTE_ADDR_MIDDLEWARE", None):
202202
# Add custom middleware to set REMOTE_ADDR when using a unix domain socket
203203
MIDDLEWARE = MIDDLEWARE + (env("ADD_REMOTE_ADDR_MIDDLEWARE", None),)
204204

205-
try:
206-
import settings_custom
207-
except:
208-
pass
205+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
206+
207+
STATICFILES_DIRS = [
208+
os.path.join(BASE_DIR, 'static_custom')
209+
]
210+
211+
TEMPLATES[0]['DIRS'] = [
212+
os.path.join(BASE_DIR, 'templates')
213+
]

0 commit comments

Comments
 (0)