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
try: | |
from django.core.management import setup_environ | |
import settings | |
setup_environ(settings) | |
print 'imported django settings' | |
try: | |
exec_strs = ["from %s.models import *"%apps for apps in settings.INSTALLED_APPS ] | |
for x in exec_strs: | |
try: | |
exec(x) |
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
###################################################################### | |
# modified by lakshman | |
# jdong's zshrc file v0.2.1 , based on: | |
# mako's zshrc file, v0.1 | |
# | |
# | |
###################################################################### | |
# next lets set some enviromental/shell pref stuff up | |
# setopt NOHUP |
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
def get_active_for_account(self,account,*args,**kwargs): | |
"""Returns a queryset that is | |
Not deleted | |
Not completed | |
For the specified account | |
""" | |
return self.filter(account = account,deleted=False,group_time__gte = datetime.now(), *args, **kwargs) |
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
root@shabda:~# sudo pip install -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django_trunk | |
Installed /root/src/django-trunk | |
Successfully installed django-trunk | |
>>> import django | |
>>> django.get_version() | |
u'1.2 pre-alpha SVN-11400' |
NewerOlder