./manage.py makemessages -l zh_CN
要大写的CN而不是小写的,之后
./manage.py compilemessages
chrome cached files, but not able to discover, or on the server side, some files are cached
./manage.py makemessages -l zh_CN
要大写的CN而不是小写的,之后
./manage.py compilemessages
chrome cached files, but not able to discover, or on the server side, some files are cached
######################### | |
# .gitignore file for Xcode5 | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, | |
# and you should use a different .gitignore (or none at all) | |
# This file is for SOURCE projects, where there are many extra | |
# files that we want to exclude | |
# | |
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# and https://gist.github.com/adamgit/3786883 |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
from http://www.davidlemayian.com/post/60791205171/how-to-install-python-gdal-on-os-x
intall gdal first and then install GDAL for python
$ brew install gdal $ sudo pip install GDAL
if GDAL is has cc error, then it is due to xcode5.1, just install GDAL with
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future ./venv/bin/pip install GDAL
# You will need to run these with superuser permissions. | |
# Either prefix `sudo` to all commands, or switch user | |
# Be very careful when you switch user | |
sudo su - root | |
# Update all the packages | |
yum update | |
# Install the basics - python27, gcc, svn, git, httpd, make, uuid |
SELECT MAX(id) FROM your_table;
SELECT nextval('your_table_id_seq');
SELECT setval('your_table_id_seq', (SELECT MAX(id) FROM your_table));
https://code.zmaw.de/boards/2/topics/895
to add --without-jni, so it is
./configure --prefix=/home1/username/proj --without-jni
in the downloaded and extracted proj file.
Then when installing Postgis on Bluehost, just download postgis and run inside the extracted file folder:
I am developing a Django site and my development machine uses Windows7, X64, since Postgis is more or less the best option, I decided to migrate my database from sqlite3 to Postgresql, and on production side, migrating Mysql to Postgresql.
So on development side, I install the Postgresql from a binary installer, which includes an optional Postgis extension for intallation. Although it says Gdal is included, but my Python3.3 just cannot find it. If I test it in Python:
from osgeo import gdal
or
from django.contrib.gis import gdal
In my quest to learn how to use python within the django framework, the most difficult thing was the development environment, and getting to the point where I could play learn, practice and experiment. Here are some steps that I took to get to that point.
I’ll add to this as I can, but mostly I’m using it as a handy resource that I can access while continuing to learn.
Cribbed from my notes and this blog post.