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 7dfa64b6e3 add cart template layouts 8 years ago
accounts_ext reffactor logic for model creation and update 8 years ago
cabinet add cabinet protected views 8 years ago
cart add cart protected views 8 years ago
contact_us partial refactor contact us view for ajax request 8 years ago
core add index admin title. fix message code package dependency 8 years ago
eshop_project remove django captcha from project settings 8 years ago
flatpages_ext add flatpages extension app 8 years ago
index move title string to context data method 8 years ago
products move offer model to cart app 8 years ago
referral add referral app 8 years ago
static add bootstrap library into static folder 8 years ago
templates add cart template layouts 8 years ago
.env.sample reffactor env sample file 8 years ago
.gitignore add assets file to ignore file 8 years ago
README.md update readme. separate deploy from develop 8 years ago
manage.py update settings for manage.py 8 years ago
requirements.txt remove django simple captcha 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
  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 email with command:
    celery -A eshop_project worker -l info --pool=eventlet

###Deployment

  1. Make .env file with the structure described in .env.sample file
  2. Make migrations for modules
  3. Collect static
  4. Restart gunicorn-eshop and celery-eshop daemons in systemd