Re: merge 2 views?

2010-12-31 Thread Sam Lai
The one downside to this solution is that these variables will fetched for every request, even if navigation.html was not included in the output template. An alternative solution would be to create a template tag that fetches these variables, and only load and use this template tag in navigation.h

Re: De-coupling settings.py from project

2010-12-31 Thread Sam Lai
On 31 December 2010 03:50, eblume wrote: > In particular, I'm having trouble specifying the static content URL > and the fixtures directories at a per-application level rather than in > the project settings.py file. Can't you implement a static files finder, in the similar way to template loaders

Re: DJANGO BOOTCAMP

2010-12-31 Thread Lachlan Musicman
On Sat, Jan 1, 2011 at 00:17, wrote: > Hi all, > > I recently started working on a project which is based on django. I've had > reasons to work through the documentation several times to get things done. > However, each time I check the documentation, I find out there is more to > learn hence,

Re: Local flavor and admin (zip-code)

2010-12-31 Thread Vinicius Massuchetto
On Dec 2 2008, 1:16 pm, Fabio Natali wrote: > Dear Sergio, thank you very much for your reply. > > sergioh wrote: > > [...] > > > from django.contrib.localflavor.it.forms import ITZipCodeField > > from django import forms > > from django.utils.translation import ugettext_lazy as _ > > > class Ditt

Re: Linux password authentication for django

2010-12-31 Thread Bill
Hi Marc, Thank you so much! You really helped me! Bill On Dec 30, 10:24 am, Marc Aymerich wrote: > On Thu, Dec 30, 2010 at 6:35 AM, Bill wrote: > > Hi there, > > > I want to know is there any authentication module base on Linux passwd/ > > shadow file for django? > > http://atlee.ca/software/p

cannot login to admin site with superuser

2010-12-31 Thread xpanta
Hi, It seems that for some reason I can't login to admin site or my webpage using the admin user. I even created a new superuser with manage.py createsuperuser using plain numbers as my password ('123'). So it is not a password issue. However when I try to django-admin validate I get an import er

ANN: The django CMS 2.1 Release Candidate 2 has been released!

2010-12-31 Thread Jonas Obrist
The second Release Candidate for the Django-CMS 2.1 was just released and is ready for testing. Please keep in mind that this is a release candidate, and not a final release yet! Download: http://pypi.python.org/pypi/django-cms/2.1.0.rc2 Documentation: http://django-cms.rtfd.org Source: https:/

RE: DJANGO BOOTCAMP

2010-12-31 Thread sidhu
That would be wonderful!-- Yudhvir Singh SidhuCEO, MediGrail LLCmedigrail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to dja

DJANGO BOOTCAMP

2010-12-31 Thread delegbede
Hi all, I recently started working on a project which is based on django. I've had reasons to work through the documentation several times to get things done. However, each time I check the documentation, I find out there is more to learn hence, my thought. Is there any or can there be a djan

Working with django signals

2010-12-31 Thread mo.mughrabi
Hi, Am new to this group, I hope to learn more from reading exchange emails. As for now, wish everyone a happy new year :) I posted a question earlier on stackoveeflow and am wondering if anyone here might be able to point me to the right direction, http://stackoverflow.com/questions/4569844/dj

Re: Extracting days,months,years from datefield.

2010-12-31 Thread James Bennett
On Fri, Dec 31, 2010 at 5:53 AM, Malte Beckmann wrote: > I got a models.DateField and would like to extract months and years from > that field so I can do calculations like a 'day in month' in a 'for month in > months' loop in a 'for year in years' loop. How can I extract that info from > a datefi

Extracting days,months,years from datefield.

2010-12-31 Thread Malte Beckmann
I got a models.DateField and would like to extract months and years from that field so I can do calculations like a 'day in month' in a 'for month in months' loop in a 'for year in years' loop. How can I extract that info from a datefield? I have tried to read code written by others but their solut