Re: (Re)Learning Django

2011-12-24 Thread Alex Kamedov
Hi, Django 1.2 was a greate update of this exelent framework. The new features introdused in this version was coverd on DjangoAdvent.com. Unfortunely looks like this site is not working any more. You can find the DjangoAdvent articles on github https://github.com/djangoadvent/djangoadvent-articles

Re: Paginate by Year

2011-12-24 Thread kenneth gonsalves
On Sat, 2011-12-24 at 04:43 -0800, dotcomboy wrote: > Is there an easy way to paginate by year? > > http://stackoverflow.com/questions/8624507/django-paginate-by-year > > I hope I'm not in trouple for posting a link to my question, but all > the details are there. nothing really wrong with post

Re: selecting single column from models

2011-12-24 Thread lankesh87
well the problem is solved I just had to put the name of the field in xyz.html and thus got the output. --- {% for x in bb %} {{ x.customer_handle }} {% endfor %} --

Re: selecting single column from models

2011-12-24 Thread lankesh87
Well i have solved the problem now I need to seperate the string: this is the output:

selecting single column from models

2011-12-24 Thread lankesh87
I am using sqlite3 as db and in django i want to use values from table. For e.g Customer table has value customer_id, customer_handle, token_auth_key,token_sec_key. my query in views.py is: x = Customer.objects.all(

Little something for those still here on Christmas Eve :)

2011-12-24 Thread Cal Leeming [Simplicity Media Ltd]
Our version of Christmas Eve *cough* "fail over testing". Although only a lose connection to Django (prod boxes ran django webapps) - I'm sure most of you will appreciate this. -- ‎(04:42:52) foxx/sleepycal: right, f**k this (04:42:58) foxx/sleepycal: its 4.42am (04:43:04) foxx/slee

how to change form field in method is_valid()

2011-12-24 Thread 软刀
I have two model class Friend(models.Model): me = models.ForeignKey(User) friend = models.ForeignKey(User) remark = models.CharField(max_length=15) def __unicode__(self): return self.remark class Message(models.Model): from_user = models.ForeignKey(Us

Why when upload PDFs, Django says the content type is "application/text"?

2011-12-24 Thread Chris Seberino
I printed the content_type of an uploaded file in Django and noticed that for PDFs I was getting "application/text"? I was getting "application/pdf" a few days ago with same client, server, browser, etc. Anyone know what would cause content type to show wrong kind for PDFs? cs -- You received

Re: (Re)Learning Django

2011-12-24 Thread Timothy Makobu
Hi, The book is 2 years old, but it's still the best resource I have found that helps me *understand* Django. It covers 1.x, and the current stable release is 1.3 Is there a newer resource that's just as comprehensive? On Sat, Dec 24, 2011 at 5:44 PM, Alec Taylor wrote: > Maybe go through the

Re: Writing apps for django

2011-12-24 Thread Timothy Makobu
Hi, http://www.djangobook.com/en/2.0/ On Sat, Dec 24, 2011 at 8:18 PM, Denis Darii wrote: > Take a look at Django Conventions: > http://ericholscher.com/projects/django-conventions/ > > Also this article could be useful for you: > http://blog.zacharyvoase.com/2010/02/03/django-project-conventi

Re: Writing apps for django

2011-12-24 Thread Denis Darii
Take a look at Django Conventions: http://ericholscher.com/projects/django-conventions/ Also this article could be useful for you: http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/ Cheers, Denis. On Sat, Dec 24, 2011 at 10:38 AM, Lukasz wrote: > Hi all ! > > I'm looking for d

Keep getting TemplateDoesNotExist when unit testing

2011-12-24 Thread Jonas Geiregat
Hello, I'm fairly new to Unit Testing. As I'm trying to setup a simple unit test in one of my Projects, it keeps returning a TemplateDoesNotExist Exception. It looks like for some reason the unit test framework can't locate my template directory I've correctly defined in settings.py Here's the

Keep getting TemplateDoesNotExist when unit testing

2011-12-24 Thread Jonas Geiregat
Hello, I'm fairly new to Unit Testing. As I'm trying to setup a simple unit test in one of my Projects, it keeps returning a TemplateDoesNotExist Exception. It looks like for some reason the unit test framework can't locate my template directory I've correctly defined in settings.py Here's the

Re: (Re)Learning Django

2011-12-24 Thread Alec Taylor
Maybe go through the tutorials here: https://docs.djangoproject.com/en/dev/intro/tutorial01/ Should be a quick refresher, and you'll remember all :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Writing apps for django

2011-12-24 Thread Lukasz
Hi all ! I'm looking for documentation about writing apps for django. When should I write an app for django instead coding my project directly, how to write an app for django, etc. I'd like to have some philosophical guidelines and some technical documentation. Thanks ! -- You received this m

(Re)Learning Django

2011-12-24 Thread yati sagade
Hi all, I am familiar with Django (not the advanced stuff, though) and lately, I had to be more into J2EE and completely away from Django. Now I want to get back to Django. I was looking for a nice, fast paced resource that could help me. I had first thought of The Django Book as a fallback, but so

Paginate by Year

2011-12-24 Thread dotcomboy
Is there an easy way to paginate by year? http://stackoverflow.com/questions/8624507/django-paginate-by-year I hope I'm not in trouple for posting a link to my question, but all the details are there. Thanks and happy holidays! -- Rodney Lewis Please Visit My Homepage: http://www.squidoo.com/do