Skip to content

Instantly share code, notes, and snippets.

@leoschmitz
Created September 28, 2018 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leoschmitz/cca019f49adffd9d9043cb37915d228e to your computer and use it in GitHub Desktop.
Save leoschmitz/cca019f49adffd9d9043cb37915d228e to your computer and use it in GitHub Desktop.
running django-admin from virtualenv
#!/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
@leoschmitz
Copy link
Author

Then

./run-django-admin startproject

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