I have to salut you for your dedication to learning and teaching man! Its crazy to know people like you exist!
@CodingEntrepreneurs3 жыл бұрын
I’m certainly not the only one. Some people just enjoy to share knowledge; I hope you share as well
@stanleyowunna47164 жыл бұрын
Your tutorials have been me understand so many things I didn’t before . Thanks for all of them
@neo-the-one4 жыл бұрын
Great video 👌. I hope you do more twilio tutorials in the future
@exactbrain62484 жыл бұрын
i know its going to be perfect tutorial i just clicked, thanks i love you
@abdulsalamjamaeazidane54814 жыл бұрын
Keep going 😍
@serious60372 жыл бұрын
How do you always make something very easy very complicated and sound like its a endless labyrinth?
@moeghamdi65533 жыл бұрын
Great video man. How do I have that same message be sent to multiple phone numbers?
@likeashutoshkumar1974 жыл бұрын
Cool❤️
@gaylonalfano4 жыл бұрын
What's the difference between a webhook and a serverless function? They sound almost interchangeable.
@chikaotisi85833 жыл бұрын
How do you send to multiple numbers
@gaylonalfano4 жыл бұрын
Is creds.json essentially replacing something like an .env file? I've seen examples of storing these types of credentials in an .env file and then having a settings.py (or config.py) file that retrieves the environment variables using something like os.getenv("SECRET_VAR"). Just curious about the difference. Thanks!
@CodingEntrepreneurs4 жыл бұрын
Storing creds in environment variables is the best way for sure. `.env` files aren’t great for this.
@gaylonalfano4 жыл бұрын
@@CodingEntrepreneurs Thanks for the reply! Still lots to learn. I've slowly gotten comfortable with using .env, then a separate settings.py file and then finally importing these environment variables into my "public" code (e.g., from settings import ENV_VAR). I think I saw this flow inside the FastAPI docs so I just started copying it haha. Here is my attempt at making a function to reset credentials. Totally hacky but was just trying to see if I could make it work. The end result is it basically builds/writes my .env file. Way more complicated than necessary but I'm just exploring how to work between/around files. Great series and thanks again! def reset_credentials(reset_creds: bool = True): """ This will save our creds from above (blank or not) to a local .env file named so we can re-use these credentials. It's recommended to create new API keys for each new project so we can turn them off at anytime without causing disruption to other projects. """ if reset_creds: twilio_sid: str = getpass("What's the Twilio Account SID? ") twilio_secret: str = getpass("What's the Twilio Secret? ") send_to_number: str = getpass("What's the number to send to? ") send_from_number: str = getpass("What's the number to send from? ") creds: t.Dict[str, str] = { "TWILIO_SID": twilio_sid, "TWILIO_SECRET": twilio_secret, "SEND_TO_NUMBER": f"+{send_to_number}", "SEND_FROM_NUMBER": f"+{send_from_number}", } # print(f"creds dict: {creds.items()}") # Create a concatenated string for each credential k:v pair # creds_lines: t.List[str] = [] # for k, v in data.items(): # # Have to add newline for f.writelines() # cred_line: str = f"{k}={v} " # creds_lines.append(cred_line) creds_lines: t.List[str] = [f"{k}={v} " for k, v in creds.items()] # Now write each credential line to the .env file with open(".env", "w") as f: # Just write one line at a time: f.writelines(creds_lines) # Let's try it: reset_credentials(reset_creds=True)
@suliman14484 жыл бұрын
Can I download you videos?
@gauravsonthalia9214 жыл бұрын
How to generate a pdf report from django admin model object form. Please help. Really stuck with this one..