Skip to content

Commit

Permalink
fix issue with css on browsable api
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptosharks131 committed Dec 9, 2021
1 parent 80e3604 commit 46bb0ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ services:
lndg:
build: .
volumes:
- /root/.lnd:/root/.lnd
- /root/.lnd:/root/.lnd:ro
command:
- sh
- -c
- python initialize.py -net 'mainnet' -server 'localhost:10009' -d && python manage.py migrate && supervisord && python manage.py runserver 0.0.0.0:8000
- python initialize.py -net 'mainnet' -server 'localhost:10009' -d && python manage.py migrate && python manage.py collectstatic --no-input && supervisord && python manage.py runserver 0.0.0.0:8000
ports:
- 8889:8000
2 changes: 1 addition & 1 deletion gui/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ <h2>Update Auto Rebalancer Settings</h2>
<label for="outbound_percent">Target Outbound Above (%): </label>
<input id="outbound_percent" type="number" step="0.01" min="0" max="1" name="outbound_percent">
<label for="fee_rate">Global Max Fee Rate (ppm): </label>
<input id="fee_rate" type="number" min="0" max="200" name="fee_rate">
<input id="fee_rate" type="number" min="0" max="1500" name="fee_rate">
<label for="max_cost">Max Cost (%): </label>
<input id="max_cost" type="number" step="0.01" min="0" max="1" name="max_cost">
<input type="submit" value="OK">
Expand Down
6 changes: 2 additions & 4 deletions initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois
#Generate a unique secret to be used for your django site
secret = secrets.token_urlsafe(64)
if whitenoise:
sfl = '#'
wnl = """
'whitenoise.middleware.WhiteNoiseMiddleware',"""
else:
sfl = ''
wnl = ''
settings_file = '''"""
Django settings for lndg project.
Expand Down Expand Up @@ -51,7 +49,7 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
%s'django.contrib.staticfiles',
'django.contrib.staticfiles',
'django.contrib.humanize',
'gui',
'rest_framework',
Expand Down Expand Up @@ -141,7 +139,7 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'gui/static/')
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
''' % (secret, debug, node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, sfl, wnl)
''' % (secret, debug, node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, wnl)
try:
f = open("lndg/settings.py", "x")
f.close()
Expand Down

0 comments on commit 46bb0ce

Please sign in to comment.