TIS2023-FMFI / evidencia-flias

Evidencia zásob plynov vo fľašiach v laboratóriu
The Unlicense
0 stars 0 forks source link

createsuperuser failne #45

Closed gardenerik closed 9 months ago

gardenerik commented 9 months ago
Traceback (most recent call last):
  File "/home/ano95/Dev/FMFI/evidencia-flias/manage.py", line 22, in <module>
    main()
  File "/home/ano95/Dev/FMFI/evidencia-flias/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 88, in execute
    return super().execute(*args, **options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ano95/.cache/pypoetry/virtualenvs/evidencia-flias-wjuN-fpZ-py3.11/lib/python3.11/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 233, in handle
    self.UserModel._default_manager.db_manager(database).create_superuser(
TypeError: UserManager.create_superuser() missing 1 required positional argument: 'username'
Neverdpis commented 9 months ago

V modeloch v modely user ak zmažeš posledné 2 riadky tak sa dá vytvoriť, aj keď musiš mu dať meno aj email