зеркало из https://github.com/mozilla/bedrock.git
Put the installation documentation in docs.
This commit is contained in:
Родитель
8cfa281273
Коммит
eca0b610fe
50
README.md
50
README.md
|
@ -6,56 +6,6 @@ awesome, and open sourcy as always. Perhaps even a little more.
|
|||
|
||||
Stay tuned.
|
||||
|
||||
Install
|
||||
-------
|
||||
|
||||
To install bedrock, fire a commandline and type the following:
|
||||
|
||||
$ virtualenv venv
|
||||
$ source venv/bin/activate
|
||||
$ pip install -r requirements/dev.txt
|
||||
|
||||
Once you've done that, you'll need to configure the application to run
|
||||
locally. Create a `settings/local.py` file, containing the following:
|
||||
|
||||
# This is an example settings_local.py file.
|
||||
# Copy it and add your local settings here.
|
||||
|
||||
from settings import *
|
||||
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'db.sql',
|
||||
},
|
||||
}
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
'LOCATION': 'translations'
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG = TEMPLATE_DEBUG = True
|
||||
LESS_PREPROCESS = True
|
||||
|
||||
You will need to have a less compiler. You can get one on debian/ubuntu by
|
||||
installing the "libjs-less" package.
|
||||
|
||||
Make it run
|
||||
-----------
|
||||
|
||||
To make the server run, make sure you are inside a virtualenv, and then
|
||||
run the server with your local settings:
|
||||
|
||||
python manage.py runserver --settings settings.local
|
||||
|
||||
If you are not inside a virtualenv, you can activate it by doing
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
Docs
|
||||
----
|
||||
|
||||
|
|
|
@ -41,7 +41,31 @@ works like django.::
|
|||
cp settings/local.py-dist settings/local.py
|
||||
./manage.py runserver
|
||||
|
||||
This section will be expounded soon.
|
||||
To install bedrock, fire a commandline and type the following::
|
||||
|
||||
$ virtualenv venv
|
||||
$ source venv/bin/activate
|
||||
$ pip install -r requirements/dev.txt
|
||||
|
||||
Once you've done that, you'll need to configure the application to run
|
||||
locally. Copy the `local.py-dist` file to `settings/local.py` file::
|
||||
|
||||
$ cp settings/local.py-dist settings/local.py
|
||||
|
||||
You will need to have a less compiler. You can get one on debian/ubuntu by
|
||||
installing the "libjs-less" package.
|
||||
|
||||
Make it run
|
||||
-----------
|
||||
|
||||
To make the server run, make sure you are inside a virtualenv, and then
|
||||
run the server with your local settings::
|
||||
|
||||
$ python manage.py runserver --settings settings.local
|
||||
|
||||
If you are not inside a virtualenv, you can activate it by doing::
|
||||
|
||||
$ source venv/bin/activate
|
||||
|
||||
PHP
|
||||
---
|
||||
|
|
|
@ -6,19 +6,8 @@ from settings import *
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': '',
|
||||
'USER': '',
|
||||
'PASSWORD': '',
|
||||
'HOST': '',
|
||||
'PORT': '',
|
||||
'OPTIONS': {
|
||||
'init_command': 'SET storage_engine=InnoDB',
|
||||
'charset' : 'utf8',
|
||||
'use_unicode' : True,
|
||||
},
|
||||
'TEST_CHARSET': 'utf8',
|
||||
'TEST_COLLATION': 'utf8_general_ci',
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'db.sql',
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -29,11 +18,5 @@ CACHES = {
|
|||
}
|
||||
}
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@domain.com'),
|
||||
)
|
||||
|
||||
MANAGERS = ADMINS
|
||||
|
||||
|
||||
DEBUG = TEMPLATE_DEBUG = True
|
||||
LESS_PREPROCESS = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче