We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67108f0 + a88bcec commit 5b58f73Copy full SHA for 5b58f73
docs/source/scripts.rst
@@ -29,6 +29,7 @@ If your :ref:`WORKON_HOME <variable-WORKON_HOME>` is set to ~/.virtualenvs:
29
Edit the file so it contains the following (for a default Django setup):
30
31
# Automatically set django settings for the virtualenv
32
+
33
echo "export DJANGO_SETTINGS_MODULE=$1.settings" >> "$1/bin/activate"
34
35
Create a new virtualenv, and you should see DJANGO_SETTINGS_MODULE in your env!
0 commit comments