Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
DjangoCon 2011 – Portland
DjangoCon 2011 officially launches in just under 2 hours (12pm EST, 9am PDT) and you can already feel the excitement in the air (actually, most people are just starting to wake up). This year you’ll be able to follow along even if you’re not in lovely Portland by heading on over to http://djangocon.us/livestream/ where they’ll be live streaming both [...] -
Get your (arcade) game on!
-
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Valder
OK, i dont care -
Django'da Sınıf Temelli Genel Görünümler
Django'da geliştirirken, ister istemez genel görünümlere dokunuyoruz. Son günlerde, django gezegeninde ve mail gruplarında, sınıf temelli görünümlerden bahsedildiğini gördüm, ancak, bunların nasıl kullanılacağı hakkındaki bilgim yok denecek kadar azdı. Bu yüzden, Django belgelerine biraz göz attım, ve etkin kullanıldığında, sınıf temelli görünümlerin, çok verimli olabileceği kanısına vardım. Şimdilik yüzeysel olarak, örnekler ve kısa açıklamalar yazmak istedim, kendimi bu konuda geliştirirsem, ileride daha derin olarak inceleyebilirim bunları.Şablonlar # uygulamam/views.py from django.views.generic import TemplateView class Hakkimda(TemplateView): template_name = "hakkimda.html" Django'nun genel görünümlerinden TemplateView, bir şablonu olduğu gibi tarayıca göndermeye yarıyor. Burada, Hakkimda isimli sınıf temelli bir görünümü, TemplateView'den türetip, template_name değişkeninin, yani şablon adını belirleyen değişkenin, üstüne yazdık. Böylece, tarayıcıya hakkimda.html şablonunu gönderen bir görünümü hızlıca yazdık. Şüphesiz ki bu, baştan bir görünüm yazmaktan daha hızlıdır. Bu sınıfı, bir url ile eşleştirmek için, urls.py içerisinde gerekli ayarları yapmamız gerek. # urls.py from django.conf.urls.defaults import * from uygulamam.views import Hakkimda urlpatterns = patterns('', (r'^hakkimda/', Hakkimda.as_view()), ) Hakkimda, bir sınıftır, url ile eşleştirdiğimiz ise, bu sınıfın as_view metodunun döndürdüğü görünüm fonksiyonu. Anlaşılan, sınıf temelli görünümlerin kendileri aslında görünüm değiller. Gerekli görünüm fonksiyonlarını, sınıfın as_view metodundan alıyoruz. Ayrıca, buradaki gibi, sadece tek bir özelliğin üstüne yazılması gereken durumlarda, bunu yeni bir sınıf türetmeden, hemen urls.py … -
New: Automatically Filling in a User in the Admin
Sometimes it is nice to automatically add the current user into a field, like to easily keep track of the last user who modified a record or automatically set the “author” of a record. In earlier versions of Django this was pretty simple, but with validation added to Django, it requires a bit more work. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Galvanni
Don't you care plainly reference much of this on my small site easily post a hyperlink back in this site? -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por new japanese sports cars
Fantastic goods from you, man. Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo I've understand your stuff previous to and you are just extremely great. I actually like what you have acquired here, really like what you're stating and the way in which you say it. You make it entertaining and you still care for to keep it smart. I can not wait to read much more from you. This is really a wonderful Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo informations. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por email cover letter
I agree with your Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo, great post. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por http://jocuri-impuscaturi.ro/jocuri/7/Jocuri-cu-arma.html
A further issue is video games are typically serious anyway with the key focus on learning rather than enjoyment. Although, there is an entertainment aspect to keep the kids engaged, each and every game will likely be designed to focus on a specific experience or program, such as numbers or technology. Thanks for your publication Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo. -
Mixing Django Forms
So you ever wanted to mix a simple Django form (subclass of django.forms.Form) and a model form (subclass of django.forms.ModelForm)? TL;DR. Some background » I was coding a website which has an email-based authentication backend (for the record it is based on this snippet). Such a design decision implies that you have to take care of multiple things, and among them the forms. Django authentication system provides multiple default forms for login, password editing and so on. They perfectly fit the default situation (basic user name and password authentication), but they have to be tweak in any other case. However I didn't wanted to rewrite my forms from scratch, so obviously after a quite intense inheriting session, I found myself having some highly refactorable code, mainly because I always needed to add an email form field. My first idea was to create a simple object subclass which just contains the field and its validation method, and make all my forms inheriting from this proxy class (definitely not sure it's a good name for it, suggestions?). I knew that Django forms are more complicated than that in their way to "discover" fields, yet I tried. Yeah, it didn't work. Next idea: … -
Why doesn't it work? Everything seems right! Common causes.
-
Getting Started using Python in Eclipse
Eclipse with the PyDev module has a lot to offer the Python programmer these days. If you haven't looked at PyDev before, or not in a while, it's worth checking out.Here are some of my favorite features:One-keystroke navigation to the definitions of variables, methods, classesCode completion, including automatically adding import statementsClean up importsRefactoring, including renaming ... -
Getting Started using Python in Eclipse
Eclipse with the PyDev module has a lot to offer the Python programmer these days. If you haven't looked at PyDev before, or not in a while, it's worth checking out. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por classic hip hop
Old School Hip Hop History: the total bad sub-culture.blah. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por darts
I found your blog on yahoo. I think it's pretty nice. -
Caktus Consulting Group Sponsors DjangoCon 2011
DjangoCon 2011 is coming up next week and I’m excited to announce that Caktus is sponsoring the conference again this year! It is being held once again in beautiful Portland, Oregon from September 5th through the 10th. We’ve grown quite a bit from last year, there will be 9 team members-Colin, Tobias, Karen, Mark, Dan, Scott, George, Caleb and myself-attending the conference this year. -
Caktus Consulting Group Sponsors DjangoCon 2011
                                                                                              DjangoCon 2011 is coming up next week and I'm ... -
New: Introduction to Decorator Applications
A decorator app is an application that adds functionality to another application without the application's awareness. It is different than a Python decorator, rather it follows the idea from Design Patterns: Elements of Reusable Object-Oriented Software. -
Django Admin Snippets
At its minimum, the Django Admin is an effective tool for viewing and manipulating data within a Django database. At its max, it can be a robust application allowing clients and administrators to better manage their web applications. This article aims to highlight some of the admin customizations that I ... -
Impressive Satchmo Sites
I’m starting a project for a client in Satchmo and wanted to show him some sample stores produced with the technology so that he’d feel more comfortable with what it’s capable of. The following are the standouts after going through all the items on this list: blacklockjewellery.com qwertee.com livestrongfitness.com jeepcollins.com spoonnyc.com snowsportsonline.com zutano.com abodeliving.co.uk shopjoielle.com Quick note: while scanning through these sites it became very obvious how important is for a site to have a quick response time. When I clicked some of the links on the stores that I went to the site just wouldn’t respond to my requests. It just feels a lot better when the site is snappy and ready to serve you. -
django CMS 2.2 release candidate 2 available
django CMS 2.2 release candidate 2 available -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por hi
There are thousands of blogs that requires comments on them. What is the intention of blog comments? -
Quick, simple and arguably proper Ajax (without touching server-side)
I don't always ajaxify things, but when I do, I first try to do it as simply as possible. I have some biases about ajax (for example, it should be supplementary to the normal form behaviour), and they suggest a very simple and quick solution for ajax. -
Django'da Aggregate ve Annotate
Django veritabanı yönetiminde annotate() ve aggregate() kullanarak,satırların toplamı, ortalaması gibi, veritabanında birden çok satırdan veya ilgili diğer tablolardan bilgi toplayarak bulunması gereken değerleri bulabilirsiniz. annotate() ve aggregate() metodlarının farkı, aggregate'in tüm tablo için tek bir sonuç döndürmesi, annotate'in ise veritabanındaki tüm satırlar için ayrı birer değer oluşturmasıdır. Bu yazıda kısaca Django'da annotate ve aggreate kullanımı ile ilgili örnekler göstereceğim.Burada anlatılanlar kısaca django'da annotate ve aggregate nasıl kullanılır konusuna giriş yapmak içindir, daha fazlasını django belgelerinde aggregate ile ilgili bölümden bulabilirsiniz. Tablo alanlarının ortalaması ### # models.py ### from django.db import models class Urun(models.Model): fiyat = models.PositiveIntegerField() ### # Tüm ürünlere ait ortalama fiyatları almak istediğinizde ### from uygulama_adi.models import Urun from django.db import Avg a = Urun.objects.aggregate(Avg('fiyat')) # a = {"fiyat__avg": 23.56} -> bir dict objesi döndürür. # Dönen sözlükteki anahtar adını da ayarlayabilirsiniz. a = Urun.objects.aggregate(ortalama_fiyat=Avg('fiyat')) # a = {"ortalama_fiyat": 23.56} ## # Birden fazla değer hesaplamak ## from django.db.models import Max, Min a = Urun.objects.aggregate(Ortfiyat=Avg('fiyat'),Minfiyat=Min('fiyat'),maksfiyat=Max('fiyat')) # a = {"Ortfiyat" : 15.23, "Minfiyat": 3, "Maxfiyat" : 28} Django'da annotate kullanımı Bir istem kümesindeki (QuerySet) tüm değerler için aggregate almak için annotate kullanılır. Çoğu zaman annotate m2m (çokdan çoğa) ilişkilerde kullanılır. ### # models.py ### from django.db import models class … -
Django'da Aggregate ve Annotate
Django veritabanı yönetiminde annotate() ve aggregate() kullanarak,satırların toplamı, ortalaması gibi, veritabanında birden çok satırdan veya ilgili diğer tablolardan bilgi toplayarak bulunması gereken değerleri bulabilirsiniz. annotate() ve aggregate() metodlarının farkı, aggregate'in tüm tablo için tek bir sonuç döndürmesi, annotate'in ise veritabanındaki tüm satırlar için ayrı birer değer oluşturmasıdır. Bu yazıda kısaca Django'da annotate ve aggreate kullanımı ile ilgili örnekler göstereceğim.Burada anlatılanlar kısaca django'da annotate ve aggregate nasıl kullanılır konusuna giriş yapmak içindir, daha fazlasını django belgelerinde aggregate ile ilgili bölümden bulabilirsiniz. Tablo alanlarının ortalaması ### # models.py ### from django.db import models class Urun(models.Model): fiyat = models.PositiveIntegerField() ### # Tüm ürünlere ait ortalama fiyatları almak istediğinizde ### from uygulama_adi.models import Urun from django.db import Avg a = Urun.objects.aggregate(Avg('fiyat')) # a = {"fiyat__avg": 23.56} -> bir dict objesi döndürür. # Dönen sözlükteki anahtar adını da ayarlayabilirsiniz. a = Urun.objects.aggregate(ortalama_fiyat=Avg('fiyat')) # a = {"ortalama_fiyat": 23.56} ## # Birden fazla değer hesaplamak ## from django.db.models import Max, Min a = Urun.objects.aggregate(Ortfiyat=Avg('fiyat'),Minfiyat=Min('fiyat'),maksfiyat=Max('fiyat')) # a = {"Ortfiyat" : 15.23, "Minfiyat": 3, "Maxfiyat" : 28} Django'da annotate kullanımı Bir istem kümesindeki (QuerySet) tüm değerler için aggregate almak için annotate kullanılır. Çoğu zaman annotate m2m (çokdan çoğa) ilişkilerde kullanılır. ### # models.py ### from django.db import models class …