here is the full exception :
Traceback (most recent call last):
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\fields\__init__.py", line 2123, in get_prep_value
return int(value)
ValueError: invalid literal for int() with base 10: 'jsingh14192@gmail.com'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "X:\Programming\Influencer-Engagement\manage.py", line 22, in <module>
main()
~~~~^^
File "X:\Programming\Influencer-Engagement\manage.py", line 18, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 90, in execute
return super().execute(*args, **options)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\core\management\base.py", line 459, in execute
output = self.handle(*args, **options)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 239, in handle
self.UserModel._default_manager.db_manager(database).create_superuser(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
**user_data
^^^^^^^^^^^
)
^
File "X:\Programming\Influencer-Engagement\users\models.py", line 24, in create_superuser
return self.create_user(email, password, **extra_fields)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\users\models.py", line 15, in create_user
user.save(using=self._db)
~~~~~~~~~^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\contrib\auth\base_user.py", line 62, in save
super().save(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\base.py", line 891, in save
self.save_base(
~~~~~~~~~~~~~~^
using=using,
^^^^^^^^^^^^
...<2 lines>...
update_fields=update_fields,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\base.py", line 997, in save_base
updated = self._save_table(
raw,
...<4 lines>...
update_fields,
)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\base.py", line 1129, in _save_table
updated = self._do_update(
base_qs, using, pk_val, values, update_fields, forced_update
)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\base.py", line 1173, in _do_update
filtered = base_qs.filter(pk=pk_val)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\query.py", line 1476, in filter
return self._filter_or_exclude(False, args, kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\query.py", line 1494, in _filter_or_exclude
clone._filter_or_exclude_inplace(negate, args, kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\query.py", line 1501, in _filter_or_exclude_inplace
self._query.add_q(Q(*args, **kwargs))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\sql\query.py", line 1609, in add_q
clause, _ = self._add_q(q_object, self.used_aliases)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\sql\query.py", line 1641, in _add_q
child_clause, needed_inner = self.build_filter(
~~~~~~~~~~~~~~~~~^
child,
^^^^^^
...<7 lines>...
update_join_types=update_join_types,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\sql\query.py", line 1555, in build_filter
condition = self.build_lookup(lookups, col, value)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\sql\query.py", line 1385, in build_lookup
lookup = lookup_class(lhs, rhs)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 30, in __init__
self.rhs = self.get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 369, in get_prep_lookup
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\fields\__init__.py", line 2125, in get_prep_value
return super().get_prep_lookup()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\lookups.py", line 88, in get_prep_lookup
return self.lhs.output_field.get_prep_value(self.rhs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\fields\__init__.py", line 2125, in get_prep_value
File "X:\Programming\Influencer-Engagement\env\Lib\site-packages\django\db\models\fields\__init__.py", line 2125, in get_prep_value
raise e.__class__(
"Field '%s' expected a number but got %r." % (self.name, value),
) from e
ValueError: Field 'id' expected a number but got 'jsingh14192@gmail.com'.