I <3 Django
Sun, Nov 30, 2008
Vote on HN
Last month(November) had been quite busy for me, had many things going on including :-
- My new Secret Project : Its a new Django based web project, if all goes as per plan I take over the world and declare windows illegal ;)
- Visa issues : Apparently the process for a Non-Immigrant visa in Thailand is not an easy route.
- Thai Political Uncertainty : The drama is simply too irresistible to not follow, constant fights, arguments and lame comments from both sides (pro-govt and PAD)
- Trip to India : I had gone on a short trip to India on Social visit in the beginning of the month.
- Mumbai Terror Attacks : The bastards struck the Indian financial capital of Mumbai. Even though the 62 hour long ordeal is over now, the blame game drama has begun and would make major news for months to come.
So... apologies to my regular readers (just in case there are any besides me) just had too many things shoved into one month.
A couple of months ago I
wrote about how I had finally chosen Ruby on Rails over Django. Well... at the time of writing I hadnt taken a serious look at Django. Soon after making the post i decided to give Django a second look. The more i dugg, the deeper I fell in love Django and Python. I have
Ben and
Kirit who I can regularly irriate with n00b questions, the
Django-Users group is quite active and the
Django documentation is just awesome. Django truly rocks.
About my new secret project, it is a website about -SNIP- and I aim it to be one of the authorative websites in it domains. The topic of the site is not one I am an expert in, however that shouldnt be an issue. The website is located at -SNIP- . For this project
Archit is helping with css n stuff for free :) .
As expressed above, the website is made using Django, and is un early development stages and even while development the data entry is already in progress. It would eventually become a really huge database.
The best thing i liked about Django is that you can import the Django enviornment in any regular external script and have access to all the functions, models defined in your project. You even have access to all the django APIs within your project. See
this awesome post for more info of what im saying. I modified it a little to suit my project.
#for portability
project = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(project)
os.environ['DJANGO_SETTINGS_MODULE'] ='topsecretproject.settings'
from django.core.management import setup_environ
from topsecretproject import settings
from topsecretproject.app.models import model1, model2
setup_environ(settings)
data = model1.objects.all()
#... and so onn....
Tools used :
Postgres,
git,
github,
gedit,
Komodo IDE(looks nice but free trial gonna run out soon :( ),
Ubuntu(my notebook),
CentOS(development server - crappy VPS)
Since this project is being built from the ground up, I have full control of everything. Keeping both
usability and Search Engine Optimization in mind and not really feeling like there is a compromise in any.
Perhaps in a couple of weeks the site would be somewhat presentable, then id discuss various aspects about the code and techniques im using in keeping the site SEOed. Its too early to talk about it at the moment.
Disclaimer :
No windows users were harmed during the production of this post.