User Tools

Site Tools


hpc:argobalsam

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpc:argobalsam [2015/07/01 14:51]
jchilders [Installation]
hpc:argobalsam [2016/02/24 21:31] (current)
jchilders [Installation]
Line 89: Line 89:
   - Activate virtual environment: ''. argobalsam_env/bin/activate''   - Activate virtual environment: ''. argobalsam_env/bin/activate''
     - On Edison:     - On Edison:
-      - To use ''pip'' you need a certificate so run ''mk_pip_cabundle.sh'', then include ''--cert ~/.pip/cabundle'' in all your pip commands.+      - To use ''pip'' you need a certificate so run ''mk_pip_cabundle.sh'', then include ''%%--%%cert ~/.pip/cabundle'' in all your pip commands.
   - Install needed software:   - Install needed software:
-    - ''pip install django==1.6.2''  (necessary for python 2.6, if you have 2.7 you can go to higher django version)+    - ''pip install django'' 
 +      - if you have less than python-2.7 you need ''pip install django==1.6.2''
     - ''pip install south''     - ''pip install south''
     - ''pip install pika''     - ''pip install pika''
Line 99: Line 100:
   - ''cd argobalsam''   - ''cd argobalsam''
   - ''git clone [email protected]:balsam.git argobalsam_git''   - ''git clone [email protected]:balsam.git argobalsam_git''
-  - ''mv argobalsam_git/*_core ./'' +  - ''mv argobalsam_git/* ./'' 
-  - ''mv argobalsam_git/site_settings ./'' +  - ''rm -rf argobalsam_git/'' 
-  - Update the following line of the ''argobalsam/settings.py'' file to import the site-specific settings that are needed (may need a new one):<code python>+  - Update the following lines of ''argobalsam/settings.py'':  
 +    At the Top:<code python>
 from site_settings.mira_settings import * from site_settings.mira_settings import *
 </code> </code>
-  Sync your database <code bash> python manage.py syncdb </code> +    <code python>  
-  - Create the first migration <code bash> python manage.py schemamigration balsam_core --initial </code> +INSTALLED_APPS = ( 
-  - Apply the first migration <code bash> python manage.py migrate balsam_core --fake </code> +    'django.contrib.admin', 
-  - Create the first migration <code bash> python manage.py schemamigration argo_core --initial </code> +    'django.contrib.auth', 
-  - Apply the first migration <code bash> python manage.py migrate argo_core --fake </code>+    'django.contrib.contenttypes', 
 +    'django.contrib.sessions', 
 +    'django.contrib.messages', 
 +    'django.contrib.staticfiles', 
 +    'south', 
 +    'balsam_core', 
 +    'argo_core', 
 +
 +</code> 
 +    - If you are using MySQL: <code python> 
 +DATABASES = { 
 +    'default':
 +        'ENGINE': 'django.db.backends.mysql', 
 +        'NAME': 'your_table_name_goes_here', 
 +        'USER': 'your_login', 
 +        'PASSWORD': 'your_password', 
 +        'HOST': '127.0.0.1', 
 +        'PORT': '', 
 +        'CONN_MAX_AGE': 2000000, 
 +    } 
 +
 +</code> 
 +  - Setup your database:  
 +    - For Older Django using South (pre-1.7):  
 +      - <code bash> python manage.py syncdb </code> 
 +      - Create the first migration <code bash> python manage.py schemamigration balsam_core --initial </code> 
 +      - Apply the first migration <code bash> python manage.py migrate balsam_core --fake </code> 
 +      - Create the first migration <code bash> python manage.py schemamigration argo_core --initial </code> 
 +      - Apply the first migration <code bash> python manage.py migrate argo_core --fake </code> 
 +    - For newer Django (1.7,1.8): 
 +      - <code bash> python manage.py syncdb </code> 
 +    - For Django (1.9+): 
 +      - <code bash> python manage.py migrate --fake-initial </code> 
 ===== Git Tag Notes ===== ===== Git Tag Notes =====
  
hpc/argobalsam.1435762282.txt.gz · Last modified: 2015/07/01 14:51 by jchilders