Dynamic Breadcrump

Base URL and $state.href in AngularJS

So, while I was working on dynamic breadcrumb on 1 of my project. Its a forum modul using angularjs in django. I passed current absolute url into a rootscope;


$rootScope.urlparent = $state.href($state.current.name, $state.params, {absolute: true});


, but noticed something strange..when I clicked the ...

Read More

Counting Chilld and Sub Child in Django ORM

Yeah, sorry about the image..I just re-watched Running Man where Jessica was in that show. So, I built a forum using Django and AngularJS, and I want to display a statistic for every forum's category, like how many topics and how many replies to that topic. Yeah, that was pieace ...

Read More
My Dashboard

Customize Django Admin

Instead of editing admin template, I found out that the easiest way to do a basic customization for admin text is by just editing our main urls.py.


Step 1, open your main urls.py, be sure to import admin from django.contrib

from django.contrib import admin
from ...

Read More
Django REST Framework

django REST Performance

So, I was building a Forum for my client using django + Angularjs, while building the front end with test data, I notice that DRF using a whooping 23 queries for 2 post and 1 replies!

Yes, its a bit too much..and its increasing with more post and replies. After ...

Read More
php vs python

PHP VS Python - Why I jump ship

After coding manually with PHP (you know, separate path using directory and stuff instead of dynamic url), I decided to use a framework.

So, I start researching PHP framework to learn. After long consideration, I choose Laravel, but after play around a little bit.. I told my self, fuck this ...

Read More