-
-
Notifications
You must be signed in to change notification settings - Fork 0
Ecommerce django oscar install
django-oscar documentation
site without sample products
user: master@tonyleekorea.com
passwd:tony1009!
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
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
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 |
Home by tonyleekorea jupyterpynative
Day 1 9 lectures
Day 2 6 lectures
-
[Day 2](day2/readme.md)
- 1 function handling
- 2 module package
- 3 ood class
- 4 library Pandas
- 5 lib Matplotlib
- 6 Numpy
- 7 day1 sequential data
- [Tutorial mode](https://github.com/adriantanasa/github-wiki-sidebar/wiki/Usage%3A-Tutorial-mode)
- 2 function global local
- [Command line modifiers](https://github.com/adriantanasa/github-wiki-sidebar/wiki/Usage%3A-Command-line-modifiers)