Olifante *'s Library tagged → View Popular
Usefull tips to start a new project with Django
"Useful tips to start a new project with Django"
-
Only use null=True for non-string fields such as integers, booleans and dates: Avoid using null on string-based fields such as CharField and TextField unless you have an excellent reason.
-
Use fixtures to reimport data and test your apps
manage.py dumpdata --indent=4 > initial.jsonandmanage.py loaddata initial, don't spend time to reinsert data everyday with the admin - 2 more annotations...
My first week of django — Reinout van Rees' website
A Plone veteran shares his impression after one week with Django.
-
Light-weight. That's really something completely different from the towering stack that is Plone. Change a .py file and django will just restart itself.
-
Simple customization mechanism, especially for templates. Basically what Plone had with the portal skins. With two differences that make it a bit more maintainable. (a) by convention, every add-on stores its templates in a subdirectory named after itself. So that does away with many name clashes and the one-global-namespace problem Plone had. Just a simple convention. (b) There's a list of template directories in the global config file. That's the order of directories in which Django searches for templates. I'd say that feels much more practical than anything that plone has right now.
- 3 more annotations...
Quick Django Benching
"Before beginning these tests I assumed that since Lighttpd and Nginx were so fast otherwise they'd perform best. As you can see, deploying Django under mod_python is fast. It's no wonder it's the recommended method for deployment."
-
Before beginning these tests I assumed that since Lighttpd and Nginx were so fast otherwise they'd perform best. As you can see, deploying Django under mod_python is fast. It's no wonder it's the recommended method for deployment.
Desi Founder @ Work » Django Subdomains
-
Adding support for sub-domains in Django is simple but has a few catches. It took me quite some time to get everything working.
The following links provide a quick way to make sub-domains:
rossp.org - Using Subdomains with Django
Django Ticket #5022 - Proposed middleware: SubdomainURLsMiddlewareThe summary of above links is that you have to put a wildcard entry in your domain DNS so that all your subdomains resolve to the IP on which your site is hosted. Then make sure apache handles all the requests to sub-domains; again using a wildcard in apache’s configuration. Then write a middleware which checks the subdomain in request and processes it accordingly by either loading a customized URLs pattern or by handling the request with a view with appropriate logic.
Using Django with Appengine
"This is a port of the Django tutorial to use appengine instead of Pure Django. Like in the Django tutorial, we build a poll engine, where you can create polls and others can vote for them."
Special Ops for Django
"The gist of it is that I've added a few new views and a single function decorator that you can use to unleash the additional functionality within the admin."
Django vs. ASP.NET MVC
"When I started looking at Django, there was a simple 4 step tutorial that I followed to get up to speed. I read through it and over the next couple days I got my simple app up and running. There is nothing like that for the ASP.NET MVC stuff"
JeffCroft.com: Django for non-programmers
Short intro for non-programmers focusing on the high-level building blocks of Django
Rails is the best thing that ever happened to Python
"As much as I may like Ruby more as far as language design goes, not only does Python boast a very solid implementation, it has several advantages over Ruby that go beyond the interpreter."
Comparação entre Rails e Django
"Rails [...] está anos luz à frente [do Django]. A definição de tabelas utilizando sintaxe Ruby, a definição de modelos de forma DRY, o controle da evolução do banco de dados de forma trivial, os testes com RSpec facilmente integrados à aplicaç
"Declarative" Forms with the Django newforms
"I want reuse my model definition in a more flexible manner than the form_for_model way, and I want also to have a more nice html rendering than the as_p or as_table methods can do."
The Shrinking Python Web Framework World
There are now only three relevant python web frameworks left: Django, Zope and soon TurboGears 2 (with Pylons under the hood). Looks like Ruby on Rails is putting some healthy competitive pressure into the python webdev world.
Now with Django powered goodness!
"The thing about Typo was that it was hard to make any changes to it [...]. With the Django there is no magic— just clean, explicit, and simple design."
Python Web Framework Statistics
Dynamic ranking of Python Web Frameworks based on number of Yahoo results. It's interesting to see that the main contender, Zope, currently only scores 54% of the results accumulated by competing newcomer Ruby on Rails.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in django
-
Django
Django sites.
Items: 5 | Visits: 16
Created by: Richard Kanavati
-
django
Items: 14 | Visits: 30
Created by: Wang Bin
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
