littleq0903 / appengine-admin

Automatically exported from code.google.com/p/appengine-admin
0 stars 0 forks source link

djangoforms replacement or python 2.7 #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We are looking for a solution and I found that also appengine_admin uses 
djangoforms which are not available when upgrading to 2.7. Did you think of a 
solution yet? We are discussing it in the google group today:

We've used http://wtforms.simplecodes.com/ in a few WSGI apps.

Might be worth a look, has some great features.

On Mon, Oct 31, 2011 at 7:34 PM, Niklas R <niklasro@gmail.com> wrote:
> Hi
> My app is upgrading to python 2.7 and used the djangoforms and now with
> python 2.7  I must get out of it since it is no longer included with the
> python 2.7:
>
>  from google.appengine.ext.db import djangoforms
> ImportError: cannot import name djangoforms
>
> So I'm considering choosing a complete new form framework while in the
> meantime I just patch in djangoforms. Or do you think I should continue to
> patch in djangoforms since I also patch in the django.paginator and I
> actually quite like it that I can do that? I looked at some form framework
> and I want it to be able to do validation and preferably also form preview.
> Am I better off creating my own form handling than looking for a form
> framework since I can't find one that can do preview?
>
> Thank you

Original issue reported on code.google.com by nikla...@gmail.com on 31 Oct 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Here's some more discussion about python 2.7 Please make appengine_admin run 
with GAE + python 2.7:

I'm glad to verify that 3 apps I do work with the new SDK and python 2.7. What 
could be clearer are:

- Some tools such as appengine_admin no longer work since they were not 
forward-comaptible
- I don't have to add to entire django project but I can still import 
django.utils.translation and add it to the Jinj2 environment which surprised me 
in two ways both that the gettext i18n django translations can be used with the 
Jinja2 trans tag and that I didn't have to add django to make the import
- djangoforms and webapp filters are no longer avilable same way as before
- using Jinja2 libraries etc are done directly in app.yaml
- a / must get replaced by a . when using python 2.7 and defining scripts in 
app.yaml
- handling forms is still somewhat unconvenient. I add WTForms and I've got 
problems for instance how to access the variables in the HTTP post with the 
blobstoreuploadhandler. I expect to solve this within some days

The above were some of my experiences upgrading 3 applications to the new SDK. 
I hope it helps somebody or makes you comment and/or answer.

Thank you
Niklas R

Original comment by nikla...@gmail.com on 5 Nov 2011 at 9:46