background preloader

Django

Facebook Twitter

Using Django with Appengine. Warning: This article is very old. You should look at for more recent articles. Hello. Are you interested in Django? You should read our blog. Welcome to Django tutorial for integrating with Appengine. We will build a Poll engine, where people can create polls, and vote on the options. A listing of the recently created polls.A page where you can create new pages.A page with the choices, and for voting.A page with the results. A live install of this can be see on blogango.appspot.com The complete source for this can be downloaded from here Downlaoding Django is very well documented, so I will not repeat it here. If you are having trouble with this tutorial, please ask in Django forum and some one from Django community would be able to help you , or leave a comment on 42topics.com blog, and I will try to help you.

Create a directory where you would like to keep all your Appengine and Django files. Django-admin.py startproject appproject # Log errors. if __name__ == '__main__': main() In Choice: Tutorial. Python is an easy to learn, powerful programming language.

Tutorial

It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C).

This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. The Glossary is also worth going through. Instant Hacking. This is a short introduction to the art of programming, with examples written in the programming language Python.

Instant Hacking

(If you already know how to program, but want a short intro to Python, you may want to check out my article Instant Python.) This article has been translated into Italian, Polish, Japanese, Serbian, Brazilian Portuguese, Dutch, Czech, and Belarusian. This page is not about breaking into other people’s computer systems etc. I’m not into that sort of thing, so please don’t email me about it. Note: To get the examples working properly, write the programs in a text file and then run that with the interpreter; do not try to run them directly in the interactive interpreter — not all of them will work. To program in Python, you must have an interpreter installed.

Programming a computer means giving it a set of instructions telling it what to do. Of course, no computer would understand this… And most computers wouldn’t be able to make a salad even if they did understand the recipe.