Skip to content

Latest commit

 

History

History
134 lines (86 loc) · 4.23 KB

README.md

File metadata and controls

134 lines (86 loc) · 4.23 KB

Requirements

Optional

South vs. Evolution: http://stackoverflow.com/questions/1590944/currently-using-django-evolution-is-south-better-and-worth-switching

Installation

$ pip install Django
$ pip install recaptcha-client

For SQLite:

$ pip install pysqlite

For mySQL, install development libraries first (if mysql_config is missing):

$ sudo apt-get install libmysqlclient-dev

Then install the bindings themselves:

$ pip install MySQL-python

Installation instructions for django-bbmarkup:

ln -s `pwd`/bbmarkup ~/.virtualenv/nuspic/lib/pythonX.Y/site-packages

for Network/Simulation

requirement

$ pip install django-form-utils
$ pip install django-reversion

$ pip install python-cjson
$ pip install networkx

($ sudo apt-get install rabbitmq-server)
$ pip install django-celery

optional (useful for developer)

$ pip install django-extensions
$ pip install django-evolution
$ pip install django-debug-toolbar
$ pip install South

Synchronizing multiple databases

Insert DATABASE_ROUTERS in local_settings

Create empty tables in database

$ python manage.py sqlall reversion | python manage.py dbshell
$ python manage.py sqlall auth django_evolution | python manage.py dbshell --database=network
$ python manage.py sqlall auth django_evolution network | python manage.py dbshell --database=simulation

Synchronize database to models

$ python manage.py syncdb
$ python manage.py syncdb --database=network
$ python manage.py syncdb --database=simulation

Starting Celery integration for Django

Start task with Events.

$ python manage.py celeryd -E

Start camera to save tasks in django, see in django admin.

$ python manage.py celerycam

Start live enviroment of task management.

$ python manage.py celeryev

License

Unless otherwise specified in the source code, the use and redistribution of the software in this repository are subject to MIT License.

Copyright (C) 2011 onwards by nuSPIC Development Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

webapp/decorators.py: (c) 2006-2009 Alexander Solovyov, new BSD License