MYSQL DB

2013-03-04 Thread Nagarajan Dharmar Sitha
{% for d in datas %} Games Best Player :{{ d }} {% endfor %} I am taking d for displaying the value of the table but it showing the all the column values in single statement how to get sepa

Creating JSON file

2013-04-08 Thread Nagarajan Dharmar Sitha
saved = sys.stdout f = file('report.json','a+') sys.stdout = f result = [] objects = game_objects.objects.all() for obj in objects: dict2 ={} time = time_stamp.objects.filter(user_id = obj.user_id) obj_id = obj.object_id per = performance.objects.

Sub-Query

2013-04-23 Thread Nagarajan Dharmar Sitha
++-+-+-+ | id | user_id | game_id | time_stamp | ++-+-+-+ | 37 | 000u1 | 000g1 | 2013-04-08 10:35:30 | | 38 | 000u2 | 000g2 | 2013-04-08 10:35:30 | | 39 | 000u3 | 000g3 | 2013-04-08 10:35:30 | | 40

else: invalid syntax

2013-08-29 Thread Nagarajan Dharmar Sitha
if (os.stat('udacityLastFileNumberForL.txt').st_size == 0): MaxNumberFile = open("udacityLastFileNumberForL.txt", "w") self.udacityFileVersionNumberL = 1 MaxNumberFile.write("DATA_VERSION_CONSTANT_M: %s" % self.udacityFileVersionNumberL) MaxNumberFil

Re: else: invalid syntax

2013-08-29 Thread Nagarajan Dharmar Sitha
Thank you Tom Raja -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users