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
Last revision Both sides next revision
hpc:argobalsam [2015/09/15 16:01]
turam [Installation]
hpc:argobalsam [2016/01/26 18:58]
jchilders [Installation]
Line 119: Line 119:
 ) )
 </code> </code>
-  Sync your database: +    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):      - For Older Django using South (pre-1.7): 
       - <code bash> python manage.py syncdb </code>       - <code bash> python manage.py syncdb </code>
Line 126: Line 139:
       - Create the first migration <code bash> python manage.py schemamigration argo_core --initial </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>       - Apply the first migration <code bash> python manage.py migrate argo_core --fake </code>
-    - For newer Django (1.7+):+    - For newer Django (1.7,1.8):
       - <code bash> python manage.py syncdb </code>       - <code bash> python manage.py syncdb </code>
 +    - For Django (1.9+):
 +      - <code bash> python manage.py migration --fake-initial </code>
 +
 ===== Git Tag Notes ===== ===== Git Tag Notes =====
  
hpc/argobalsam.txt · Last modified: 2016/02/24 21:31 by jchilders