• Неправильно копируются файлы в Vite.js?

    @vadik007 Автор вопроса
    Антон Антон, У меня просто верстка без ларавел и прочего.
  • Неправильно копируются файлы в Vite.js?

    @vadik007 Автор вопроса
    Дмитрий Кузнецов, запускаю через npm run dev или npm run build. Думаю что нода здесь участвует
  • В биосе удалили жесткий диск и теперь при запуске он его не видит?

    @vadik007 Автор вопроса
    Дмитрий, сброс настроек не помогает, ОС не была установлена, ноутбук новый, без системы
  • Не срабатывает анимация при заполнении текста в input?

    @vadik007 Автор вопроса
    .input:focus ~ .label, .input:not(:placeholder-shown) ~ .label {
    top: -25px;
    left: 0;
    }
    делаю вот так, плейсхолдер вроде указал, или что то не так?
  • Как исправить ошибку "Functions are not valid as a React child"?

    @vadik007 Автор вопроса
    капец, спасибо)))) блин
  • Не появляются импортированные модули?

    @vadik007 Автор вопроса
    Спасибо, увидел
  • Не могу подключиться к созданному серверу Postgres?

    @vadik007 Автор вопроса
    В общем создал базу в первом сервере, всем спасибо
  • Не могу подключиться к созданному серверу Postgres?

    @vadik007 Автор вопроса
    Дело в том что у меня в списке 2 сервера и к одному подключается нормально, который создается при установке, а второй который я создал почему то не всегда запускается, служба выполняется и активна. Что я мог сделать в настройках не так или чего мог не сделать? все делал по аналогии с первым сервером
  • Не могу загрузить данные в таблицу бд?

    @vadik007
    Сергей Горностаев, Да прошу прощения
    for row in DictReader(open('./datasets/ad.csv', encoding='utf-8')):
                # author = User.objects.get(id=row['author_id'])
                # category = Category.objects.get(id=row['category_id'])
                child = Ads.objects.create(
                            name=row['name'],
                            # author_id=author,
                            price=row['price'],
                            description=row['description'],
                            is_published=row['is_published'].lower().title(),
                            image=row['image'],
                            # category_id=category
                )
                child.author.set(User.objects.filter(id=row['author_id']))
                child.category.set(Category.objects.filter(id=row['category_id']))

    Сейчас переписал код так. А вот ошибка с прошлого кода
    C:\PROJECTS\SKYPRO\LESSON-28-DZ>python manage.py load_ads
    System check identified some issues:
    
    WARNINGS:
    ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/delete/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/delete/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/update/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/update/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/create/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/create/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    (0.000) SELECT (1) AS "a" FROM "ads_ads" LIMIT 1; args=(); alias=default
    Loading childrens data
    (0.000) SELECT "users_user"."id", "users_user"."password", "users_user"."last_login", "users_user"."is_superuser", "users_user"."username", "users_user"."first_name", "users_user"."last_name", "users_user"."email", "users_user"."is_staff", "users_user"."is_active",
    "users_user"."date_joined", "users_user"."role", "users_user"."age" FROM "users_user" WHERE "users_user"."id" = 1 LIMIT 21; args=(1,); alias=default
    (0.000) SELECT "ads_category"."id", "ads_category"."name" FROM "ads_category" WHERE "ads_category"."id" = 1 LIMIT 21; args=(1,); alias=default
    Traceback (most recent call last):
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\fields\__init__.py", line 1988, in get_prep_value
        return int(value)
    TypeError: int() argument must be a string, a bytes-like object or a real number, not 'User'
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\manage.py", line 22, in <module>
        main()
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\manage.py", line 18, in main
        execute_from_command_line(sys.argv)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
        utility.execute()
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 440, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv
        self.execute(*args, **cmd_options)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 460, in execute
        output = self.handle(*args, **options)
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\ads\management\commands\load_ads.py", line 35, in handle
        child = Ads.objects.create(
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\query.py", line 514, in create
        obj.save(force_insert=True, using=self.db)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\base.py", line 806, in save
        self.save_base(
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\base.py", line 857, in save_base
        updated = self._save_table(
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\base.py", line 1000, in _save_table
        results = self._do_insert(
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\base.py", line 1041, in _do_insert
        return manager._insert(
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\query.py", line 1434, in _insert
        return query.get_compiler(using=using).execute_sql(returning_fields)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\sql\compiler.py", line 1620, in execute_sql
        for sql, params in self.as_sql():
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\sql\compiler.py", line 1547, in as_sql
        value_rows = [
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\sql\compiler.py", line 1548, in <listcomp>
        [
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\sql\compiler.py", line 1549, in <listcomp>
        self.prepare_value(field, self.pre_save_val(field, obj))
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\sql\compiler.py", line 1487, in prepare_value
        value = field.get_db_prep_save(value, connection=self.connection)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\fields\related.py", line 1126, in get_db_prep_save
        return self.target_field.get_db_prep_save(value, connection=connection)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\fields\__init__.py", line 910, in get_db_prep_save
        return self.get_db_prep_value(value, connection=connection, prepared=False)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\fields\__init__.py", line 2668, in get_db_prep_value
        value = self.get_prep_value(value)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\fields\__init__.py", line 1990, in get_prep_value
        raise e.__class__(
    TypeError: Field 'id' expected a number but got <User: pnikifirov>.
  • Не могу загрузить данные в таблицу бд?

    @vadik007
    Сергей Горностаев,
    C:\PROJECTS\SKYPRO\LESSON-28-DZ>python manage.py load_ads
    System check identified some issues:
    
    WARNINGS:
    ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/delete/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/delete/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/update/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/<int:pk>/update/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/create/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    ?: (urls.W002) Your URL pattern '/create/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
    (0.000) SELECT (1) AS "a" FROM "ads_ads" LIMIT 1; args=(); alias=default
    Loading childrens data
    (0.016) INSERT INTO "ads_ads" ("name", "author_id", "price", "description", "is_published", "image", "category_id") VALUES ('Сибирская котята, 3 месяца', NULL, 2500, 'Продаю сибирских котят, возвраст 3 месяца.
    Очень милые и ручные.
    Лоточек знают на пятерку, кушают премиум корм.
    Ждут любящих и заботливых хояев. Больше фотографий отправлю в личку, цена указана за 1 котенка.', true, 'images/post1.jpg', NULL) RETURNING "ads_ads"."id"; args=('Сибирская котята, 3 месяца', None, 2500, 'Продаю сибирских котят, возвраст 3 месяца.\nОчень милые и руч
    ные.\nЛоточек знают на пятерку, кушают премиум корм.\nЖдут любящих и заботливых хояев. Больше фотографий отправлю в личку, цена указана за 1 котенка.', True, 'images/post1.jpg', None); alias=default
    Traceback (most recent call last):
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\manage.py", line 22, in <module>
        main()
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\manage.py", line 18, in main
        execute_from_command_line(sys.argv)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
        utility.execute()
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 440, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv
        self.execute(*args, **cmd_options)
      File "C:\Users\Giru\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 460, in execute
        output = self.handle(*args, **options)
      File "C:\PROJECTS\SKYPRO\LESSON-28-DZ\ads\management\commands\load_ads.py", line 44, in handle
        child.author.set(User.objects.filter(id=row['author_id']))
    AttributeError: 'NoneType' object has no attribute 'set'
  • Пятна на бумаге при печати на Canon 4410 как убрать?

    @vadik007 Автор вопроса
    это я и так знал), что имено надо в нем заменить
  • Сканер не корректно сканирует код дата-матрикс при подключении по RDP?

    @vadik007 Автор вопроса
    Просто он изначально был на ком порте, и пробовал на native api - одинаково
  • Не могу установить Django?

    @vadik007 Автор вопроса
    просто папки и файлы с джанго не появляются и я не могу создать проект bash: django-admin: command not found
  • Как изменить дату счет фактуры в 1с?

    @vadik007 Автор вопроса
    Константин, спасибо, я жестко тупанул))
  • Как изменить дату счет фактуры в 1с?

    @vadik007 Автор вопроса
    Блин, я уже читал про галку выставлен, но не могу найти где ее снять. Подскажите пожалуйста где она находится?