ȯ ϱ
|
DiskParameterTable › DisklessCluster-HOWTO › DisorderLogsOfKldp › DivX › Django › Django/Ubuntu 3.1.1 ġ ¶
# apt-get install postgresql python-psycopg2 pgadmin3
ġ ϷǸ postgres ( ) йȣ Ѵ.
# sudo -u postgres psql postgres postgres=# \password postgres 3.1.2 DB ¶$ sudo -u postgres createuser -D -A -P myuser ÀÌ »õ ·Ñ¿¡°Ô ¶Ç ´Ù¸¥ ·ÑÀ» ¸¸µé ¼ö ÀÖ´Â ±ÇÇÑÀ» ÁÙ±î¿ä? (y/n) n $ sudo -u postgres createdb -O myuser mydb 3.2.2 DB ¶$ mysql -u root -p > CREATE DATABASE mydb; > CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'some_passwd'; > GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'localhost' WITH GRANT OPTION; > QUIT; 4 Ŭ Ʈ ¶File - New - Project - Pydev Django Project
( django ġǾ ұϰ 'django not found' ½
Window - Preference - Interpreter - Python ٽ ߰)
![]() ![]() src/myproject/settings.py
- TIME_ZONE = 'America/Chicago' 'Asia/Seoul'
- LANGUAGE_CODE = 'en-us' 'ko-kr'
5 ġ Ʈ ¶Ʈ - Django - Run Django Tests(manage.py test)
![]() Ȯ
Ʈ - Run As - Pydev: Django
http://127.0.0.1:8001
![]() 7 Admin Ȱȭ ¶
from django.contrib import admin admin.autodiscover() ... # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)),
|
The wise shepherd never trusts his flock to a smiling wolf. |















![[http]](/imgs/http.png)