Commits

Anonymous committed 5d2cd71

Updated documenation (djbrowse and djvirtualbrowse)

  • Participants
  • Parent commits 7ce1041

Comments (0)

Files changed (2)

                 instead of manage.py (unless you want to tweak things).
 * ``runserver``
                 perform ``django-admin.py runserver <port>``, using
-                settings.LOCAL_SERVER_PORT if defined (see also
-                bin/create_apache_vhost_conf.sh).
+                settings.LOCAL_SERVER_PORT if defined.
+* ``djbrowse``
+                points the browser to the server listening on
+                settings.LOCAL_SERVER_PORT in the current settings.
+* ``djvirtualbrowse``
+                Points the browser to the named virtual host for the current
+                settings. Assumes Apache is running as reverse proxy; see
+                bin/create_apache_vhoste_conf.sh for more information.
 * ``pipup``
                 call ``pip install`` with the appropriate file listing
                 the project's requirements.
     open $1
 }
 
-# Points the browser to server running the current settings:
+# Points the browser to the server running the current settings:
 # http://localhost:<settings.LOCAL_SERVER_PORT>/$1
 function djbrowse() {
     _verify_project_root_and_django_project || return 1
 
-
     local port=`get_django_setting LOCAL_SERVER_PORT 8000`
     open_url http://localhost:$port/$1
 }
 function djvirtualbrowse() {
     _verify_project_root_and_django_project || return 1
 
-
     local domain=local
     [ ! -z "$DOMAIN" ] && domain=$DOMAIN
     local django_settings_id=`echo $DJANGO_SETTINGS_MODULE | sed "s#.*\\.##"`