epicerie Django Project
This is a sample Python project, part of the adoc project.
Getting started
Prepare a Python virtual environment:
python -m venv env source env/bin/activate pip install -r requirements.txt
Initialize the Django installation:
./manage.py migrate ./manage.py createsuperuser
Start the development server:
./manage.py runserver
API Reference
Module epicerie
Module epicerie.admin
Classes
@admin.register(Potato)
class PotatoAdmin
Ancestors
@admin.register(Tomato)
class TomatoAdmin
Ancestors
@admin.register(Eggplant)
class EggplantAdmin
Ancestors
Module epicerie.apps
Classes
class EpicerieConfig
Ancestors
Module epicerie.models
Classes
class WeighableMixin
Mixin for weighable products.
This mixin provides a weight
field and a convert()
method which
provides conversiont between (e.g.: gram to kilogram).
class Product
Ancestors
class Potato
Ancestors
class Tomato
Ancestors
class Eggplant
Ancestors
Module epicerie.views
Module epicerie.views.eggplants
Classes
class EggplantSerializer
Ancestors
class EggplantViewSet
Ancestors
Module epicerie.views.potatoes
Classes
class PotatoSerializer
Ancestors
class PotatoViewSet
Ancestors
Module epicerie.views.tomatoes
Classes
class TomatoSerializer
Ancestors
class TomatoViewSet