Code Monkey home page Code Monkey logo

pcci-apps's Introduction

pcci-apps

apps run at PCCI

Alt text

  • this app run on django Django-1.6.5 , The latest version when I wrote it with python 27. It monitor The DMC (Maximal call duration ) and DMT (Maximal call handling) to each outband call to alert timemout. 90 percent of code is into admin.py and models.py

  • installing app dmt_timeout

**install django : see https://www.djangoproject.com

**create app manage.py startapp dmt_timeout

**install models.py for existing mysql pcci database python manage.py inspectdb > dmt_timeout/models.py

** remove not using models into models.py For me I use only Main , Statistiques

** change some type field to take adventage of the powefull django ORM .For me only one change Type I done Here :

change CharField to IntegerField

main_tempscom = models.CharField(db_column='Main_TempsCom', max_length=20, blank=True) # Field name made lowercase. to main_tempscom = models.IntegerField(db_column='Main_TempsCom', max_length=20, blank=True) # Field name made lowercase.

  • Hack on The django admin site To enabble calendar filter work , I add some lines hack to The django admin base.html , so add Theses following lines into . If you fine a more proper way to do that you are welcome
<script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script> $(function() { $( "#datepicker1" ).datepicker(); $( "#datepicker2" ).datepicker();

}); </script>

  • Sync db manage.py syncdb

  • Run server manage.py runserver HOST:PORT

pcci-apps's People

Contributors

aliounedia avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.