Here's a shortcut to get to environment variables quicker. 1) Press Windows key and when the search bar shows up, type in 'env' 2) Click on 'Edit the system environment variables' and you'll directly be taken to the window where you can edit you env variables.
We can also use windows credential manager for this purpose, one added benefit is that the credentials-password is stored as a hidden field, this can be accessed using keyring library.
niiice. so simple and easy to follow. my task got marked down because I made the newbie mistake of not hiding the django-project 'SECRET_KEY'. hope this correction meets their requirements.
I watched 10 tuts about this... I got ~60% information/ knowledge... and 5% practice... Here I found 100% needed informations and 100% base practice :D
I was using this method in a Scrapy spider, it didn't work...until... source ~/.bash_profile Then it worked. 👍 Just in case anyone else has done the same
Hey Corey, thank you very much for your all perfect tutorials. They are really beneficial for me because I am learning Python by myself. Also I just wanna say that if you speak a bit slower, it would be better for people who have english as a second language.But anyway they are really great tutorials for me and I appreciate your help.
couple of things which say, why this channel is the best for python on yt 1) he knows exactly what he is doing 2) he talks specifically what is needed for the viewer 3) The fluency ..( It's not about his first language being English. I have seen videos, people struggling a lot to explain) Thank u for being there Corey. U are Awesome *** This is to request for the Data Structure and Algorithms series u should start. Plz
Interesting take never knew this, my approach was in creating a credentials file and import from my main file - this was due to password expiration issues and would only need to update credentials file. thanks for the content and explanation.
Yo Corey, thank you for the wonderful contents as always, Is it possible to include multi-threading and multi-processing in the future topics, that would be very much appreciated,
To do this in the command line and set a global or system variable using SETX:: 1. Open command line as administrator 2. setx DB_USER "my_db_user" (> SUCCESS: Specified value was saved.) 3. Close and reopen command line 4. echo %DB_USER% my_db_user setx DB_USER "my_db_user" will put it in the User Variables setx /m DB_USER "my_db_user" will put it in the System Variables
Hi Corey, thank very much for the awesome videos! I have a question, what do we do if we don't have access to the same computer? I often work on different machines, how do I handle that?
If you are having trouble with gmail or smtp auth problems just activate less secure apps to your gmail, I recommend also don't use your main email for this kind of things
I am following all the steps, but still getting none for calling the environment variable. can you tell me where I went wrong here. I am following all the steps. The python is not generating any error, but no results in return. please give me advice.
Hi Corey, This is the first time I came across your channel. First of all thanks for making such informative videos. I have a question that lets say I want to deploy my app to AWS. Obviously, we are making environment variables to our local machine. So, how can we use them on AWS?
Hi Corey, I have intermediate skills in Python and Javascript, now I am interested in Bitcoin and Blockchain technologies. Which is suitable for Bitcoin? Python or Javascript or both.. when we use Python and when we use Javascript for Bitcoin? I have searched so many sites, but I can't get any detailed info about which technology to pick Can you clarify me.
Hey there. I wish I knew more about this, but I am fairly unfamiliar with Cryptocurrency at the moment. I know enough to be interested but not enough to teach anyone else. I plan on learning more in the near future and will be sure to make videos on anything I find out.
Thanks for this awesome video Corey! However, I wonder what will happen once i go live online. How do I manage this once I've uploaded my app to a cpanel online?
Good job @coreyms. But what I don't get here is where do I generate this database login details from? You said what you used in this demonstration is a dummy login details.
Hi Corey, thank you for amazing tutorials really enjoy all your videos, especially due to how simple and clearly you explain the topic you discuss. Speaking of Hiding Passwords and Secret Keys, some ideas for future videos, could you possibly cover SMTP Lib, or some other lib for accessing and handling emails using Python. If you have already covered the SMTP Lib, then sorry, just couldnt find its video using UA-cams search.
Hi Corey, thanks for the video first of all but I have a problem with setting environment and database_url which I mean I have no idea where to start from... my import file codes like this: import csv import os from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker # Set up database engine = create_engine(os.getenv("DATABASE_URL")) db=scoped_session(sessionmaker(bind=engine)) # Check for environment variable if not os.getenv("DATABASE_URL") raise RuntimeError("DATABASE_URL is not set") please give ma tip or idea how to start or proceed... thanks so much....
Very helpful and clear tutorial Corey. Thank you a lot ... Can you please make a video of how to deploy python flask app to server ? i'm very beginners with making web sites and staff like that , however i have been practicing only with local host and so on , i would love to learn hosting and staff like that
Couldn't someone hypothetically go into their own environment variables, set the user and password to whatever they liked to get access? Sorry if this is a stupid question, just seemed like there was a work-around.
one of the best channels out there for python, your channel has been one of my best references thank you for your tutorials
Thanks!
*The best
That's a fact. This helps me solve an issue I was having for a week because I'm an alien to Django.
Agreed he's so helpful
I think your videos are my fav now since you just go into exactly what the video is about without any silly music or anything =p
Here's a shortcut to get to environment variables quicker.
1) Press Windows key and when the search bar shows up, type in 'env'
2) Click on 'Edit the system environment variables' and you'll directly be taken to the window where you can edit you env variables.
Absolute Best Python teacher! Simple, straight to the point, all details explained! Just amazing!
Yes Finallt someone who just tells me what I want to know and how to do it! I have been looking for this for days!
We can also use windows credential manager for this purpose, one added benefit is that the credentials-password is stored as a hidden field, this can be accessed using keyring library.
woah. i've gotta come back to your channel later on, this was amazing. quick, simple, useful, easy to understand, perfect pacing! thanks!!!
Thank you so much! Was spending too much time online to fix my error, but all I had to do was close and reopen vs code.
Thanks for this.
I second the thanks for this lol! Was wondering why it wasnt working, had to reset the venv.
Incredibly easy to understand, easy to do, and quickly explained. Thank you very much my friend.
Thanks a lot for this. I also thanks those who do comment on the problems they faced and the possible solution....much love🥰
You know you are good. no confusing instructions whatsoever!
2020? still one of the best channel for Python coding.... Please keep it up
Corey , you gonna go to heaven , thank you so much , you have no idea how much i've been struggling with this .
Omg, u saved my day. I literally have to come up like this today. Thanks for the video!
Super simle and straight to the point. Saved me on a homework assignment for sure!
This vid saved me from forgetting to setup git ignore and leaking my tokens. Thank you Corey!
niiice. so simple and easy to follow.
my task got marked down because I made the newbie mistake of not hiding the django-project 'SECRET_KEY'.
hope this correction meets their requirements.
I watched 10 tuts about this... I got ~60% information/ knowledge... and 5% practice... Here I found 100% needed informations and 100% base practice :D
Started using Python in 2024 and I love this quick tip :)
I have been searching for a solution to securely store keys .. this method helps me.. thank you 👍
I was using this method in a Scrapy spider, it didn't work...until...
source ~/.bash_profile
Then it worked. 👍
Just in case anyone else has done the same
Thanks man. This video just solved almost 99.99% of my problems.. Bless up
one of the best tutorials ives seen
Wow!You saved my day man!Always delivering great content.Thanks!!
Hey Corey, thank you very much for your all perfect tutorials. They are really beneficial for me because I am learning Python by myself. Also I just wanna say that if you speak a bit slower, it would be better for people who have english as a second language.But anyway they are really great tutorials for me and I appreciate your help.
Watch it in 2x speed
Very helpful Tutorial Sir. Please Keep up this good work.
You make it look very simple. I will go ahead and use it in my next script.
couple of things which say, why this channel is the best for python on yt
1) he knows exactly what he is doing
2) he talks specifically what is needed for the viewer
3) The fluency ..( It's not about his first language being English. I have seen videos, people struggling a lot to explain)
Thank u for being there Corey. U are Awesome *** This is to request for the Data Structure and Algorithms series u should start. Plz
You Are A LIFE SAVOR! Thank you for all these amazing tutorials
Thanks for the easy approach
Love your channel.So informative and simple!
Great video! Quick, clear, and to the point
Really helpful thanks
Thanks a lot! Now I know how I can avoid adding passwords directly in my code.
You make python look easy bro. Keep it Up
Very useful and clearly explained. Thanks!
Very helpful Python Tip. Thank You.
Thank you for all of the amazing content you put together. I have learned so much from you.
Interesting take never knew this, my approach was in creating a credentials file and import from my main file - this was due to password expiration issues and would only need to update credentials file. thanks for the content and explanation.
Excellent video as always.
Nice and simple. Thanks!
Corey, you are a Python God!
Simple but useful video
Thank you for this. Very helpful
great advice and quick learnings to gain from Corey....
Yo Corey, thank you for the wonderful contents as always,
Is it possible to include multi-threading and multi-processing in the future topics,
that would be very much appreciated,
thanks a lot Corey! really useful!
Amazing tutorials !! Easy to understand..
damn... finally I found a proper explanation to this matter! ! ! thanks a lot! ! !
That is just awesome... thanks dude
To do this in the command line and set a global or system variable using SETX::
1. Open command line as administrator
2. setx DB_USER "my_db_user"
(> SUCCESS: Specified value was saved.)
3. Close and reopen command line
4. echo %DB_USER%
my_db_user
setx DB_USER "my_db_user" will put it in the User Variables
setx /m DB_USER "my_db_user" will put it in the System Variables
It helped Thanks!
love you corey for this video
Thank you very much for your great instructional videos!
Just watched your tutorial for MAC/Linux; searched for the Windows one to find a fix for my usecase!
This is what i needed. Thanks a lot.
This helps a lot... and it's so cool!!! Like wow!!
Exact solution to the problem I was facing, if a upload the code to a server maybe docker nothing else I have to do with regard to the passwords
Thanks a lot man! :) This was exactly what I needed, I really appreciate it.
Great video! thanks for sharing
Hi Corey, thank very much for the awesome videos! I have a question, what do we do if we don't have access to the same computer? I often work on different machines, how do I handle that?
Look at this video -- -- > ua-cam.com/video/YdgIWTYQ69A/v-deo.html
It worked, easy-peasy, thx
Thank you Corey!
Thanks, this helped me a lot!
simple and easy thanks
Thanks Corey!
Hi Corey, thanks for the tutorial. What if I set the environment variables but it keeps returning none when I try to read them in my python script?
If you are having trouble with gmail or smtp auth problems just activate less secure apps to your gmail, I recommend also don't use your main email for this kind of things
I am following all the steps, but still getting none for calling the environment variable. can you tell me where I went wrong here. I am following all the steps. The python is not generating any error, but no results in return. please give me advice.
Hi Corey,
This is the first time I came across your channel. First of all thanks for making such informative videos. I have a question that lets say I want to deploy my app to AWS. Obviously, we are making environment variables to our local machine. So, how can we use them on AWS?
ua-cam.com/video/YdgIWTYQ69A/v-deo.html
Hi Corey, I was wondering if you'd be making a tutorial on argparse as well? Also...can't wait for your new tutorial playlists especially pandas :D
If we save password as env variables in a server and if the hacker hacks into the server, wont he be able to see the password too?
Hi Corey,
I have intermediate skills in Python and Javascript, now I am interested in Bitcoin and Blockchain technologies. Which is suitable for Bitcoin? Python or Javascript or both..
when we use Python and when we use Javascript for Bitcoin?
I have searched so many sites, but I can't get any detailed info about which technology to pick
Can you clarify me.
Hey there. I wish I knew more about this, but I am fairly unfamiliar with Cryptocurrency at the moment. I know enough to be interested but not enough to teach anyone else. I plan on learning more in the near future and will be sure to make videos on anything I find out.
I might be a lil late, but thanks a lot
man i love this guy
Thanks for this awesome video Corey! However, I wonder what will happen once i go live online. How do I manage this once I've uploaded my app to a cpanel online?
so simple, thanks!
Good job @coreyms. But what I don't get here is where do I generate this database login details from? You said what you used in this demonstration is a dummy login details.
Thank you sir!
Thanks Corey, Really like your teaching =]
I also got subscribed to your channell.. thanks...
Hi Corey, thank you for amazing tutorials really enjoy all your videos, especially due to how simple and clearly you explain the topic you discuss. Speaking of Hiding Passwords and Secret Keys, some ideas for future videos, could you possibly cover SMTP Lib, or some other lib for accessing and handling emails using Python. If you have already covered the SMTP Lib, then sorry, just couldnt find its video using UA-cams search.
Hi Corey, thanks for the video first of all but I have a problem with setting environment and database_url which I mean I have no idea where to start from... my import file codes like this:
import csv
import os
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
# Set up database
engine = create_engine(os.getenv("DATABASE_URL"))
db=scoped_session(sessionmaker(bind=engine))
# Check for environment variable
if not os.getenv("DATABASE_URL")
raise RuntimeError("DATABASE_URL is not set")
please give ma tip or idea how to start or proceed... thanks so much....
Thanks you so much 🤗❣️
Thank you!
How about password vault?I am stuck in finding out the best practice to store password.
This tutorial helped me a lot thanks for making theese amazing videos +1 sub
Very helpful and clear tutorial Corey. Thank you a lot ... Can you please make a video of how to deploy python flask app to server ? i'm very beginners with making web sites and staff like that , however i have been practicing only with local host and so on , i would love to learn hosting and staff like that
Couldn't someone hypothetically go into their own environment variables, set the user and password to whatever they liked to get access? Sorry if this is a stupid question, just seemed like there was a work-around.
this is awsome thanks
This was a very heplful video.
You are awesome! thank you so much!
Best tutorials...
I love this channel!
I LOVE YOU MAN
thank you so much;😊😊
thanks. Very useful!
Thank Corey with you IT is god damn simple
I'm using pycharm
I followed every step but still getting 'None' even after restarting IDE and PC
Add environment variables both in User Variables and System Variables
THANK YOU
THANK YOU SO MUCH!