This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup apache2 mysql php | |
$ sudo apt-get install tasksel | |
$ sudo tasksel install lamp-server | |
# python setup tools | |
$ sudo apt-get install python-setuptools | |
$ sudo apt-get install python-pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import re | |
from django.conf import settings | |
from django.http import HttpResponseRedirect | |
from django.contrib import messages | |
from django.utils.translation import ugettext as _ | |
# prevent python threading issue, use threading.local to instead of global var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Mark Allan B. Meriales | |
A command tool that generates fixture data (json) | |
based from existing Models. This can be helpful when | |
doing testing. | |
""" | |
from django.core.management.base import BaseCommand | |
from django.db import models |