parent
c22b0271a5
commit
8ef7b00241
1 changed files with 46 additions and 0 deletions
@ -0,0 +1,46 @@ |
||||
Expomap project |
||||
#mysql |
||||
sudo apt-get install mysql-server mysql-client libmysqlclient-dev mysql-workbench |
||||
|
||||
#memcached |
||||
sudo apt-get install libmemcached-dev |
||||
|
||||
# south |
||||
pip install south -U |
||||
|
||||
### proj/local.py EXAMPLE |
||||
```python |
||||
# -*- coding: utf-8 -*- |
||||
from proj.settings import * |
||||
|
||||
|
||||
DATABASES = { |
||||
'default': { |
||||
'ENGINE': 'django.db.backends.mysql', |
||||
'NAME': 'expomap', |
||||
'USER': 'root', |
||||
'PASSWORD': '***', |
||||
'HOST': '', |
||||
'PORT': '', |
||||
} |
||||
} |
||||
|
||||
CACHES = { |
||||
"default": { |
||||
"BACKEND": "redis_cache.cache.RedisCache", |
||||
"LOCATION": "/var/run/redis/redis.sock", |
||||
"OPTIONS": { |
||||
"CLIENT_CLASS": "redis_cache.client.DefaultClient", |
||||
}, |
||||
} |
||||
} |
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
||||
|
||||
INSTALLED_APPS += ('south',) |
||||
``` |
||||
|
||||
# |
||||
python manage.py syncdb --settins=proj.local |
||||
python manage.py migrate settings 0001 --fake --settins=proj.local |
||||
python manage.py migrate settings --settins=proj.local |
||||
Loading…
Reference in new issue