Changeset 4

Show
Ignore:
Timestamp:
02/03/08 21:51:49 (10 months ago)
Author:
nobu
Message:
  • blogの追加。
  • commonの追加。
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:externals set to
      markup http://projects.via-kitchen.com/source/djunk/markup/trunk
    • Property svn:ignore changed from
      log.txt
      *.pyc
      *.pyo
      to
      log.txt
      local_settings.py
      *.pyc
      *.pyo
  • trunk/settings.py

    r2 r4  
    1 # Django settings for picolog project. 
     1# vim: encoding=utf-8 : 
     2 
     3import os 
     4 
     5BASE_PATH = os.path.abspath(os.path.split(__file__)[0]) 
    26 
    37DEBUG = True 
     
    1721DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3. 
    1822 
     23############ 
     24# SESSIONS # 
     25############ 
     26 
     27SESSION_COOKIE_NAME = 'sessionid' 
     28SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 
     29SESSION_COOKIE_DOMAIN = None 
     30SESSION_COOKIE_SECURE = False 
     31SESSION_COOKIE_PATH = '/' 
     32SESSION_SAVE_EVERY_REQUEST = False 
     33SESSION_EXPIRE_AT_BROWSER_CLOSE = True 
     34SESSION_ENGINE = 'django.contrib.sessions.backends.db' 
     35SESSION_FILE_PATH = '/tmp/' 
     36 
    1937# Local time zone for this installation. Choices can be found here: 
    2038# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 
     
    2240# If running in a Windows environment this must be set to the same as your 
    2341# system time zone. 
    24 TIME_ZONE = 'America/Chicago' 
     42TIME_ZONE = 'Asia/Tokyo' 
    2543 
    2644# Language code for this installation. All choices can be found here: 
    2745# http://www.i18nguy.com/unicode/language-identifiers.html 
    28 LANGUAGE_CODE = 'en-us
     46LANGUAGE_CODE = 'ja-JP
    2947 
    3048SITE_ID = 1 
     
    3654# Absolute path to the directory that holds media. 
    3755# Example: "/home/media/media.lawrence.com/" 
    38 MEDIA_ROOT = '' 
     56MEDIA_ROOT = os.path.join(BASE_PATH, 'media') 
    3957 
    4058# URL that handles the media served from MEDIA_ROOT. Make sure to use a 
    4159# trailing slash if there is a path component (optional in other cases). 
    4260# Examples: "http://media.lawrence.com", "http://example.com/media/" 
    43 MEDIA_URL = '
     61MEDIA_URL = '/media
    4462 
    4563# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 
    4664# trailing slash. 
    4765# Examples: "http://foo.com/media/", "/media/". 
    48 ADMIN_MEDIA_PREFIX = '/media/' 
    49  
    50 # Make this unique, and don't share it with anybody. 
    51 SECRET_KEY = '*8%qd79+e=oa^!uve=2l434_w3dw2=i5)xe_nm0!9k6dd#0k!8' 
     66ADMIN_MEDIA_PREFIX = '/admin_media/' 
    5267 
    5368# List of callables that know how to import templates from various sources. 
     
    5671    'django.template.loaders.app_directories.load_template_source', 
    5772#     'django.template.loaders.eggs.load_template_source', 
     73) 
     74 
     75TEMPLATE_CONTEXT_PROCESSORS = ( 
     76    'django.core.context_processors.auth', 
     77    'django.core.context_processors.debug', 
     78    'django.core.context_processors.i18n', 
     79    'django.core.context_processors.media', 
     80    'common.context_processors.path_info', 
     81    'common.context_processors.site', 
    5882) 
    5983 
     
    7599INSTALLED_APPS = ( 
    76100    'django.contrib.auth', 
     101    'django.contrib.admin', 
    77102    'django.contrib.contenttypes', 
    78103    'django.contrib.sessions', 
    79104    'django.contrib.sites', 
     105    'common', 
     106    'markup', 
     107    'blog', 
    80108) 
     109 
     110from local_settings import * 
  • trunk/urls.py

    r2 r4  
    22 
    33urlpatterns = patterns('', 
    4     # Example: 
    5     # (r'^picolog/', include('picolog.foo.urls')), 
    6  
    7     # Uncomment this for admin: 
    8 #     (r'^admin/', include('django.contrib.admin.urls')), 
     4    (r'^admin/', include('django.contrib.admin.urls')), 
    95)