Posts tagged Django

Django change the database backend.

Dec. 22, 2016, 8:37 a.m. odo , python , django , sqlite , mysql

In theory if you use django, changing your RDBS from say sqlite to mysql is a breeze. All you need is generate a dump of your existing data with ./manage.py dumpdata, change settings.py and do ./manage.py migrate on the new server. Then you can import the previously exported data through ./manage.py ...

Asp.Net in 24 hours.

Dec. 7, 2016, 1:10 a.m. csharp , asp.net , django

Now it's time for the die hard Django fan to learn ASP.Net. Once upon a long ago, around the time that Asp.Net was born I worked with a guy who had practially every single M$ certificate they had on offer at the time. We were constantly arguing about which is better PHP or ASP. Those days PHP wa ...

Vim and python debug

May 19, 2015, 12:30 a.m. vim , python , django , debug

Vebugger This is the first VIM based connection that I managed setup. Vebugger will stop at break points and I can use it's commands to inspect variables but it's somewhat tedious because it doesn't have an interactive shell like pdb does. For python debug what this actually does is ...

Vim Autocomplete for Django

May 11, 2015, 12:12 p.m. vim , python , django

How do you auto import requiements in vim? Apparently rope has that feature but having already given up on rope in favour of jedi, I decided to swim with the tide and see what other options are available. Vimpy seems the most likely but it wasn't so easy Error detected while processing /home/rad ...

Flipped the switch.

May 29, 2014, 1:32 a.m. Jekyll , Ruby , GAE , Python , Django

Finally. Wordpress has been switched off, as I have threatened to do so many times before. This blog post is being written with the aid of a home made blogging system running on Google App Engine (python). The data is stored in NDB and the editor is CKeditor, and the comments are powered by Disqus. ...

Django admin select count(*) from ...

Oct. 6, 2013, 2:24 p.m. Django , Python , roadlk

Shut up and just give me the code? Ok, look at the bottom of this post.What is the slowest query on road.lk? It's the select count(*) on the traffic alerts table that Django admin insists on executing each time someone visit the admin page for the alerts. Though we are fully operational only in Sri ...

django.template.base.TemplateSyntaxError: 'block' tag takes only one argument

Feb. 16, 2013, 1:24 a.m. cactus , Django , templates

Have you run into an error of this nature? It's because your django template blocks are incomplete. You probably have something like this: {% block %} where as what you really ought to have is something like this (choose a suitable name): {% block content %} Yes it's a trivial solution. This error  ...

mynt

Jan. 26, 2013, 9:28 a.m. Django , jinja , mynt , Wordpress

The hell with Jekyll and Hyde and Cactus. There is something far better. Too bad they couldn't pick a cool name for it. It's called mynt. From what I have seen of it so far, the only thing that sucks about it is the name.None of the big names mentioned above worked out of the box when used with the ...

Django

May 3, 2012, 7:25 a.m. Django , Python , ROR , Ruby , Zope

On thursday morning I set out to learn python and by saturday morning I had read through the official tutorial on the python website as well as gone on numerous side trips on additional references. Blog posts are still paying catch up. You will not find me writing a killer python app in a few days b ...

Ruby vs Python

April 27, 2012, 9:17 a.m. Django , Python , religion , ROR , Ruby

Ruby and Python have been around for a long time almost as long as Java and PHP hang on a second, Python is older than java.  Both PHP and Java are decidely on the decline and according to the fan boys both Ruby and Python are on the ascendancy. But that's not exactly consistent with what Google Tre ...