How to Create your own e-commerce shop using Django-Oscar

$ pip install django-oscar
$ django-admin.py startproject <project-name>
import oslocation = lambda x: os.path.join(
os.path.dirname(os.path.realpath(__file__)), x)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
)from oscar import OSCAR_MAIN_TEMPLATE_DIRTEMPLATE_DIRS = (
location('templates'),
OSCAR_MAIN_TEMPLATE_DIR,
)
{% extends 'oscar/promotions/home.html' %}{% block content %}
Content goes here
...
...
{% endblock content %}

The article was originally published at MicroPyramid blog.

--

--

--

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Data Modeling with Cassandra

Configure Web Server and Setup Python Interpreter on Docker Container

Rigel protocol That’s now not all!

👨🏼‍🔬 > 🥷🏼 | UpSkillin’ the Dev in DevOps

Easy way to learn code (in 5 steps)….!!!

SEOR & SEORSEA Mystery Boxes Airdrop

Using ARKit To Display Video In Augmented Reality

A Closer Look at Heapsort

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
MicroPyramid

MicroPyramid

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company

More from Medium

Virtual environment set up for Django Application

App Inventor — An Application to Build One

Retrieving images using database and media in Django

Retrieve Twilio Call Logs Using Django