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.
 
 
 
 
Max Yakovenko e024f377ac add build files to ignore 8 years ago
accounts_ext update accounts_ext app 8 years ago
blog_ext add blog_ext app 8 years ago
cabinet update cabinet app 8 years ago
cart update cart app 8 years ago
contact_us update contact_us app 8 years ago
core update core app 8 years ago
eshop_project update project settings. add blog config app 8 years ago
flatpages_ext update flatpages_ext app 8 years ago
index add index app 8 years ago
products update products 8 years ago
referral update referral app 8 years ago
static add build files to ignore 8 years ago
templates update templates 8 years ago
.env.sample add recaptcha keys settings to env file 8 years ago
.gitignore add build files to ignore 8 years ago
README.md update README fiel 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 add gulp for building client scripts and styles 8 years ago
requirements.txt update project django dependencies 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

###Development

  1. Make .env file with the structure described in .env.sample file
  2. Make migrations for modules: auth, accounts_ext, etc.
  3. Start celery queue for tasks with the command:
    celery -A eshop_project worker -l info --pool=eventlet

###Deployment

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