Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- emote: Compressing source files... done.
- remote: Building source:
- remote:
- remote: -----> Python app detected
- remote: -----> Installing requirements with pip
- remote:
- remote: -----> $ python manage.py collectstatic --noinput
- remote: Traceback (most recent call last):
- remote: File "manage.py", line 22, in <module>
- remote: execute_from_command_line(sys.argv)
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line
- 364, in execute_from_command_line
- remote: utility.execute()
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line
- 356, in execute
- remote: self.fetch_command(subcommand).run_from_argv(self.argv)
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 283,
- in run_from_argv
- remote: self.execute(*args, **cmd_options)
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 330,
- in execute
- remote: output = self.handle(*args, **options)
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
- ands/collectstatic.py", line 199, in handle
- remote: collected = self.collect()
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
- ands/collectstatic.py", line 124, in collect
- remote: handler(path, prefixed_path, storage)
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
- ands/collectstatic.py", line 354, in copy_file
- remote: if not self.delete_file(path, prefixed_path, source_storage):
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/comm
- ands/collectstatic.py", line 260, in delete_file
- remote: if self.storage.exists(prefixed_path):
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/files/storage.py", line 392, i
- n exists
- remote: return os.path.exists(self.path(name))
- remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", li
- ne 50, in path
- remote: raise ImproperlyConfigured("You're using the staticfiles app "
- remote: django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set t
- he STATIC_ROOT setting to a filesystem path.
- remote:
- remote: ! Error while running '$ python manage.py collectstatic --noinput'.
- remote: See traceback above for details.
- remote:
- remote: You may need to update application code to resolve this error.
- remote: Or, you can disable collectstatic for this application:
- remote:
- remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
- remote:
- remote: https://devcenter.heroku.com/articles/django-assets
- remote: ! Push rejected, failed to compile Python app.
- remote:
- remote: ! Push failed
- Generated by 'django-admin startproject' using Django 1.11.3.
- For more information on this file, see
- https://docs.djangoproject.com/en/1.11/topics/settings/
- For the full list of settings and their values, see
- https://docs.djangoproject.com/en/1.11/ref/settings/
- """
- import os
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
- BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
- TEMPLATES_DIR = os.path.join(BASE_DIR,'templates')
- # Quick-start development settings - unsuitable for production
- # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
- # SECURITY WARNING: keep the secret key used in production secret!
- SECRET_KEY = 'cku&+*f-9%q!z9dnxyst+1o^0$tf33)8%p)e!6z7y$cc*+)use'
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = True
- ALLOWED_HOSTS = []
- # Application definition
- INSTALLED_APPS = [
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'registration',
- 'website',
- 'django_extensions',
- 'crispy_forms',
- 'survey',
- 'bootstrapform',
- 'rosetta',
- 'rest_framework',
- ]
- MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- ]
- ROOT_URLCONF = 'Authentication_project.urls'
- TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [TEMPLATES_DIR,],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
- ]
- WSGI_APPLICATION = 'Authentication_project.wsgi.application'
- # Database
- # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
- }
- # Password validation
- # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
- AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
- ]
- # Internationalization
- # https://docs.djangoproject.com/en/1.11/topics/i18n/
- LANGUAGE_CODE = 'en-us'
- TIME_ZONE = 'UTC'
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.11/howto/static-files/
- STATIC_URL = '/static/'
- # STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
- if DEBUG:
- STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
- else:
- STATIC_ROOT = os.path.join(BASE_DIR, 'static')
- AUTH_USER_MODEL = 'registration.MyUser'
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
- CRISPY_TEMPLATE_PACK = 'bootstrap3'
- from __future__ import absolute_import, unicode_literals
- import os
- from .settings import *
- import dj_database_url
- DEBUG = False
- ALLOWED_HOSTS = ['*']
- # STATIC_ROOT = os.path.join(BASE_DIR, 'static')
- # STATIC_URL = '/static/'
- MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
- MEDIA_URL = '/media/'
- DATABASES = {
- 'default': dj_database_url.config(conn_max_age=600),
- }
- EMAIL_HOST_USER = 'smtp.gmail.com'
- EMAIL_HOST_USER = 'softscoresapp@gmail.com'
- EMAIL_HOST_PASSWORD = 'SoftScoresTelAviv'
- EMAIL_PORT = 587
- EMAIL_USE_TLS = True
Add Comment
Please, Sign In to add comment