Created
September 11, 2018 12:58
-
-
Save Marakuba/e576d2e9ef609b6c7429b2419dedaafc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I'm a Python/Django developer and I'm interested in collaboration with you
Can we talk in Telegram ?
My username in @dharmagetic