Changes between Version 7 and Version 8 of SimpleBashScriptToSetupDevelopmentEnvironment
- Timestamp:
- Dec 15, 2005, 2:53:49 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SimpleBashScriptToSetupDevelopmentEnvironment
v7 v8 1 1 = Simple Bash Script To Setup Development Environment = 2 3 ''' I'm now workin' on a python version of this script '''4 2 5 3 Don't know why the '''sh''' wiki processor ain't workin', maybe the server doesn't have `enscript` installed, so here's a plain and not that neat view of the script: … … 10 8 # Project Name, for example: 11 9 # DJANGO_PROJECT="$(basename `pwd`)" 12 DJANGO_PROJECT='' 10 #DJANGO_PROJECT='' 11 13 12 14 13 # Django's HTTP server settings 15 #SERVER_ADDR="1 0.1.0.1"14 #SERVER_ADDR="192.168.0.2" 16 15 #SERVER_PORT="8080" 17 16 … … 50 49 # Project Name, for example: 51 50 # DJANGO_PROJECT="$(basename `pwd`)" 52 DJANGO_PROJECT='' 51 #DJANGO_PROJECT='' 52 53 53 54 54 # Django's HTTP server settings 55 #SERVER_ADDR="1 0.1.0.1"55 #SERVER_ADDR="192.168.0.2" 56 56 #SERVER_PORT="8080" 57 57 … … 86 86 }}} 87 87 88 You also need to make some changes to your '''`~/.bashrc`'''. Add the following to it: 89 {{{ 90 #!sh 91 export DJANGO_PROJECT='' 92 export DJANGO_DB_NAME='' 93 export DJANGO_DB_USER='' 94 export DJANGO_DB_PASS='' 95 export DJANGO_SECRET_KEY='' 96 export DJANGO_SETTINGS_MODULE='' 97 }}} 98 {{{ 99 export DJANGO_PROJECT='' 100 export DJANGO_DB_NAME='' 101 export DJANGO_DB_USER='' 102 export DJANGO_DB_PASS='' 103 export DJANGO_SECRET_KEY='' 104 export DJANGO_SETTINGS_MODULE='' 105 }}} 106 88 107 To use it, just source it to update environment variables: 89 108 {{{ … … 96 115 }}} 97 116 98 This is of course, a file that you won't get into your revision control system, it has private data.117 This is of course, a file that you '''won't''' send/add to your revision control system, it has private data. 99 118 100 119 Now, on your project's '''`settings.py`''', you can use(these are just parts of '''`settings.py`''' of couse):