Saturday, 27 July 2013

Initial setup

Here is what I have in my system:
Python 2.7 (32 bit version) on a Windows 64 bit machine. Django 1.6b version. Installation was a piece of cake. All that I had to do was download the gzipped tar ball and run "python setup.py install". First steps of web developments are always easy. So they say!

Postgres is the database choice I have thought of, for my application.


Just so that I do not forget the changes I had to do, is what I am registering in this blog:


1) Changes in settings.py, specific to postgres:


DATABASES = {

'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'django_learn',
'USER': 'akk',
'PASSWORD': 'admin',
'HOST': 'localhost',
'PORT': '5432',
}

}


2) Changes in settings.py for my Timezone. I noticed that the time is not in sync with my system time. One of the entries somewhere in the web helped me there.


TIME_ZONE = 'Indian/Reunion'


Yep! It helped!

Whats the plan!

Hmmm.. After 2 years of thoughts on which tool to choose to develop a application, I finally settle down on Django. Although I do understand now, It is not about the tools you choose before you START, but rather, It is more about roll up your sleeves and START!

Here is the project I have in mind, a basic web application which will help people to organize a trip/party/tour. The money should be pre-calculated and should be able to have a payment gateway to get money from everyone, and only then give it to the appropriate vendors which is finally a green signal to the organized party/tour/trip. The beauty is in:


1) Knowing the expense well in advance.

2) The burden of expense is all distributed before the event starts.

Although my good friend suggests me to have only a single webapp for only the end users and reside on 3rd party tools for all the vendor related information, I am thinking:


1) Have a web application built on Django (Without knowing much of Python).

2) Have a camelot desktop application for each of our vendors or optionally an appropriately previleged admin page on Django web app itself. Whichever suits well. Not everyone has Internet connection :)

Lets see how things roll out there. So where do I start. No surprise there! Start with Django developer documentation!! He He!