get2abhi / channel-tac-toe

Automatically exported from code.google.com/p/channel-tac-toe
0 stars 0 forks source link

ImportError: No module named django.utils #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Checkout the svn 
svn checkout http://channel-tac-toe.googlecode.com/svn/trunk/ 
channel-tac-toe-read-only
2. Add the application to GoogleAppEngineLauncher
3. Browse to the page

What is the expected output? What do you see instead?
Expected to be able to use the tic tac toe game to learn how to implement 
channel api

What version of the product are you using? On what operating system?
MacOSX 10.8.3, GAELauncher 1.7.7

Please provide any additional information below.

From the log:

ERROR    2013-04-28 05:14:13,479 cgi.py:121] Traceback (most recent call last):
  File "/Users/dd/Python/channel-tac-toe-read-only/chatactoe.py", line 18, in <module>
    from django.utils import simplejson
ImportError: No module named django.utils

Original issue reported on code.google.com by ddick...@gmail.com on 28 Apr 2013 at 5:18

GoogleCodeExporter commented 8 years ago
1. Replace the line 

  from django.utils import simplejson

with

  import json

2. Replace the line

  return simplejson.dumps(gameUpdate)

with

  return json.dumps(gameUpdate)

Original comment by momander@google.com on 20 Apr 2014 at 7:01