Guest User

Untitled

a guest
Jan 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. SECRET_KEY = '$+(+t#5=etj8+=osa$0v%ouzw%04piwfo!3%b8mli24!s$u6#j'
  2.  
  3. # SECURITY WARNING: don't run with debug turned on in production!
  4. DEBUG = False
  5.  
  6.  
  7. ALLOWED_HOSTS = ['*']
  8.  
  9.  
  10. # Application definition
  11.  
  12. INSTALLED_APPS = [
  13.  
  14. 'django.contrib.auth',
  15. 'django.contrib.contenttypes',
  16. 'django.contrib.sessions',
  17. 'django.contrib.messages',
  18. 'django.contrib.staticfiles',
  19.  
  20.  
  21. 'grappelli',
  22. 'django.contrib.admin',
  23. 'django_csv_exports',
  24.  
  25.  
  26. 'apps.TipoBodegasapp',
  27. 'apps.Pedidoapp',
  28. 'bodega.settings',
  29. 'apps',
  30.  
  31. ]
  32.  
  33. GRAPPELLI_ADMIN_TITLE = 'Grocer'
  34.  
  35.  
  36. MIDDLEWARE = [
  37. 'django.middleware.security.SecurityMiddleware',
  38. 'django.contrib.sessions.middleware.SessionMiddleware',
  39. 'django.middleware.common.CommonMiddleware',
  40. 'django.middleware.csrf.CsrfViewMiddleware',
  41. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  42. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  43. 'django.contrib.messages.middleware.MessageMiddleware',
  44. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  45.  
  46. ]
  47.  
  48. ROOT_URLCONF = 'bodega.urls'
  49.  
  50.  
  51. TEMPLATES= [
  52.  
  53. {
  54.  
  55. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  56. 'DIRS': [os.path.join(BASE_DIR, 'templates')],
  57. 'APP_DIRS': True,
  58. 'OPTIONS': {
  59. 'context_processors': [
  60. 'django.template.context_processors.debug',
  61. 'django.template.context_processors.request',
  62. 'django.contrib.auth.context_processors.auth',
  63. 'django.core.context_processors.i18n',
  64. 'django.core.context_processors.media',
  65. 'django.core.context_processors.static',
  66. 'django.core.context_processors.tz',
  67. 'django.contrib.messages.context_processors.messages',
  68.  
  69. ],
  70. },
  71. },
  72. ]
  73.  
  74. WSGI_APPLICATION = 'bodega.wsgi.application'
  75.  
  76.  
  77.  
  78. DATABASES = {
  79. 'default': {
  80. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  81. 'NAME': 'Bodega',
  82. 'USER': 'postgres',
  83. 'PASSWORD': 'demaro',
  84. 'HOST': 'localhost',
  85. 'PORT': 5432,
  86. }
  87. }
  88.  
  89.  
  90. AUTH_PASSWORD_VALIDATORS = [
  91. {
  92. 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
  93. },
  94. {
  95. 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
  96. },
  97. {
  98. 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
  99. },
  100. {
  101. 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
  102. },
  103. ]
  104.  
  105.  
  106. LANGUAGE_CODE = 'es-MX'
  107.  
  108. TIME_ZONE = 'UTC'
  109.  
  110. USE_I18N = True
  111.  
  112. USE_L10N = True
  113.  
  114. USE_TZ = True
  115.  
  116. DJANGO_EXPORTS_REQUIRE_PERM = True
  117.  
  118. import os
  119. STATIC_ROOT = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2] + ['static'])
  120. STATICFILES_STORAGE ='django.contrib.staticfiles.storage.CachedStaticFilesStorage'
  121. STATIC_URL = '/static/'
Add Comment
Please, Sign In to add comment