Advertisement
Guest User

Untitled

a guest
Dec 29th, 2010
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. # Django settings for uploaderx project.
  2. import os.path
  3.  
  4. DEBUG = True
  5. TEMPLATE_DEBUG = DEBUG
  6.  
  7. ADMINS = (
  8. # ('Your Name', 'your_email@domain.com'),
  9. )
  10.  
  11. MANAGERS = ADMINS
  12.  
  13. DATABASES = {
  14. 'default': {
  15. 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  16. 'NAME': 'uploaderx', # Or path to database file if using sqlite3.
  17. 'USER': 'root', # Not used with sqlite3.
  18. 'PASSWORD': 'root', # Not used with sqlite3.
  19. 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
  20. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  21. }
  22. }
  23.  
  24. # Local time zone for this installation. Choices can be found here:
  25. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  26. # although not all choices may be available on all operating systems.
  27. # On Unix systems, a value of None will cause Django to use the same
  28. # timezone as the operating system.
  29. # If running in a Windows environment this must be set to the same as your
  30. # system time zone.
  31. TIME_ZONE = 'America/Chicago'
  32.  
  33. # Language code for this installation. All choices can be found here:
  34. # http://www.i18nguy.com/unicode/language-identifiers.html
  35. LANGUAGE_CODE = 'en-us'
  36.  
  37. SITE_ID = 1
  38.  
  39. # If you set this to False, Django will make some optimizations so as not
  40. # to load the internationalization machinery.
  41. USE_I18N = True
  42.  
  43. # If you set this to False, Django will not format dates, numbers and
  44. # calendars according to the current locale
  45. USE_L10N = True
  46.  
  47. # Absolute path to the directory that holds media.
  48. # Example: "/home/media/media.lawrence.com/"
  49. MEDIA_ROOT = ''
  50.  
  51. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  52. # trailing slash if there is a path component (optional in other cases).
  53. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  54. MEDIA_URL = ''
  55.  
  56. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  57. # trailing slash.
  58. # Examples: "http://foo.com/media/", "/media/".
  59. ADMIN_MEDIA_PREFIX = '/media/'
  60.  
  61. # Make this unique, and don't share it with anybody.
  62. SECRET_KEY = 'zc(c8+%=%w_d2pz)zsx7$fr2n9z)$$-0&1xi0g!l84p816!^($'
  63.  
  64. # List of callables that know how to import templates from various sources.
  65. TEMPLATE_LOADERS = (
  66. 'django.template.loaders.filesystem.Loader',
  67. 'django.template.loaders.app_directories.Loader',
  68. 'django.template.loaders.eggs.Loader',
  69. )
  70.  
  71. MIDDLEWARE_CLASSES = (
  72. 'django.middleware.common.CommonMiddleware',
  73. 'django.contrib.sessions.middleware.SessionMiddleware',
  74. 'django.middleware.csrf.CsrfViewMiddleware',
  75. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  76. 'django.contrib.messages.middleware.MessageMiddleware',
  77. )
  78.  
  79. ROOT_URLCONF = 'uploaderx.urls'
  80.  
  81. TEMPLATE_DIRS = (
  82. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  83. # Always use forward slashes, even on Windows.
  84. # Don't forget to use absolute paths, not relative paths.
  85. os.path.join(os.path.dirname(__file__), 'templates'),
  86. )
  87.  
  88. INSTALLED_APPS = (
  89. 'django.contrib.auth',
  90. 'django.contrib.contenttypes',
  91. 'django.contrib.sessions',
  92. 'django.contrib.sites',
  93. 'django.contrib.messages',
  94. 'upload',
  95. # Uncomment the next line to enable the admin:
  96. 'django.contrib.admin',
  97. # Uncomment the next line to enable admin documentation:
  98. 'django.contrib.admindocs',
  99. )
  100.  
  101. MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
  102. SESSION_ENGINE = "django.contrib.sessions.backends.file"
  103. #SESSION_COOKIE_DOMAIN = "uploaderx.xxx.com"
  104. SESSION_COOKIE_DOMAIN = "localhost"
  105. SESSION_COOKIE_PATH = "/tmp"
  106.  
  107. #no trailing slash. this is where the files uploaded will be stored
  108. UPLOAD_DIRECTORY = '/home/wenbert/uploaderx_files'
  109.  
  110. REFERER = "xxx.com"
  111. SITE_URL = "http://uploaderx.mysite.com"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement