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

115
Views
I want make list with django
category1 = ''
category1_tmp = ['a','b',c','d']
for n in category1_tmp:
    category1 &= n + '|'

django error : unsupported operand type(s) for &=: 'str' and 'str'

what i want : a|b|c|d

how can I solve?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can join the elements together with:

category1 = '|'.join(category1_tmp)

For a list ['a', 'b', 'c', 'd'] this will result in category1 = 'a|b|c|d'.

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!