Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest way to generate CRUD webpages for Google App Engine using Python?

I have created a set of Models for my database using Python. Now I'd like to rapidly load them with some data -- manually. If this were a .NET app, I'd use one of the nifty controls that come with Visual Studio to rapidly connect to the database and bind a grid to it. Then go to town adding data.

What's the matching way to do this in Python using Google App Engine?

In ASP.NET MVC, they have this new "scaffolding" stuff (part of Entity Framework) that will generate CRUD pages for you. Is there anything like that given a bunch of Model objects in GAE?

P.S. using the handy, dandy command line options --use_sqlite and --datastore_path, I can quickly backup my database in my dev environment once I do this.

like image 431
101010 Avatar asked Jul 23 '11 22:07

101010


People also ask

How do I create a website using Google App Engine?

Go to the App Engine dashboard on the Google Cloud Platform Console and press the Create button. If you've not created a project before, you'll need to select whether you want to receive email updates or not, agree to the Terms of Service, and then you should be able to continue.

Which of the following language is supported by Google App Engine?

Google App Engine primarily supports Go, PHP, Java, Python, Node. js, . NET, and Ruby applications, although it can also support other languages via "custom runtimes".


1 Answers

If you are using Django on GAE then you can use the Django Administration site:

So what’s Django’s approach to these boring, repetitive tasks? It does it all for you—in just a couple of lines of code, no less. With Django, building an admin interface is a solved problem.

It automatically builds CRUD based HTML forms for managing the model.

like image 101
Rebecca Avatar answered Oct 19 '22 05:10

Rebecca