Skip to content

Commit

Permalink
WIP make it work first, then maybe clean
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Feb 27, 2024
1 parent c5d356c commit c6c22bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charm_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from netbox.original_settings import *

# very ugly all this module
MIDDLEWARE.insert(MIDDLEWARE.index('django.middleware.security.SecurityMiddleware') + 1, 'whitenoise.middleware.WhiteNoiseMiddleware')
3 changes: 3 additions & 0 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ parts:
wireless: "django/app/wireless"
override-pull: |-
craftctl default
# Very ugly
[ ! -d netbox.orig ] && mv netbox netbox.orig && cp -R netbox.orig/* .
cp charm_configuration.py ./netbox/configuration.py
[ ! -f netbox/original_settings.py ] && mv netbox/settings.py netbox/original_settings.py
cp charm_settings.py ./netbox/settings.py
after:
- django-framework/dependencies
override-build: |-
Expand Down

0 comments on commit c6c22bc

Please sign in to comment.