Changes between Version 7 and Version 8 of SimpleBashScriptToSetupDevelopmentEnvironment


Ignore:
Timestamp:
12/15/05 02:53:49 (9 years ago)
Author:
Pedro Algarvio <ufs@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SimpleBashScriptToSetupDevelopmentEnvironment

    v7 v8  
    11= Simple Bash Script To Setup Development Environment =
    2 
    3 ''' I'm now workin' on a python version of this script '''
    42
    53Don'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:
     
    108# Project Name, for example:
    119# DJANGO_PROJECT="$(basename `pwd`)"
    12 DJANGO_PROJECT=''
     10#DJANGO_PROJECT=''
     11
    1312
    1413# Django's HTTP server settings
    15 #SERVER_ADDR="10.1.0.1"
     14#SERVER_ADDR="192.168.0.2"
    1615#SERVER_PORT="8080"
    1716
     
    5049# Project Name, for example:
    5150# DJANGO_PROJECT="$(basename `pwd`)"
    52 DJANGO_PROJECT=''
     51#DJANGO_PROJECT=''
     52
    5353
    5454# Django's HTTP server settings
    55 #SERVER_ADDR="10.1.0.1"
     55#SERVER_ADDR="192.168.0.2"
    5656#SERVER_PORT="8080"
    5757
     
    8686}}}
    8787
     88You also need to make some changes to your '''`~/.bashrc`'''. Add the following to it:
     89{{{
     90#!sh
     91export DJANGO_PROJECT=''
     92export DJANGO_DB_NAME=''
     93export DJANGO_DB_USER=''
     94export DJANGO_DB_PASS=''
     95export DJANGO_SECRET_KEY=''
     96export DJANGO_SETTINGS_MODULE=''
     97}}}
     98{{{
     99export DJANGO_PROJECT=''
     100export DJANGO_DB_NAME=''
     101export DJANGO_DB_USER=''
     102export DJANGO_DB_PASS=''
     103export DJANGO_SECRET_KEY=''
     104export DJANGO_SETTINGS_MODULE=''
     105}}}
     106
    88107To use it, just source it to update environment variables:
    89108{{{
     
    96115}}}
    97116
    98 This is of course, a file that you won't get into your revision control system, it has private data.
     117This is of course, a file that you '''won't''' send/add to your revision control system, it has private data.
    99118
    100119Now, on your project's '''`settings.py`''', you can use(these are just parts of '''`settings.py`''' of couse):
Back to Top