Re: custom attributes of model field

2011-12-10 Thread trubliphone
Actually, I wound up doing this a bit differently due to some other constraints in my application. For what it's worth, I thought I'd reply to myself. Using your example as a guide, I came up with the following: I defined some classes to store a set of field types: from collections import dequ

Re: List of Django release dates?

2011-12-10 Thread James Bennett
On Sun, Dec 11, 2011 at 12:26 AM, Peter Herndon wrote: > The info is available in the Django project blog > (https://www.djangoproject.com/weblog/), though you will need to do > some spelunking to find the release dates. You can also find the > release dates in the mailing list archives, for examp

Re: List of Django release dates?

2011-12-10 Thread Peter Herndon
The info is available in the Django project blog (https://www.djangoproject.com/weblog/), though you will need to do some spelunking to find the release dates. You can also find the release dates in the mailing list archives, for example, search for "released" in the Django-developers Google group.

List of Django release dates?

2011-12-10 Thread Tim Chase
After a bit of googling around, I was unable to come up with a catalog of release dates for various versions. I was mostly just interested in things like for release in "0.95 0.96 1.0 1.1 1.2 1.2.6 1.3".split(): print release, get_release_year_and_month(release) sort of information, tho

Re: converting from function based views to class based views

2011-12-10 Thread Reinout van Rees
On 10-12-11 21:40, Jake Richter wrote: I'm working through this tutorial http://www.webmonkey.com/2010/02/Use_URL_Patterns_and_Views_in_Django/ It's written for Django 1.0 and I'm using 1.3 which has changed to class based views. I'm having a hard time converting from function based to class bas

Re: DateTimeField(auto_now_add=True) and admin page

2011-12-10 Thread DC
Hello Amit, Yes, this is solution - I wanted those fields to be shown in admin, I understand they're read-only. So, I put this in EcoPointAdmin and it works: readonly_fields = ['entry_date', 'last_change_date'] Thank you. On Dec 10, 2:23 pm, Amit wrote: > Hi, > > You can display entry_date on

converting from function based views to class based views

2011-12-10 Thread Jake Richter
Hi group, I'm working through this tutorial http://www.webmonkey.com/2010/02/Use_URL_Patterns_and_Views_in_Django/ It's written for Django 1.0 and I'm using 1.3 which has changed to class based views. I'm having a hard time converting from function based to class based. Can anyone offer help on h

Re: 404 only in Chrome

2011-12-10 Thread neridaj
I think it might be related to a jquery plugin i'm using. It appears that the plugin is not finding an attribute on an image, and is therefore appending the undefined status to the url in developer tools. If I comment out the plugin the error is gone. On Dec 10, 7:36 am, Tomasz Zieliński wrote: >

Redirect from get_queryset() in a class view?

2011-12-10 Thread Eli Criffield
So in a class based view inheriting generic.ListView I want to redirect on a condition, The logical place to do it is get_queryset, but you can't go returning a HttpResponseRedirect from a method that should return a query set. The django.shortcuts.redirect() just kinda does that for you so tha

Re: DateTimeField(auto_now_add=True) and admin page

2011-12-10 Thread Amit
Hi, You can display entry_date on admin by using readonly attribute of admin. Set readonly = (entry_date,) this will do your task, but You cannot modify this on admin. Thanks Amit On Dec 9, 7:46 pm, DC wrote: > Hi, > > I have the following lines in my model: >     entry_date = models.DateTim

Re: 404 only in Chrome

2011-12-10 Thread Tomasz Zieliński
Can it be a browser caching issue: http://www.google.pl/support/forum/p/Chrome/thread?tid=3bb0a94bfb063745&hl=en ? Best, Tomasz Zielinski -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups

Re: 404 only in Chrome

2011-12-10 Thread Bruno Tikami
Hi, don't know if that helps but when I was working with app engine there were errors that would only occur while using the "Incognito" windows. Cheers, Tkm On Fri, Dec 9, 2011 at 11:52 PM, neridaj wrote: > Thanks for the reply but that didn't help. > > On Dec 9, 5:41 pm, Furbee wrote: > > I

Re: What's the django convention for templates?

2011-12-10 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > [...] If someone wants to create a local variation of a template, > he simply creates > > my_app_local/templates/my_app/my_view.html > > and puts my_app_local instead of my_app into INSTALLED_APPS. Sorry, this was rubbish. It must read: "... and puts my_app

Re: What's the django convention for templates?

2011-12-10 Thread Torsten Bronger
Hallöchen! Mauro writes: > [...] > > Following the djangobook I've build a projects who has the following > strurcture: > > projects | > --- > | __init__.py > | manage.py > | settings.py > | urls.py

Re: static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Jisson Varghese
@ Ramiro Morales Thank you for your response, *edit the configuration file as you suggested ,But still am facing the problem.* I have one doubt about the configuration I used collectstatic command for static files, STATIC_ROOT = '/home/jisson/Desktop/testcloud.aws/DjangoApis/teststaticfiles/' STAT

Re: What's the django convention for templates?

2011-12-10 Thread Mauro
Thank you :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/LCxQRS7kTnkJ. To post to this group, send email to django-users@googlegroups.com. To unsubscrib

Re: static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Ramiro Morales
On Sat, Dec 10, 2011 at 7:01 AM, Jiss wrote: > Settings.py > STATIC_ROOT = '/home/jisson/Desktop/testcloud.aws/DjangoApis/ > teststaticfiles/' This is wrong (although it shouldn' t affect your apache+mod_wsgi deployment), per the tree structure you posted earlier, you don't have a teststaticfile

static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Jiss
Hi all, I am new to django and web development. I am facing a problem with static files(Django1.3) when tried to deploy it in my local apache server(apache2+mod_wsgi),the problem only for the static contents other parts ok[its worked in the devlopment server]. My project now in a folder 'testc