Sanshain / django_sample

0 stars 0 forks source link

Problem 500 server error by ajax response from users/%d/ after change state from message/to_%d #2

Open Sanshain opened 5 years ago

Sanshain commented 5 years ago

ValueError at /users/20/ invalid literal for int() with base 10: 'check=0'

In line:

cuser = Profile.objects.get(id=user_id)

Sanshain commented 5 years ago

UserView can't to handle the last request from messages_list vs func Checking on body 'Checking=#last_recieved_message_id'

Sanshain commented 5 years ago

You can two opportunities:

  1. Break Checking if changed address
  2. Set last message id in separate var and catch in on other pages