Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
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 ... -
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 ... -
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 … -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por 4986243
4986243 beers on the wall. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por coed summer camp
Thank you for this excellent article. I especially enjoyed reviewing it and ought to talk to everyone. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Valder
Sorry, i don't wanna make malling. You can user rss feed, twitter or facebook for this :D -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Valder
Try this tutorial: http://www.quickonlinetips.com/archives/2006/03/import-blogger-posts-comments-to-wordpress/ -
3rd Year Project: Back to Backtrac
After contacting the university regarding my 3rd year project/dissertation, my ideal choice has been confirmed. I'll be making a distributed backup system, based around a Django web interface and AMQP. Backtrac is a pretty old project, and one whose name I am likely to change once I'm working on it. It was started in my first semester of university last year, when I didn't have enough work to keep me busy. I didn't know enough about Django back then, though, so it was left unfinished and only half-working. Now I think I know enough to pull this off, and it's a chance to do something I really enjoy - while getting marks for it in the process! If everything goes to plan I'll be supervised by Dr. Julie Greensmith, which I'm really looking forward to. I'll be using an app called Celery to handle the background tasks, which will be simple "pings" to the client machines, telling them to start a backup. Celery uses AMQP, provided by a broker such as RabbitMQ (which is written in Erlang). It's usually used for processing intensive computational tasks, but can also be put to use for jobs that need executing on a periodic … -
Using Django Authentication with Twisted Perspective Broker
For my third year project, I have hooked Twisted's Perspective Broker authentication into Django, so that a networked application can authenticate itself against Django's central user database (django.contrib.auth). The process is pretty quick and easy, thanks to Twisted's pluggable nature, and Django's pure simplicity. The Checker Firstly, we create a class which will actually do the "checking", to allow access (or not) given a username/password combination. That looks something like this: auth.py 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 from zope.interface import implements from twisted.python import failure, log from twisted.cred import portal, checkers, error, credentials from twisted.internet import defer from django.contrib.auth.models import User, check_password class DjangoAuthChecker: implements(checkers.ICredentialsChecker) credentialInterfaces = (credentials.IUsernamePassword, credentials.IUsernameHashedPassword) def _passwordMatch(self, matched, user): if matched: return user else: return failure.Failure(error.UnauthorizedLogin()) def requestAvatarId(self, credentials): try: user = User.objects.get(username=credentials.username) return defer.maybeDeferred( check_password, credentials.password, user.password).addCallback(self._passwordMatch, user) except User.DoesNotExist: return defer.fail(error.UnauthorizedLogin()) This code is relatively self-explanatory, once you understand Twisted's way of doing things. An authenticated "user" in Twisted (though this might not actually be a person) is called an Avatar. The requestAvatarId method therefore takes a set of credentials, and returns … -
The End of an Era
Well, here we are. Three years at The University of Nottingham, and what do I have to show for it? Well, this is what: That's right! I have a recommendation for a first in Computer Science. It turns out both my supervisor and second marker were fond of my dissertation - Backtrac Backup System - and would like to see it used in a commercial setting. I also had my work sponsored by Servat Ltd., which went down very well with the powers that be. I've enjoyed my time at university, but I'm ready to move on now. Or at least, I'd better be, after turning down a couple of very good offers for PhD studentships. So what's next? Why, I'm glad you asked! I'm currently working on a (secret) project with Marcus Whybrow, which will hopefully shape up to be something quite special. It is, of course, a Django project, and it's teaching us both about the finer details of developing and deploying a production system. There's a few posts in the pipeline about the things we've discovered this far, and we've hardly got going yet! This time around, we've decided to go with a brand new web server … -
MyUni and Django 1.2
MyUni is hailed as my "latest venture" on the front page of my website. In fact, it was conceived early last year, when I was in my first year at Nottingham University, by Rob Miles and Ben Jenkinson. We were only just starting to get to grips with this new fad, called Django. The project has gone through several iterations since then, never really reaching any form of completeness. This time round, we are using proper version control (thanks to Mercurial and BitBucket), and trying to adhere to Django best practices as much as possible. Straight from the repository website: MyUni is a portal-style web application for Universities, offering studentsa central location to access all the relevant information about their course,modules, assignments, and staff members. The project came about because of a passionate hatred for the WebCT system that our university is using, and a general feeling that things could be (and should be) better. Django 1.2 will bring some really exciting new features, which I am sure would make developing and using MyUni a better experience. One of the things I'm most looking forward to using is the messages framework. I plan to use it for a bunch of …