hitrust / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

Support for Django 1.2 #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the instructions to unpack the .zip as "mysite" and try to run 
"python manage.py runserver"

What is the expected output? What do you see instead?
Expected result is a local web server running on port 8000 that you can connect 
to to test your application

What version of the product are you using? On what operating system?
r109.zip on Ubuntu 10.10 with Python 2.6 and Django 1.2.3

Please provide any additional information below.

Since Google App Engine is officially supporting django 1.2, I wanted to try 
this helper script. Using the instructions provided here on the Project Home, 
running "python manage.py runserver" produced the following error:

$ python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    InstallAppengineHelperForDjango()
  File "/opt/projects/python/appengine_django/__init__.py", line 523, in InstallAppengineHelperForDjango
    LoadDjango(version)
  File "/opt/projects/python/appengine_django/__init__.py", line 178, in LoadDjango
    raise UnacceptableVersionError()
google.appengine.dist._library.UnacceptableVersionError

My solution was to edit appengine_django/__init__.py on line 171 to change from 
this:

for check_version in ('1.1', '1.0'):

to this:

for check_version in ('1.2','1.1', '1.0'):

... and now the "python manage.py runserver" command starts up just fine. I'm 
still quite new to Python, so hopefully this doesn't completely break something 
else, so if there's a better way to do this, I'd appreciate knowing.

Original issue reported on code.google.com by iandouglas736 on 20 Feb 2011 at 9:19

GoogleCodeExporter commented 9 years ago
already fixed in r113

Original comment by sforne...@gmail.com on 21 Feb 2011 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by m...@google.com on 20 Aug 2011 at 5:13