JetBrains gateway with djanorestframework

已回答

I have been a long time Pycharm user and now using it with the remote gateway but I am seeing odd behavior with djangorestframework and Knox using the gateway.  Pycharm frontend is on my mac and backend is on Ubuntu 20.04. When running the app in deveopment my browser opens on the loopback address and it seems to work well.   My tokens expire just as they do in production.  However, in development using the browser over the gateway, I can connect to all the  Django views though the token has expired.  Again, this doesn't happen in production and the authentication code hasn't changed at all.  Could have something to do with remote django development?

0

I found the problem.  The new remote development environment had symbolic links, creating path issues for the variables in settings.py.

0
Hey Mitch,
Thank you for reporting this problem. 
Unfortunately, I didn't succeed in reproducing the problem. Could you please share a small example of variables from settings.py that are not working with the remote dev?
0

请先登录再写评论。