O'Reilly logo

Python 3 Web Development Beginner's Guide by Michel Anders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action implementing a basic CRM

Have a look at the following code (available as crm1.py). It will define the entities identified in the previous section and the result, when run, will have a familiar look:

Time for action implementing a basic CRM

We've added a little bit of CSS styling to order the elements on the page, but in the final revision, we will give it a much more attractive look. Clicking on the Add new button will allow you to add a new entity.

What just happened?

These humble beginnings in implementing CRM were accomplished by the code in crm1.py:

Chapter8/crm1.py

 import os import cherrypy from entity import AbstractEntity, Attribute, Picklist, AbstractRelation from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required