| anthony_p has quit (Ping timeout: 480 seconds) | 08:01 | |
| zOnny | Thomas and I had a productive weekend making excellent progress on moving Novawebdev to the Mayfirst platform. This weekend, we’re looking forward to enhancing our home website while we gain more experience with the Django framework. No Blockers. | 12:07 |
|---|---|---|
| zOnny | ACTION done | 12:07 |
| zOnny | Good morning gabriel_jetro | 12:07 |
| gabriel_jetro has quit (Quit: Connection closed for inactivity) | 14:15 | |
| gabriel_jetro has quit (Quit: Connection closed for inactivity) | 17:42 | |
| thomasboimah | Hi zOnny, I thought you said that you will not be here this weekend? | 17:45 |
| thomasboimah | zOnny, are you still here | 17:51 |
| thomasboimah | ? | 17:51 |
| zOnny | Hi thomas | 17:59 |
| zOnny | no worries | 17:59 |
| zOnny | I think there was a misunderstanding | 18:00 |
| thomasboimah | Ahh okay | 18:00 |
| zOnny | I said, I will let you know if I'm not be able to make it | 18:00 |
| zOnny | It is all good | 18:01 |
| thomasboimah | Ahh okay, I misunderstand that | 18:01 |
| zOnny | I was trying to make the env variables to work | 18:01 |
| zOnny | but it seems that we will need mayfirst help on this | 18:02 |
| zOnny | I really want the env variables to work in the settings | 18:02 |
| zOnny | it is very important to not override it | 18:03 |
| zOnny | We need to have a clear guidance from them and see what we need to do | 18:03 |
| zOnny | I tried so many ways | 18:04 |
| thomasboimah | Are you talking about the .env file | 18:04 |
| thomasboimah | ? | 18:04 |
| zOnny | yes | 18:04 |
| zOnny | but we are not using .env anymore | 18:04 |
| zOnny | I think that way is a little bit deprecated | 18:04 |
| zOnny | if you go to novawebdev CP | 18:05 |
| zOnny | and see the web configuration | 18:05 |
| zOnny | There is a way to make apache read the variables | 18:06 |
| zOnny | It seems we are being block on that feature | 18:06 |
| thomasboimah | But i use the .env file for the email set up: EMAIL_HOST = os.getenv("LO_EMAIL_HOST", "mail.mayfirst.org") | 18:07 |
| thomasboimah | EMAIL_PORT = 587 | 18:07 |
| thomasboimah | EMAIL_USE_TLS = True | 18:07 |
| thomasboimah | EMAIL_USE_SSL = False | 18:07 |
| thomasboimah | EMAIL_HOST_USER = os.getenv("LO_EMAIL_HOST_USER") | 18:07 |
| thomasboimah | EMAIL_HOST_PASSWORD = os.getenv("LO_EMAIL_HOST_PASSWORD", "") | 18:07 |
| thomasboimah | DEFAULT_FROM_EMAIL = "Secosol <do-not-reply@secosol.us>" | 18:07 |
| thomasboimah | SERVER_EMAIL = "Secosol <do-not-reply@secosol.us>" | 18:07 |
| zOnny | is that working with .env? | 18:07 |
| thomasboimah | yes | 18:07 |
| zOnny | what did you change? | 18:08 |
| thomasboimah | Nothing i just load the .env file in the setting and use it | 18:09 |
| zOnny | waht do you mean by load | 18:09 |
| zOnny | did you executed a command? | 18:09 |
| thomasboimah | from dotenv import load_dotenv | 18:09 |
| zOnny | in the seetings? | 18:10 |
| thomasboimah | yes | 18:10 |
| zOnny | I see | 18:10 |
| zOnny | I will look into it | 18:10 |
| thomasboimah | I install the python package dotenv | 18:11 |
| zOnny | right | 18:11 |
| zOnny | I'm aware of that package | 18:11 |
| thomasboimah | and load it in the setting to be able to use the .env file | 18:11 |
| zOnny | how about the DB? | 18:11 |
| zOnny | are you retrieving it with .env? | 18:12 |
| zOnny | or it is still hard-coded | 18:12 |
| thomasboimah | it is using the .env file too | 18:12 |
| thomasboimah | But for novaweb it dose not have the .env file | 18:14 |
| zOnny | It doesn't | 18:14 |
| thomasboimah | I guess we can touch .env file and put in the info we want to use and load it in the settings.py and use it | 18:15 |
| thomasboimah | if any only if we want it for novaweb | 18:16 |
| thomasboimah | *and* | 18:16 |
| zOnny | here is what I found | 18:17 |
| zOnny | Production: prefer real environment variables managed by the process manager or web server (systemd, Apache SetEnv, Docker/K8s secrets). They’re less likely to leak, don’t rely on a file on disk, and fit infra tooling/secret stores. | 18:18 |
| zOnny | Local dev: a .env file (git‑ignored) + loader (e.g., python-dotenv/django-environ) is convenient for developers and easy to share defaults without secrets. | 18:18 |
| zOnny | Shared hosting: if the host provides a way to set env vars in the panel/vhost, use that; otherwise a .env is fine but protect file perms. | 18:19 |
| zOnny | So: system/user env vars for production; .env for local/dev convenience. | 18:19 |
| thomasboimah has quit (Remote host closed the connection) | 18:20 | |
| zOnny | after all I think the .env is still good to work it | 18:21 |
| thomasboimah | sorry my connection drop | 18:23 |
| thomasboimah | ACTION going to read the log | 18:23 |
| thomasboimah | yep | 18:25 |
| thomasboimah has quit (Ping timeout: 480 seconds) | 18:35 | |
| thomasboimah | sorry for the disconnection | 18:36 |
| zOnny has quit (Remote host closed the connection) | 18:39 | |
| zOnny | all good | 18:40 |
| zOnny | I'm going to step away for now | 18:40 |
| zOnny | I will into secosol | 18:40 |
| thomasboimah | OKay | 18:40 |
| zOnny | see you tomorrow? | 18:40 |
| thomasboimah | Okay have a nice day | 18:41 |
| zOnny | or you want to take the day off? | 18:41 |
| zOnny | there isn't much to do from our meeting | 18:41 |
| thomasboimah | I'm Okay with anything you want zOnny | 18:41 |
| zOnny | Will let you know once I arrive home | 18:42 |
| thomasboimah | Okay | 18:42 |
| zOnny | I will send you an email about our meeting tomorrow | 18:42 |
| thomasboimah | Okay have a nice day, | 18:42 |
| zOnny | if you don't see anything it means we are meeting at the same time | 18:42 |
| thomasboimah | Alright | 18:42 |
| zOnny | see you | 18:42 |
| zOnny | ACTION signs off | 18:43 |
| zOnny has quit (None) | 18:43 | |
| thomasboimah | ACTION signs off | 18:43 |
| thomasboimah has quit (Quit: Leaving) | 18:43 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!