Open openoms opened 4 years ago
My bad.. I wanted to write docs.. But didn't get to it.
Basically you can create an empty settings_prod.py
file and put this in:
from . settings import *
SECRET_KEY = <GENERATED KEY HERE>
The reason for this was to have a way to override Django SECRET_KEY from the one being checked into this repo.
I managed to add the missing part for the installation on a Bridge Host
: https://github.com/frennkie/django-ip2tor#installation-on-a-host
This is really simple and straight forward (as intended).
The Django stuff (especially the settings_prod.py thing) needs some reconsideration.
Regarding the (secret)/local settings I'm looking at this https://github.com/joke2k/django-environ or this https://github.com/sloria/environs.
I extensively updated the shop installation documentation yesterday.
Now (dbfe35f974df4993373165911b4d8219895f3a1f) all that is needed is to fill the environment
or put a .env
file in the root directory.
ToDo: Update docs
@openoms I decided to use a dedicated user (ip2tor
) to run the services and simply install it in the home directory. This is now pretty similar to the way we setup apps on RaspiBlitz. Would be great if you could review/test the current instructions and files for the Shop
installation.
Aiming to follow the install process on a clean Debian 10 image.
getting stuck at:
When this file:
django_ip2tor.settings_prod
supposed to be created?