In this post, I will explain in general, my thesis develop process. Sorry for my English, this isn’t my native language. In addition I wish to write it in this language in order to learn a bit more.
Before technical issues, a little introduction to thesis.
Currently, in Concepción, Chile, exist a geodesic observatory, called TIGO which has like target jointly contribute to the realization and updates to the global geodetic reference systems (ICRF: celestial reference frame; ITRS: Terrestrial Reference Frame), which today constitute the basis for determining position by means of navigation systems assisted by satellites.
Into TIGO there a Superconductor -Gravimeter that allow to measure the gravity level, but the data aren’t being analyzed, and scientists have only the raw date from it. So, I pretend provide of a web application that allow analyze and store the raw data to get useful information :).
In the next lines, I’ll put some code lines and steps used to get web application running. Why write? I write because if have some problem with my configuration, Linux, etc, I’ll back here and repeat the steps .. in order to not deal with some strange issues again :).
First approach to accomplish with the application, I will use Django as Web Application Framework using Python programming language.
In order to dive into Django, I begin reading The Django Book. It seems like a good book for user that wish learn it.
In chapter 2. Installation, we found this steps to install Django
- Install python (Ubuntu already has this installed)
- Install Django (Latest stable version)
- Install Python-Postgresql
- Install Postgresql (Python package in Synaptic)
postgresql (version 8.2.5-1.1) will be installed
postgresql-8.2 (version 8.2.5-1.1) will be installed
postgresql-client-8.2 (version 8.2.5-1.1) will be installed
postgresql-client-common (version 78) will be installed
postgresql-common (version 78) will be installed
- Install subversion client. Search (Subversion in Synaptic Package Manager)
libapr1 (version 1.2.7-8.2ubuntu1) will be installed
libaprutil1 (version 1.2.7+dfsg-2build1) will be installed
libsvn1 (version 1.4.4dfsg1-1ubuntu3) will be installed
subversion (version 1.4.4dfsg1-1ubuntu3) will be installed.
Already Installed Django, I decide remove it in order to use the current development version instead of last stable version. In oder to this.
- Get Super user account, using: sudo -s
- Delete Django directory, using: root@konunantulinux:/usr/lib/python2.5/site-packages# rm -rf django
Update source code of Django
For accomplish this task, we execute svn update into djtrunk directory
Django include a little server that allow test own web site without fight with Apache configuration. This task will be necessary with system is ready for Production.
To run web server, we write in Terminal:root@konunantulinux:~/djcode/mysite# python manage.py runserver 0.0.0.0:8000
0 errors found Django version 0.97-pre-SVN-7020, using settings ‘mysite.settings’ Development server is running at http://0.0.0.0:8000/ Quit the server with CONTROL-C. [22/Jan/2008 19:22:11] “GET / HTTP/1.1” 404 1909
If IP is not specified, only server will be stay listening in loopback, and web page will no available for be accessed from other machine.
Starting interactive python interpreter using our Settings.
To do this, we write inside own directory called
python manage.py shell