To enable this to work I had to make a tiny modification to my nginx config and wsgi application handler.
I added the following line to my proxy config in nginx:
proxy_set_header X-Url-Scheme $scheme;
I also modified the mod_wsgi application handler script as follows:
import os, sys
sys.path.append(’/usr/local/django’)
os.environ['DJANGO_SETTINGS_MODULE'] = ‘mysite.settings’
import django.core.handlers.wsgi
_application = django.core.handlers.wsgi.WSGIHandler()
def application(environ, start_response):
environ['wsgi.url_scheme'] = environ.get(’HTTP_X_URL_SCHEME’, ‘http’)
return _application(environ, start_response)
So if you want me to write about something, feel free to leave a suggestion.
– Jason
]]>First create a pylink script which contains the following code somewhere on your $PATH. I usually create a bin directory in my home folder in which I place various scripts such as these by adding the following line to my .bashrc:
export PATH=~/bin:$PATH
2 line pylink script:
#!/bin/bash ln -s `pwd`/$1 `python -c "from distutils.sysconfig import >> get_python_lib; print get_python_lib()"`/$1
Create a python directory in your home directory and go into that directory then wget the the latest stable version of Django, in this case, Django 1.0.2…
wget http://www.djangoproject.com/download/1.0.2/tarball/ tar xzvf Django-1.0.2-final.tar.gz cd Django-1.0.2-final
Use the pylink script to setup django
sudo pylink django
We will also want to be able to access the django-admin.py script from anywhere as well so we will want to add that to our path.
cd ~/python/Django-1.0.2-final/django/bin/ ln -s `pwd`/* ~/bin/
You should now be able to import django from within python!
]]>Now off to bed as I am feeling well enough to head into work tomorrow.
– Jason
]]>Thanks for your patience.
– Jason
]]>Hopefully everyone elses start to 2009 has been better than mine. I have been sick for the past week. Hopefully I will be better by Monday.
– Jason
]]>– Jason
]]>Before adding a control to your page from the toolbox (which would give you the very helpful error above), simply make sure your project contains a reference to the correct DLL file and build the project after adding the new reference DLL file.
- Jason
]]>Hope everyone had a happy thanksgiving!
- Jason
]]>For starters, I have changed the authentication process when you start up BBRTM for the first time. Instead of just sending you to the RTM login page, I know take you through a step by step wizard to help you get authenticated. Hopefully that will help new users get authenticated and reduce frustration. Embedded below is a little video screencast that covers the authentication process.
BBRTM Authentication Process from Jason Emerick on Vimeo.
The next new thing is an options screen. In the options screen there is only 1 setting for your connection mode (auto, BES, BIS, and TCP). There is also a menu option for clearing your authentication token which would require you to re-authenticate BBRTM.
Another big backend change is threaded network connections. By putting the network connections in a separate thread, it will no longer cause your BlackBerry to freeze while it loads data or makes a network request. This should hopefully make the user experience much more smooth. When BBRTM is loading you will see a screen like the one below.
In addition to the options menu item from the home screen, there are three other menu items. The first one is refresh tasks which does exactly that, refreshes the task list. Next is the About which displays a simple about screen. Finally, there is a show all tasks menu item which will does as it says as well, it will display all of your tasks.
While you are viewing your task lists, you can also complete, delete and postpone them but the UI doesn’t refresh for all operations unless you refresh or restart BBRTM. That is something I am working on and will be improving…
In addition to completeing, deleting, and postponing tasks, you can now view the details of a task such as notes and tags and other such things, just click on a task and it will take you to the detail screen. You can’t edit or add tasks just yet, that is coming soon though… That is my goal for this upcoming week and hopefully there will be another release next weekend.

I am sure there are a couple bugs or typos, so if you find any, just send me an email and I will look into it…
You can download or OTA install BBRTM v2.0 from http://bbrtm.org/ota/
note: i have moved the install files to the ota directory as I plan on creating a proper website for BBRTM in the near future so stay tuned for that as well…
Jason
]]>