Created
September 28, 2018 21:12
-
-
Save leoschmitz/cca019f49adffd9d9043cb37915d228e to your computer and use it in GitHub Desktop.
running django-admin from virtualenv
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
#!/bin/bash | |
if [[ -z "${VIRTUAL_ENV}" ]]; then | |
echo "Please enter your virtualenv first!" | |
exit 1 | |
else | |
${VIRTUAL_ENV}/lib/python2.7/site-packages/django/bin/django-admin.py $@ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then
./run-django-admin startproject