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!

No comments:

Post a Comment