cd /home/cloudsa/ mkdir pureftp.cloudsa.org git clone [email protected]:SRELabs/pureftp.git pureftp.cloudsa.org
cd pureftp.cloudsa.org pip install -r requirements.txt
mv archer/settings.py.sample archer.setting.py如果你使用sqlite3,数据库配置默认即可。如果想使用MySQL,那么请将配置文件中的mysql改为default即可。
vim archer/settings.py
DATABASES = { 'mysql': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'archer_user', 'USER': 'root', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306', }, 'default':{ 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'data/main.db' } }
python manage.py migrate
# python manage.py createsuperuser Username (leave blank to use 'root'): cloudsa Email address: [email protected] Password: Password (again): Superuser created successfully.
python manage.py runserver2017-05-26