pycharm on GoogleAppEngine Django and non-rel

Has anyone successfully run a non-rel GAE application with PyCharm?

When trying to run an app with pycharm I get errors with I thin it's because the way web server is run.

with non-rel I need to run the server as:  python manage.py runserver

instead of running dev_server.

2 comments
Comment actions Permalink

Hello afshin,

If you need to run the server in a non-standard way, you can create a run

configuration of type Python Script and specify the parameters manually,

instead of using the predefined App Engine run configuration.

Has anyone successfully run a non-rel GAE application with PyCharm?

When trying to run an app with pycharm I get errors with I thin it's

because the way web server is run.

with non-rel I need to run the server as:  python manage.py runserver

instead of running dev_server.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

I usually run the server as follows which works fine:

>> python manage.py runserver

I noticed when running pycharm, it also runs the server in similair way,  however when running Django server with Pycharm I get a fatal error I don't understand:

--------------------------------------------

runnerw.exe C:\Python25\python.exe manage.py runserver 8000

WARNING:root:No ssl package found. urlfetch will not be able to validate SSL certificates.

WARNING:root:Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging

INFO:google.appengine.tools.appengine_rpc:Server: appengine.google.com

INFO:root:Checking for updates to the SDK.

INFO:root:Connecting to SQLite database '' with file 'C:\\Documents and Settings\\afshin\\Desktop\\App Engine\\rtest\\.gaedata\\rdbms'

WARNING:root:Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging

Traceback (most recent call last):

  File "manage.py", line 11, in <module>

    execute_manager(settings)

  File "C:\Documents and Settings\afshin\Desktop\App Engine\rtest\__init__.py", line 438, in execute_manager

  File "C:\Documents and Settings\afshin\Desktop\App Engine\rtest\__init__.py", line 379, in execute

  File "C:\Documents and Settings\Administrator\Desktop\App Engine\testapp\djangoappengine\management\commands\runserver.py", line 77, in run_from_argv

  File "C:\Documents and Settings\Administrator\Desktop\App Engine\testapp\djangoappengine\management\commands\runserver.py", line 64, in start_dev_appserver

  File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py", line 629, in main

    static_caching=static_caching)

  File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 4818, in CreateServer

    server = HTTPServerWithScheduler((serve_address, port), handler_class)

  File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 4844, in __init__

    request_handler_class)

  File "C:\Python25\lib\SocketServer.py", line 330, in __init__

    self.server_bind()

  File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind

    SocketServer.TCPServer.server_bind(self)

  File "C:\Python25\lib\SocketServer.py", line 341, in server_bind

    self.socket.bind(self.server_address)

  File "<string>", line 1, in bind

socket.gaierror: (11001, 'getaddrinfo failed')

Process finished with exit code 1

0

Please sign in to leave a comment.