Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

401
Views
ValueError en /createuser/ literal no válido para int() con base 10: 'satya'

Estoy tratando de crear un usuario. primero estoy comprobando si el usuario existe o no, pero por primera vez me da este error:

ValueError en /createuser/

literal inválido para int() con base 10: 'satya'

y cuando actualizo esta página funciona bien. mi código:

 for i in range(0, len(username)): try: print(username[i]) user = User.objects.get(username = username[i]) except User.DoesNotExist: user = User.objects.create_user(username=username[i], email=email[i], password=password[i],first_name=firstname[i],last_name=lastname[i] ) group.user_set.add(username[i]) except ValueError: pass

¡¡gracias de antemano!!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

creo que tienes que hacer

 group.user_set.add(user.id)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!