devserver

jsessionID gets appended to the url when running GAE devserver

假装没事ソ 提交于 2019-12-01 03:46:11
For some reason string like: ;jsessionid=SESSION_HERE gets added to urls when I visit my app deployed to GAE devserver. This messes things up since for some of the urls it cannot be parsed as as a GET parameter at all (sometimes it ends up with urls like: http://localhost:8080/someurl;jsessionid=0000 ). My webapp configuraion is trivial and I use maven and appengine-maven-plugin to run devserver like this: mvn appengine:devserver What is the reason of this and how this can be removed? Eugene Loy Add: <context-param> <param-name>org.mortbay.jetty.servlet.SessionURL</param-name> <param-value

gettext translation not working on production system

我只是一个虾纸丫 提交于 2019-12-01 02:35:53
问题 I've encountered a strange problem when translating strings (in the admin) using django's gettext : Locally running the dev server all translations are displayed correctly in the admin, but when the project is deployed on the production server some strings are not translated at all. I cannot determine any system behind which strings are affected and which not! To give you an impression, eg. a model is defined like: class Company(models.Model): .... class Meta: verbose_name = _('Company

Webpack Dev Server running on HTTPS/Web Sockets Secure

♀尐吖头ヾ 提交于 2019-11-28 19:25:00
问题 Normally in developer mode Webpack runs using HTTP. There is usually a web server serving content through HTTP and webpack using http/websockets on a separate port. Is it possible to run the web server on https and webpack on https/websocket secure ? 回答1: See the webpack docs There is a flag you can add to the webpack-dev-server command webpack-dev-server --https 回答2: While the above answer is correct for cli, if you are not in the CLI, you could do something like this (in a gulp task): var

PyDev and Django: how to restart dev server?

纵然是瞬间 提交于 2019-11-27 22:07:21
I'm new to Django. I think I'm making a simple mistake. I launched the dev server with Pydev: RClick on project >> Django >> Custom command >> runserver The server came up, and everything was great. But now I'm trying to stop it, and can't figure out how. I stopped the process in the PyDev console, and closed Eclipse, but web pages are still being served from http://127.0.0.1:8000 . I launched and quit the server from the command line normally: python manage.py runserver But the server is still up. What am I doing wrong here? By default, the runserver command runs in autoreload mode, which