Skip to content

OWStimpson/oscar_webstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oscar-webstore

A basic implementation of the Oscar webstore

Running python manage.py runserver --settings=oscar_webstore_root.settings.prod

Instalation

  1. pip install django-oscar
  2. pip install unipath
  3. pip install django_compressor
  4. install postgres and set up db a) sudo su - postgres b) psql c) CREATE DATABASE dbname; d) CREATE USER username WITH PASSWORD 'password'; e) ALTER ROLE username SET client_encoding TO 'utf8'; f) ALTER ROLE username SET default_transaction_isolation TO 'read committed'; g) ALTER ROLE username SET timezone TO 'UTC'; h) GRANT ALL PRIVILEGES ON DATABASE dbname TO username;
  5. pip install django psycopg2
  6. pip install pycountry
  7. git clone https://github.com/OWStimpson/oscar_webstore
  8. python manage.py migrate --settings=oscar_webstore_root.settings.prod
  9. python manage.py oscar_populate_countries --no-shipping --settings=oscar_webstore_root.settings.dev
  10. edit address_country table and set GB record to allow shipping

Extras

  1. A test smtp server can be setup in dev using 'python -m smtpd -n -c DebuggingServer localhost:1025'
  2. start gunicorn with 'gunicorn oscar_webstore_root.wsgi_prod:application'
  3. kill all gunicorn processes with 'ps -ef | grep gunicorn | grep -v grep | awk '{print $2}' | xargs kill -9'
  4. restart ngnix with 'sudo systemctl restart nginx'

About

A basic implementation of the Oscar webstore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published