Skip to content

Instantly share code, notes, and snippets.

@Marakuba
Created September 11, 2018 12:58
Show Gist options
  • Select an option

  • Save Marakuba/e576d2e9ef609b6c7429b2419dedaafc to your computer and use it in GitHub Desktop.

Select an option

Save Marakuba/e576d2e9ef609b6c7429b2419dedaafc to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from django.core.management.utils import get_random_secret_key
if __name__ == "__main__":
with open(".env", "w") as env_file:
env_file.write("""DEBUG=on
SECRET_KEY={}
ALLOWED_HOSTS=*
DATABASE_URL=postgresql://django:django@localhost:5432/db
""".format(get_random_secret_key()))
@dharmagetic
Copy link

dharmagetic commented Oct 26, 2018

Hello!
I'm a Python/Django developer and I'm interested in collaboration with you
Can we talk in Telegram ?
My username in @dharmagetic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment