- Python >= 3.5
- PostgreSQL >= 9.5
- virtualenv
- Clone project SpaceShop
- Create settings.ini file, example below;
- Go to the project root directory "spaceshop", through your terminal or other way;
- Run script setup.sh e.g.(sh setup.sh), this script will install all dependencies
- Run script update.sh e.g.(sh update.sh), for set up needed options and special commands, also create admin user with credentials (email=root@spaceshop.com, password=root);;
- After that you should set project interpreter from virtual environment from ./soft_environment/python_env, e.g.(./soft_environment/python_env/bin/python3.5);
- Also need create django-server in your IDE, if you are use it.
- Would you like use pip for instalation or other, don't forget activate python env, like we do it above
Create settings.ini
,file in project root
with options like this:
[settings]
DEBUG=True
ALLOWED_HOSTS=.127.0.0.1
SECRET_KEY=stf)=8djmvems$$lnmc-2@o9puwf&$u(ui51nvdy2vs$)%%d$v+
DB_ENGINE=django.db.backends.postgresql_psycopg2
DB_NAME=spaceshopdb
DB_USER=root
DB_PASSWORD=root
DB_HOST=127.0.0.1
DOMAIN_NAME=localhost:8000
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
Don't forget about database, you should create it alone, configure roles and permissions if you have some special
- Markdown support
- BashSupport
- Clone project SpaceShop
- Create settings.ini file, example below;
- Go to the project root directory "spaceshop", through your terminal or other way;
- Run script setup.sh e.g.(sh setup.sh), this script will install all dependencies
- Run script update.sh e.g.(sh update.sh), for set up needed options and special commands, also create admin user with credentials (email=root@spaceshop.com, password=root);
- Reload your server
- Don't forget about python env activation, during your activity on server
Create settings.ini
,file in project root
with options like this:
[settings]
DEBUG=False
ALLOWED_HOSTS=your host
SECRET_KEY=your key
DB_ENGINE=django.db.backends.postgresql_psycopg2
DB_NAME=name of your DB
DB_USER= your user
DB_PASSWORD=yiur password
DB_HOST= your DB host
DOMAIN_NAME=your domain name
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
- PEP8