проще накатить вторую систему (с 7 или XP и на неё ставить свои игрульки
проще=быстрее снести/переустановить вайн (с ним встанет и geko
если вас чем то не устраивает вайн из бубунтовой репы,
005c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
006c:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0058:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 4d004 (device=4 access=3 func=401 method=0)
0058:fixme:mountmgr:query_property Faking StorageDeviceProperty data
0030:err:ole:CoGetContextToken apartment not initialised
Could not load wine-gecko. HTML rendering will be disabled.
0022:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE
heroku console
Running console on ⬢ warm-badlands-80224... up, run.4832 (Free)
bash: console: command not found
./manage.py createsuperuser
в консоли и выполнялась.(todoapp) user@user-RC530-RC730:~/Home/ASITES/python/py-dj-he/py-dj-he/12v/todoapp$ git remote -v
heroku https://git.heroku.com/mighty-castle-21697.git (fetch)
heroku https://git.heroku.com/mighty-castle-21697.git (push)
origin https://github.com/Marlin005/todoapp.git (fetch)
origin https://github.com/Marlin005/todoapp.git (push)
Quit the server with CONTROL-C.
[13/Aug/2020 12:29:45] "GET /tasks/list/ HTTP/1.1" 200 2696
[13/Aug/2020 12:29:45] "GET /static/js/script.js HTTP/1.1" 200 323
[13/Aug/2020 12:29:45] "GET /static/css/styles.css HTTP/1.1" 404 1668
Not Found: /favicon.ico
[13/Aug/2020 12:29:47] "GET /favicon.ico HTTP/1.1" 404 2314
Not Found: /task/complete/undefined
[13/Aug/2020 12:29:49] "GET /task/complete/undefined HTTP/1.1" 404 2350
[13/Aug/2020 12:29:51] "GET /tasks/delete/2 HTTP/1.1" 302 0
[13/Aug/2020 12:29:51] "GET /tasks/list/ HTTP/1.1" 200 2809
[13/Aug/2020 12:29:51] "GET /static/css/styles.css HTTP/1.1" 404 1668
git push heroku master
получаю такую ошибку:for path in utils.get_files(storage, ignore_patterns):
remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py", line 23, in get_files
remote: directories, files = storage.listdir(location)
remote: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/files/storage.py", line 313, in listdir
remote: for entry in os.listdir(path):
remote: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/build_a41b2106/todoapp/static'
remote:
remote: ! Error while running '$ python manage.py collectstatic --noinput'.
remote: See traceback above for details.
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
"""
Django settings for todoapp project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
import django_heroku
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
#SECRET_KEY = '*lt38#6u@y_qhsy&bb=*87m@#h)--#9fx+uhc2+lzdo&nbc5@m'
import os
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', '*lt38#6u@y_qhsy&bb=*87m@#h)--#9fx+uhc2+lzdo&nbc5@m')
# SECURITY WARNING: don't run with debug turned on in production!
# DEBUG = True
DEBUG = bool( os.environ.get('DJANGO_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',
'tasks.apps.TasksConfig',
'accounts.apps.AccountsConfig',
# 'send_email.apps.SendEmailConfig'
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'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 = 'todoapp.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
'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 = 'todoapp.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.1/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/2.1/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/2.1/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/2.1/howto/static-files/
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
LOGIN_REDIRECT_URL = "tasks:list"
MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "/media/")
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
#EMAIL_HOST = os.environ.get("EMAIL_HOST", 'smtp.example.com')
#EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER", 'wrong_user@example.com')
#EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD", 'wrong_password')
#EMAIL_PORT = int(os.environ.get("EMAIL_PORT", "25"))
#EMAIL_USE_TLS = bool(os.environ.get("EMAIL_USE_TLS", ""))
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#AUTH_USER_EMAIL_UNIQUE = True
#EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
EMAIL_PORT = 465
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = ''
#EMAIL_HOST = os.environ.get("EMAIL_HOST")
#EMAIL_PORT = int(os.environ.get("EMAIL_PORT"))
django_heroku.settings(locals())
# Heroku: Update database configuration from $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)
# Simplified static file serving.
# https://warehouse.python.org/project/whitenoise/
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
def add_arguments(self, parser):
parser.add_argument('--file=input.txt', dest='input_file', type=str)
management.call_command()
вызывать?# coding: utf-8
from django.core.management import BaseCommand
from datetime import datetime
from tasks.models import TodoItem
class Command(BaseCommand):
help = u"Display not yet completed tasks' dates"
def add_arguments(self, parser):
parser.add_argument('--warning-days', dest='warn_days', type=int,
default=5)
def handle(self, *args, **options):
now = datetime.now(timezone.utc)
for t in TodoItem.objects.filter(is_completed=False):
if (now - t.created).days >= options['warn_days']:
print("Задача:", t, t.created)
Ты вообще можешь её попробовать отключить в биосе
W:GPG error: dl.google.com/linux/earth/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13, E:The repository 'dl.google.com/linux/earth/deb stable Release' is not signed.
user@user-RC530-RC730:~$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)