Commits

Anonymous committed 9320e02

$SHOW_DJANGO_ENVIRONMENT only supports "yes" now

Comments (0)

Files changed (2)

     PS1=[$DJANGO_PROJECT]$PS1
 
     # Show environment info
-    if [ ! -z "$SHOW_DJANGO_ENVIRONMENT" ]; then
-        if [ "$SHOW_DJANGO_ENVIRONMENT" = "yes" ]; then
-            echo Welcome to $DJANGO_PROJECT. Environment info:
-            djenv
-            echo
-            if [ "$SHOW_DJANGO_ENVIRONMENT" = "settings" ]; then
-                echo Django settings:
-                PAGER=cat python -c "import $DJANGO_SETTINGS_MODULE; help($DJANGO_SETTINGS_MODULE)" | grep -v "^$"
-                echo
-            fi
-        fi
+    if [ "$SHOW_DJANGO_ENVIRONMENT" = "yes" ]; then
+        echo Welcome to $DJANGO_PROJECT. Environment info:
+        djenv
     fi
 
     # Check non-critical settings
         sed 's/$/c/' | xargs $extra_xargs_args rm -v" | bash
 }
 
-# Remove empty directories
+# Remove all empty directories in the project
 function removeemptydirs() {
     _verify_project_root || return 1
 

bin/initenv_example

 # The root of the project, i.e. the directory containing your Django projects
 # PROJECT_ROOT=/Users/joe/projects/myproject
 PROJECT_ROOT=$HOME/repos/django-environments
-# Debugging output: 'yes' shows basic info, 'settings' all settings
+# Show primary settings after chaning project and settings using djenv
 SHOW_DJANGO_ENVIRONMENT=yes
 
 source $PROJECT_ROOT/bin/djenvlib