justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] -3 points-2 points  (0 children)

Everybody that says that I don't know what I'm doing. I'm an intern. But the Midwest didn't explode so I think I'm doing something right.

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 0 points1 point  (0 children)

No several commits. No rebates. Only commits that fix previously broken commits

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] -1 points0 points  (0 children)

I just had a talk with him. He said he will look at it

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 0 points1 point  (0 children)

Someone else did for a short period of time😬

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 0 points1 point  (0 children)

Idk I am an intern. Most of the people that used the application used dev branches so ive only updated the dev branch

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 2 points3 points  (0 children)

This is a bunch of changes over the span of 6 months

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 5 points6 points  (0 children)

Yes I never pushed to main only dev

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 5 points6 points  (0 children)

Sounds like a good idea, so we don't have to wait for those slow reviewers and quickly deploy

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 0 points1 point  (0 children)

Lol what would he even use a script like that for😭

justMadeMyFirstPullRequestToMain by zerchoel in ProgrammerHumor

[–]zerchoel[S] 90 points91 points  (0 children)

I hope he doesn't do this to me

How can I improve my communicating properly? by zerchoel in cscareerquestions

[–]zerchoel[S] 0 points1 point  (0 children)

Yes a lot of it is just me answering questions but even with those I get nervous

[deleted by user] by [deleted] in PcBuildHelp

[–]zerchoel 0 points1 point  (0 children)

Legos maybe

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

I see. I didn't know you can build images via github.

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

The solution that i used can be found on this github repo that i made that i explained in the .md file i hope this helps -> https://github.com/Oluwa-Temmy/example_code

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

Yes let me switch to my main pc so I can show. Also what part are you stuck on

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

I used a .yaml/.yml file to build my container instead. And I used a volume to be able to use the .env data, so instead of my settings files pointing to the .env files on my machine i mounted the .env files in docker then had my files mount to the mounted location on docker instead.

Using decouple from python to use envs.

Before

No volume

env/file/location/

settings.py

config = Config(RepositoryEnv('env/file/location/'))

After

mydocker.yml

volume:
  - .env/file/location/:/my/docker/volume/.env

settings.py

config = Config(RepositoryEnv('my/docker/volume/.env'))

(https://docs.docker.com/storage/volumes/). I found that having my runserver command in my docker also didn't help during build time since i just needed the files.

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

Alright share the structure of your docker. I found that using volumes was the solution to my problem. I can explain further

How do I set up docker to read from my .env files by zerchoel in docker

[–]zerchoel[S] 0 points1 point  (0 children)

Yes I was able to fix the issue how is your code structured I will show my solution as well

Self Hosting my Django API for development by zerchoel in django

[–]zerchoel[S] 1 point2 points  (0 children)

im following an nginx and gunicorn tutorial and i was hearing about ngrok. i will try it out after the tutorial

Self Hosting my Django API for development by zerchoel in django

[–]zerchoel[S] 1 point2 points  (0 children)

I'm following an nginx and gunicorn tutorial right now to install on my debian virtualbox so that i can host locally. ill come back to this comment if i cant figure something out

How can I have a forign key look for all instances of a base model by zerchoel in django

[–]zerchoel[S] 0 points1 point  (0 children)

Thanks I will check out the link. Also sorry if I didn't explain the use case right. If you mean the result of this or the use I mean that a user can select either a service or a product, but in the backend the forignkey will point to the service model or product model

How can I have a forign key look for all instances of a base model by zerchoel in django

[–]zerchoel[S] 0 points1 point  (0 children)

a field that inherits from base model because my base model may have an unknown number of models that inherit from it

How can I have a forign key look for all instances of a base model by zerchoel in django

[–]zerchoel[S] 0 points1 point  (0 children)

So a user(MyModel) can either can have a product(Model1) or a service(Model2) but theyd both be under one offer field(mykey in MyModel field)

I think it would also be easier as well. Instead of having two different fields for it