Django local development with nginx on OSX

Installing nginx using brew is quite easy: $ brew install nginx Post install instruction explains how to run nginx on starup by adding it’s launchd config to ~/Library/LaunchAgents/ and it will run nginx on port 8080. If you need to run nginx on port 80 you have to run it as root: $ sudo nginx But I want to have nginx running on port 80 when system starts. To accomplish that, I copy nginx launchd config to /Library/LaunchDaemons/ (so it runs even before any user is logged in): $ sudo cp /usr/local/Cellar/nginx/1.0.6/org.nginx.nginx.plist /Library/LaunchDaemons/ # nginx version number may vary ...

September 9, 2011

Django development environment on OSX

This post is mostly about how I install development environment for Python and Django on OS X and my experience. If you want just a quick installation guide, follow this link, there is a really great tutorial about OSX Developer System installation. ...

September 6, 2011

Setting up django settings environment within a python script

Found at softwaremaniacs.org import settings from django.core.management import setup_environ setup_environ(settings) NOTE: Deprecated in Django 1.4 (“Release notes”)

March 14, 2011

Ubuntu PIL JPEG support

Got an IOError exception, while trying to process image using PIL, with a next error message: encoder jpeg not available PIL is installed within python virtual environment. Figured out, I have no development files for libjpeg installed, so PIL compiles without JPEG support. ...

October 13, 2010

Hello World

This is actually not the first time I am launching a blog. I have archived all my old (mostly russian) articles at wordpress.com, first post is dated from 2007, big amount of things changed since those times, I have changed, my interests had been changed. Also, this is more home page of mine, than just a blog. It will involve a lot of things I need, I use and I want to share with others. I attend and I do like to read things on web in English, I like to deal with people using this language, that is why entire site and blog entries will be written in it. I am from Ukraine, that is not my native language, I still study it, so either my speech and texts are not fluent. Just feel free to ask anything in a case of misunderstanding. ...

April 30, 2010