You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
978 B
46 lines
978 B
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
|
|
|