mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
80439c495e
* Rudimentary python3 support * update docs and trigger Travis * fix some of the tests * fix all python3 errors * change env calls to just python * add @python_2_unicode_compatible decorator to models for python2 compatibility * switch netbox.configuration to from netbox import configuration
9 lines
318 B
Python
Executable File
9 lines
318 B
Python
Executable File
#!/usr/bin/env python
|
|
# This script will generate a random 50-character string suitable for use as a SECRET_KEY.
|
|
import os
|
|
import random
|
|
|
|
charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*(-_=+)'
|
|
random.seed = (os.urandom(2048))
|
|
print(''.join(random.choice(charset) for c in range(50)))
|