![]()
|
2007年3月30日 星期五
Creating a new user at django
Django 的setting
![]()
|
Django setting

Django settings
The basics
A settings file is just a Python module with module-level variables.
Here are a couple of example settings:
DEBUG = False DEFAULT_FROM_EMAIL = 'webmaster@example.com' TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
Because a settings file is a Python module, the following apply:
It doesn't allow for Python syntax errors.
It can assign settings dynamically using normal Python syntax. For example:
MY_SETTING = [str(i) for i in range(30)]
It can import values from other settings files.
The django-admin.py utility
When using django-admin.py, you can either set the environment variable once, or explicitly pass in the settings module each time you run the utility.
Example (Unix Bash shell):
export DJANGO_SETTINGS_MODULE=mysite.settings django-admin.py runserver
Example (Windows shell):
set DJANGO_SETTINGS_MODULE=mysite.settings django-admin.py runserver
Use the --settings command-line argument to specify the settings manually:
django-admin.py runserver --settings=mysite.settings
On the server (mod_python)
In your live server environment, you'll need to tell Apache/mod_python which settings file to use. Do that with SetEnv:
<Location "/mysite/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings </Location>
Read the Django mod_python documentation for more information.

gsmart_台灣技嘉erlated 推出 DVB-T/H smartphone


自從確定了「only smart phones」的策略後,GSmart開始了一連串的研發計劃


今年的第一隻新產品:GSmart T600
主打行動電視訴求的T600,在數位電視規格方面,完整支援了DVB-T與DVB-H

這是在展場當地所播放出來的數位電視畫質

通體雪白的GSmart T600,尺寸承襲過往一貫的短小,體積僅有110.5x55.5x18.5 mm而已。


2.6" 大小的26萬色彩屏,擠下了VGA級的解析度,螢幕畫質之細膩可想而知


磨沙質感處理過的背蓋,讓GSmart T600的背面,也美的令人窒息....
而這一次,GSmart的RD們終於開竅,把快門鍵改到了機身右側的下方去了!


機身正面的按鍵皆採用圓型設計

講到數位電視,那就一定要帶到天線的部份

別擔心,GSmart團隊就是要你拿觸控筆當天線!
只要把觸控筆拉到最長,並把筆端停留在出口附近,它就變成了一根數位電視專用的天線!
接下來,你要做的事就是找個支架擺好它,然後好好的看電視囉!

畢竟是數位電視,若是看的正緊張的時候突然沒電,那可真的會想殺人!
T600在出貨就搭載了1300mAh 的鋰電池,相信對於電力續航量,應該有加分的效果。

對它已經迫不急待了嗎?

由於我在15, 16號(當地時間),都沒有辦法拍到實機寫真
因此一直到17號,開放一般民眾進場後,才有機會拍到
這兩位年輕人,左邊那一位對於T600的體型及數位電視功能讚不絕口
一直在我們面前嫌他現用的Dopod 900(德國T-Mobile版)太大台,不好用.....balabala的
再問過當時坐在我旁邊的GSmart PM,他說歐洲市場對於行動電視的需求「極高」


完整QWERTY鍵盤的設計,說明了Q60的走向,被定義成了行動mail 收發中心。
配合微軟的Direct Push技術,不必使用Blackberry也能到處收信囉~



內裝預備搭載Windows mobile 6 Professional,CPU規格也同樣是INTEL PXA270 520MHz處理器。

很可惜的是,Q60的螢幕規格仍停留在QVGA等級。



觸控筆為可拆式設計。


那麼不必羨慕T600,Q60也能夠拿來當電視囉!

《文章編纂:PERON@CeBIT》

2007年3月29日 星期四
haha
micmickimo's Message:
test

Pythons kill their prey by the process of constriction, whereby they grasp the prey animal in their teeth to restrain it, while quickly wrapping a number of coils around the body of the prey. Then by applying only sufficient pressure to prevent the prey animal from being able to breathe in, ultimately causing it to succumb because of asphyxia. The prey animal might also suffer some restriction to circulation during constriction, particularly where the snake's coils are wrapped around the animal's neck, but this is not usually fatal as death typically occurs much sooner due to asphyxiation.
Pythons, like the closely related boas, are constrictors and are all, by definition, non-venomous. Most pythons feed on warm-blooded prey such as birds and mammals, but some are known to eat reptiles (including other snake species), amphibians and fish.
Pythons do not, as popularly believed, crush or squeeze their prey to death, and when constricting normal sized prey, the snake will almost certainly never apply enough pressure to break bones.
Larger pythons will usually eat something about the size of a house cat, but larger food items are not unknown (some large Asian species have been known to take down adult Deer, and the African Rock Python has been documented preying upon Gazelle). Pythons swallow their prey whole, and take several days or even weeks to fully digest it. Despite their intimidating size and muscular power, they are generally not dangerous to humans.
Most pythons have rows of heat-sensing organs along their lower lips (labial pits). These pits enable the python to detect objects that are hotter than the surrounding environment with great accuracy, and enable hunting to take place in total darkness, such as inside caves. Pythons that do not have heat-sensing organs identify their prey by smell. Pythons are ambush predators: they typically stay in a camouflaged position and then suddenly strike at passing prey.
Pythons will not usually attack humans unless startled or provoked, although females protecting their eggs can be aggressive. While a very large adult python could possibly kill a human being, humans are generally well outside the normal size range for prey. Reports of python attacks on humans are extremely rare. Despite this, pythons have been aggressively hunted, driving some species (like the Indian Python) to the brink of extinction.

Cold-blooded organisms maintain their body temperatures in ways different from mammals and birds. The term is now outdated in scientific contexts. Cold-blooded creatures were, initially, presumed to be incapable of maintaining their body temperatures at all. They were presumed to be "slaves" to their environments. Whatever the environmental temperature was, so too was their body temperature. Cold-blooded animals are now called ectotherms, for the term cold-blooded is misleading.
Since that time, advances in the study of how creatures maintain their internal temperatures (termed: Thermophysiology) have shown that many of the earlier notions of what the terms "warm-blooded" and "cold-blooded" mean, were far from accurate (see below: breaking down cold-bloodedness). Today scientists realize that body temperature types are not a simple matter of black and white. Most creatures fit more in line with a graded spectrum from one extreme (cold-blooded) to another (warm-blooded).

Test123

Python is the common name for a group of non-venomous constricting snakes, specifically the family Pythonidae. Other sources consider this group a subfamily of the Boas (Pythoninae). Pythons are more related to boas than to any other snake-family. There is also a genus within Pythonidae which carries the name Python (Daudin, 1803). Pythons are distinguishable from boas in that they have teeth on the premaxilla, a small bone at the very front and center of the upper jaw. Most boas produce live young, while pythons produce eggs. Some species of sandboas (Ericinae) are also called python.
Pythons range in size from 1 to 6 meters (3 to 20 feet) in length. Some pythons are among the longest species of snakes in the world; the Reticulated Python holds the record for longest snake, at 10.32 m (32 ft 9.5 in).[1] However the largest snakes that ever lived are the Paleocene Giganthopis garstini and Madtsoia. Both of these gargantuan snakes could grow to be at least 50 feet long.
Some species exhibit vestigial bones of the pelvis and rear legs, which are externally apparent in the form of a pair of anal spurs on each side of the cloaca. These spurs are larger in males than females, and are used by the male to grip and/or stimulate the female during copulation. Male pythons of certain sepcies sometimes cause spur related injuries to each other during territorial combat, and though more likely to be incidental than intentional, some captured specimens have shown multiple episodes of scarring from such injuries.
Some pythons display vivid colours and patterns on their scales while others are a nondescript brown or olive. They usually reflect appropriate camouflage for their native habitat. Even within a given species, they may be enormous differences in colouration and pattern between specimens from different parts of their range.
There are periodic reports about record breaking snakes of phenomenal proportions similar to that of a reticulated python found on the island of Sumatra in Indonesia in 2003, and now on display in a Javan village[2] [3]. As with most such claims, this one has subsequently been debunked[4]. The motivation for such grossly exaggerated claims appears to be mainly economic gain, as, particularly when captured alive, such animals tend to become income producing tourist attractions for their keepers.

Power management
![]()
|