Skip to content

Ecommerce django oscar install

aiegoo edited this page Oct 9, 2019 · 2 revisions

django-oscar

check the documentation

django-oscar documentation
site without sample products

user: master@tonyleekorea.com
passwd:tony1009!

Run the sandbox locally

It’s pretty straightforward to get the sandbox site running locally so you can play around with Oscar.

In order to compile uWSGI, which is a dependency of the sandbox, you will first need to install the Python development headers with::

$ sudo apt install python3-dev Install Oscar and its dependencies within a virtualenv:

$ git clone https://github.com/django-oscar/django-oscar.git $ cd django-oscar $ mkvirtualenv --python=python3 oscar # needs virtualenvwrapper (oscar) $ make sandbox (oscar) $ sandbox/manage.py runserver Warning

Note, these instructions will install the head of Oscar’s ‘master’ branch, not an official release. Occasionally the sandbox installation process breaks while support for a new version of Django is being added (often due dependency conflicts with 3rd party libraries). Please ask on the mailing list if you have problems.

If you do not have mkvirtualenv, then replace that line with:

$ virtualenv --python=python3 oscar $ source ./oscar/bin/activate (oscar) $ The sandbox site (initialised with a sample set of products) will be available at: http://localhost:8000. A sample superuser is installed with credentials:

username: superuser email: superuser@example.com password: testing

run sandbox on linux centos 7 using condas

anaconda3 install methods are not explained here. Plz refer to other page here for the installation instructions.

virtualenv --python=/root/anaconda3/bin/python3 oscar # it took me two days to figure this out -- my virtualenv executable files were installed during the anaconda installation - run which python3 to display the path # to create virtualenv from conda, run conda create --namepip oscar python=3.5
pip install django
make sandbox
vim settings.py #add ip to default of allowed_hosts
python manage.py migrate
python manage.py createsuperuser
sandbox/manage.py runserver ip:port ## before running this, make sure to run vim /sandbox/settings.py to add the ip to allowed_hosts default in addition to 127...

### run sandbox on linux centos 7 using virtualenv without mkvirtuealenvwrapper

deactivate or conda deactivate before starting anew

git clone django-oscar
virtualenv --python=/root/anaconda3/bin/python3 oscar
source /root/repos/oscar/oscar/bin/activate
pip install django
make sandbox
vim settings.py
python manage.py migrate
sandbox/manage.py runserver 178.xxx.xxx.xxx:8085

oscar features

features

Clone this wiki locally