Guest User

Untitled

a guest
Jan 7th, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1. emote: Compressing source files... done.
  2. remote: Building source:
  3. remote:
  4. remote: -----> Python app detected
  5. remote: -----> Installing requirements with pip
  6. remote:
  7. remote: -----> $ python manage.py collectstatic --noinput
  8. remote: Traceback (most recent call last):
  9. remote: File "manage.py", line 22, in <module>
  10. remote: execute_from_command_line(sys.argv)
  11. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line
  12. 364, in execute_from_command_line
  13. remote: utility.execute()
  14. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line
  15.  
  16. 356, in execute
  17. remote: self.fetch_command(subcommand).run_from_argv(self.argv)
  18. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 283,
  19. in run_from_argv
  20. remote: self.execute(*args, **cmd_options)
  21. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 330,
  22. in execute
  23. remote: output = self.handle(*args, **options)
  24. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
  25. ands/collectstatic.py", line 199, in handle
  26. remote: collected = self.collect()
  27. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
  28. ands/collectstatic.py", line 124, in collect
  29. remote: handler(path, prefixed_path, storage)
  30. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
  31. ands/collectstatic.py", line 354, in copy_file
  32. remote: if not self.delete_file(path, prefixed_path, source_storage):
  33. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
  34. ands/collectstatic.py", line 260, in delete_file
  35. remote: if self.storage.exists(prefixed_path):
  36. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/files/storage.py", line 392, i
  37. n exists
  38. remote: return os.path.exists(self.path(name))
  39. remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", li
  40. ne 50, in path
  41. remote: raise ImproperlyConfigured("You're using the staticfiles app "
  42.  
  43. remote: django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set t
  44. he STATIC_ROOT setting to a filesystem path.
  45. remote:
  46. remote: ! Error while running '$ python manage.py collectstatic --noinput'.
  47. remote: See traceback above for details.
  48. remote:
  49. remote: You may need to update application code to resolve this error.
  50. remote: Or, you can disable collectstatic for this application:
  51. remote:
  52. remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
  53. remote:
  54. remote: https://devcenter.heroku.com/articles/django-assets
  55. remote: ! Push rejected, failed to compile Python app.
  56. remote:
  57. remote: ! Push failed
  58.  
  59. Generated by 'django-admin startproject' using Django 1.11.3.
  60.  
  61. For more information on this file, see
  62. https://docs.djangoproject.com/en/1.11/topics/settings/
  63.  
  64. For the full list of settings and their values, see
  65. https://docs.djangoproject.com/en/1.11/ref/settings/
  66. """
  67.  
  68. import os
  69.  
  70. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  71. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  72. TEMPLATES_DIR = os.path.join(BASE_DIR,'templates')
  73.  
  74.  
  75. # Quick-start development settings - unsuitable for production
  76. # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
  77.  
  78. # SECURITY WARNING: keep the secret key used in production secret!
  79. SECRET_KEY = 'cku&+*f-9%q!z9dnxyst+1o^0$tf33)8%p)e!6z7y$cc*+)use'
  80.  
  81. # SECURITY WARNING: don't run with debug turned on in production!
  82. DEBUG = True
  83.  
  84. ALLOWED_HOSTS = []
  85.  
  86.  
  87. # Application definition
  88.  
  89. INSTALLED_APPS = [
  90. 'django.contrib.admin',
  91. 'django.contrib.auth',
  92. 'django.contrib.contenttypes',
  93. 'django.contrib.sessions',
  94. 'django.contrib.messages',
  95. 'django.contrib.staticfiles',
  96. 'registration',
  97. 'website',
  98. 'django_extensions',
  99. 'crispy_forms',
  100. 'survey',
  101. 'bootstrapform',
  102. 'rosetta',
  103. 'rest_framework',
  104. ]
  105.  
  106. MIDDLEWARE = [
  107. 'django.middleware.security.SecurityMiddleware',
  108. 'django.contrib.sessions.middleware.SessionMiddleware',
  109. 'django.middleware.common.CommonMiddleware',
  110. 'django.middleware.csrf.CsrfViewMiddleware',
  111. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  112. 'django.contrib.messages.middleware.MessageMiddleware',
  113. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  114. ]
  115.  
  116. ROOT_URLCONF = 'Authentication_project.urls'
  117.  
  118. TEMPLATES = [
  119. {
  120. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  121. 'DIRS': [TEMPLATES_DIR,],
  122. 'APP_DIRS': True,
  123. 'OPTIONS': {
  124. 'context_processors': [
  125. 'django.template.context_processors.debug',
  126. 'django.template.context_processors.request',
  127. 'django.contrib.auth.context_processors.auth',
  128. 'django.contrib.messages.context_processors.messages',
  129. ],
  130. },
  131. },
  132. ]
  133.  
  134. WSGI_APPLICATION = 'Authentication_project.wsgi.application'
  135.  
  136.  
  137. # Database
  138. # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
  139.  
  140. DATABASES = {
  141. 'default': {
  142. 'ENGINE': 'django.db.backends.sqlite3',
  143. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  144. }
  145. }
  146.  
  147.  
  148. # Password validation
  149. # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
  150.  
  151. AUTH_PASSWORD_VALIDATORS = [
  152. {
  153. 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
  154. },
  155. {
  156. 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
  157. },
  158. {
  159. 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
  160. },
  161. {
  162. 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
  163. },
  164. ]
  165.  
  166.  
  167. # Internationalization
  168. # https://docs.djangoproject.com/en/1.11/topics/i18n/
  169.  
  170. LANGUAGE_CODE = 'en-us'
  171.  
  172. TIME_ZONE = 'UTC'
  173.  
  174. USE_I18N = True
  175.  
  176. USE_L10N = True
  177.  
  178. USE_TZ = True
  179.  
  180.  
  181. # Static files (CSS, JavaScript, Images)
  182. # https://docs.djangoproject.com/en/1.11/howto/static-files/
  183.  
  184. STATIC_URL = '/static/'
  185. # STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
  186. if DEBUG:
  187. STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
  188. else:
  189. STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  190.  
  191. AUTH_USER_MODEL = 'registration.MyUser'
  192.  
  193. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  194.  
  195. CRISPY_TEMPLATE_PACK = 'bootstrap3'
  196.  
  197. from __future__ import absolute_import, unicode_literals
  198. import os
  199. from .settings import *
  200. import dj_database_url
  201.  
  202. DEBUG = False
  203. ALLOWED_HOSTS = ['*']
  204.  
  205. # STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  206. # STATIC_URL = '/static/'
  207.  
  208. MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  209. MEDIA_URL = '/media/'
  210.  
  211. DATABASES = {
  212. 'default': dj_database_url.config(conn_max_age=600),
  213. }
  214.  
  215.  
  216. EMAIL_HOST_USER = 'smtp.gmail.com'
  217. EMAIL_HOST_USER = 'softscoresapp@gmail.com'
  218. EMAIL_HOST_PASSWORD = 'SoftScoresTelAviv'
  219. EMAIL_PORT = 587
  220. EMAIL_USE_TLS = True
Add Comment
Please, Sign In to add comment