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.
 
 
 
 
FUNNYDMAN 7cd4a3fbce remove commented stuff from admin file 7 years ago
accounts_ext optimize imports and reformat code according to pep8 7 years ago
assets/media add simple mock images for testing front-end part 7 years ago
blog_ext optimize imports and reformat code according to pep8 7 years ago
cabinet optimize imports and reformat code according to pep8 7 years ago
cart optimize imports and reformat code according to pep8 7 years ago
contact_us optimize imports and reformat code according to pep8 7 years ago
core fix typos in tests 7 years ago
eshop_project fix typos in tests 7 years ago
flatpages_ext optimize imports and reformat code according to pep8 7 years ago
index optimize imports and reformat code according to pep8 7 years ago
products remove commented stuff from admin file 7 years ago
referral optimize imports and reformat code according to pep8 7 years ago
static add folders for migrations 7 years ago
templates fix problem with displaying products 7 years ago
.env.sample remove DJANGO_DEBUG_TOOLBAR env variable 7 years ago
.gitignore add simple mock images for testing front-end part 7 years ago
README.md update readme 8 years ago
eshop_old.tar.gz add old project archive 8 years ago
gulpfile.js add gulp for building client scripts and styles 8 years ago
manage.py update settings for manage.py 8 years ago
package.json update package.json file 8 years ago
requirements.txt add requirements 8 years ago
setup.cfg add project code style config 8 years ago

README.md

Online software storefront

Python version: 3.5.2

Django 2.0


Server configuration

  1. Use systemd file with name gunicorn-eshop.service to initialize gunicorn server with DJANGO_SETTINGS_MODULE environment var
  2. Use systemd file with name celery-eshop.service to initialize celery following with these instructions
  3. Install virtualenv inside the project directory in run server
  4. Install dependencies from inside the activated virtualenv
  5. Create empty logs dir in project directory
  6. Install nodejs with npm(nvm preferably)
  7. install all packages

###Development

  1. Activate eshop environment using virtualenvwrapper(workon)
  2. Make .env file with the structure described in .env.sample file
  3. Make migrations for modules: auth, accounts_ext, etc.
  4. Start celery queue for tasks with the command:
    celery -A eshop_project worker -l info --pool=eventlet
  5. Make alias for gulp with alias command and path gulp executable file
  6. Run gulp default

###Deployment

  1. Activate eshop environment using virtualenvwrapper(workon)
  2. Make pull request from bitbucket repo by ssh using passphrase
  3. Make .env file with the structure described in .env.sample file
  4. Make migrations for modules
  5. Collect static
  6. Restart gunicorn-eshop and celery-eshop daemons in systemd
  7. Load fixture core fixture sites to configure site domain (before the FIRST http request)