Re: login and redirect_to

2007-01-21 Thread Benedict Verheyen
Rob Hudson schreef: > I think I understand what you're asking. If you sent next as a hidden > variable in your template, you get read it by calling: > request.REQUEST.get as seen here: > http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/views.py > > (line 14) OK, it seems

Re: syncdb: No module named Utils

2007-01-21 Thread Aidas Bendoraitis
Perhaps that framework uses some third-party libraries, that have to be installed onto your machine. You can find this out, full-text-searching for "Utils" in that project. Regards, Aidas Bendoraitis aka Archatas On 1/22/07, johnny <[EMAIL PROTECTED]> wrote: > > Does it have to do with : pyth

Re: records for a particular user

2007-01-21 Thread John M
James, Thanks for the quick response. Not 2hrs after I posted it, and playing around with examples,did I figure out the same thing. Thanks again John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Django and Mako ?

2007-01-21 Thread yi huang
On 1/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi > I'm wondering if someone tried to integrate Mako templates with Django > ? > > http://www.makotemplates.org/ > > > > > http://huangyilib.googlecode.com/svn/trunk/mashi_django/mako_django.py Check this out and mako svn now, mako ca

Re: records for a particular user

2007-01-21 Thread James Bennett
On 1/21/07, John M <[EMAIL PROTECTED]> wrote: > As you can see, each user can have many portfolios, and each portfolio > has N number of holdings. > > What I want is a list of all holdings for a particular user, is this > possible? Something like this should work in a view: user_holdings = Holdi

Re: Does django create apps folder for you?

2007-01-21 Thread James Bennett
On 1/21/07, johnny <[EMAIL PROTECTED]> wrote: > Does django create apps folder for you, so you can create weblogs, > forums inside it? > I tried using python manage.py startapp polls, but it doesn't create > apps folder. It creates polls in the current folder "mysite/polls", > not "mysite/apps/po

Re: syncdb: No module named Utils

2007-01-21 Thread johnny
Does it have to do with : python setup.py install I did earlier for Django 0.95 (using python egg). I deleted the files, and checked out the django dev verion. >From IBM site: http://www-128.ibm.com/developerworks/library/l-cppeak3.html setuptools framework, a side project of the Python Enterpr

Re: syncdb: No module named Utils

2007-01-21 Thread johnny
I am using ActiveState Python 2.4 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email t

Re: Django and Mako ?

2007-01-21 Thread limodou
On 1/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > I'm wondering if someone tried to integrate Mako templates with Django > ? > > http://www.makotemplates.org/ > > yi huang has something about it: http://huangyilib.googlecode.com/svn/trunk/mashi_django/mako_django.py You can see it

Re: catching database error

2007-01-21 Thread Russell Keith-Magee
On 1/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Offcorse i can use try and except but this means i can't differentiate > between certain errors for instance when the Db is offline it will > raise another Error. The action i wan't to respond is different from > wrong username password.

Re: dump and restore tool for django

2007-01-21 Thread Russell Keith-Magee
On 1/20/07, limodou <[EMAIL PROTECTED]> wrote: > > > ./manage.py dumpdb > /foo/bar/out.data > > I don't like this. Because I want to save the data into different > files according to each table, but not a single file. #2333 doesn't do per-table, but it does do per-app: ./manage.py dumpdb firstap

Re: How to set "REMEMBER ME"

2007-01-21 Thread Joseph Heck
Set the session length up - I use 2 weeks: SESSION_COOKIE_AGE = 1209600 in settings.py On 1/21/07, Guillermo Fernandez Castellanos < [EMAIL PROTECTED]> wrote: > > > Hi, > > I have some web sites where some identification is needed. In those, > when I log in and do not explicitelly log out, I k

Re: How to set "REMEMBER ME"

2007-01-21 Thread Guillermo Fernandez Castellanos
Hi, I have some web sites where some identification is needed. In those, when I log in and do not explicitelly log out, I keep logged for days and days, and when I go back to the page I'm still logged in. i guess (and it's only a guess) that, because the authentification work with sessions, you'

Re: Passing values from Django to client-side JavaScript

2007-01-21 Thread rzimerman
Jeremy Dunck wrote: > On 1/19/07, rzimerman <[EMAIL PROTECTED]> wrote: > > > > I'd like to pass variable values from Django to client-side JavaScript > > at page load time. Currently I've use Django's templating system to > > dynamically rewrite the JavaScript code, such that the appropriate > > v

Does django create apps folder for you?

2007-01-21 Thread johnny
Does django create apps folder for you, so you can create weblogs, forums inside it? I tried using python manage.py startapp polls, but it doesn't create apps folder. It creates polls in the current folder "mysite/polls", not "mysite/apps/polls". How do I get an apps folder to contain forums, ne

records for a particular user

2007-01-21 Thread John M
OK, I love the django way of doing DB lookups, but I can't seem to get a list of records for the following: class Portfolio(models.Model): user= models.ForeignKey(User) description = models.CharField(maxlength=50) notes = models.CharField(maxlength=200, blank

syncdb: No module named Utils

2007-01-21 Thread johnny
what does it mean "No module named Utils" when I run python manage.py syncdb? I have looked into INSTALLED_APPS, there is nothing called "Utils" Someone mentioned CONTEXT_PROCESSORS, I don't have it in settings.py Anyone have any idea? --~--~-~--~~~---~--~~ You

LOCALURLMiddleware - why is so slow?

2007-01-21 Thread GvaderTh
Hi all. In work I need midleware that can do 2 things: 1 First check is there a language in requested url e.g. www.example.com/fr/ and if is there check is the language is in supported. If supported sets that language to the traslantion, if not make redirect to the default site - www.example.com/u

How to set "REMEMBER ME"

2007-01-21 Thread johnny
How do I set "remember me" in Django, so that user doesn't have to log in every time. Is there a good tutorial or sample code some where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: SSL and Django ?

2007-01-21 Thread Adrian Holovaty
On 1/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am not sure if it is because of Django or Apache configuration. > I have installed SSL certificate (Turbo SSL from Go daddy), on my web > server. The lock on the status bar of the browser is appearing on all > the pages, except pages whi

Watch Online Movies for Free

2007-01-21 Thread Nancy Brad
Now You Can See Live TV Channels and Live Exciting Movies and Even Download DVD Movies if You Want for Free at : http://clipurl.com/?GYU620 With My Best Wishes To Enjoy -- See Our Magic , You Will Be Surprised http://www.mediamall.tk --~--~-~--~~~---~--

Re: Tag "joins"?

2007-01-21 Thread mamcxyz
I think "+" is intuitive. Slashes represent a tree structure not a sum of terms. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.c

Re: subclassing in newforms

2007-01-21 Thread Jakub Labath
Hi, On two separate occasions I needed to add some extra fields to an existing form, both times the first thing I tried was subclassing. It just seemed natural. I don't really feel strongly about this one one way or another just saying that subclassing was the first thing that came to my mind. A

Newforms problems

2007-01-21 Thread [EMAIL PROTECTED]
Hi there, can someone help me understand why the following code (posted also here: http://dpaste.com/4867/) skips validation in clean_city entirely? Am i not trapping the error correctly by evaluating against None? I need to say that if a city is specified you can't specify a region or a provinc

Re: Django Book Add Google or Yahoo Site Search

2007-01-21 Thread Jay Parlar
On 1/20/07, johnny <[EMAIL PROTECTED]> wrote: > > Is it possible to add Google or Yahoo Site Search to Djangobook.com? > > Thank You. > You probably know this, but if you prepend your search with "site:djangobook.com", then it'll just search the djangobook.com domain. So do "site:djangobook.com

SSL and Django ?

2007-01-21 Thread [EMAIL PROTECTED]
I am not sure if it is because of Django or Apache configuration. I have installed SSL certificate (Turbo SSL from Go daddy), on my web server. The lock on the status bar of the browser is appearing on all the pages, except pages which are using render_to_response. Is it because of render_to_resp

Re: Django Book Add Google or Yahoo Site Search

2007-01-21 Thread Igor Guerrero
It's very easy, Django guys don't need to add it. Just search like this in google: keyword site:http://www.djangobook.com/ On 1/20/07, johnny <[EMAIL PROTECTED]> wrote: > > > Is it possible to add Google or Yahoo Site Search to Djangobook.com? > > Thank You. > > > > > -- :::lxuser 391715::: h

Django Book Add Google or Yahoo Site Search

2007-01-21 Thread johnny
Is it possible to add Google or Yahoo Site Search to Djangobook.com? Thank You. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.

Sorting and Slicing?

2007-01-21 Thread ringemup
Hi guys, I'm having trouble sorting and then slicing a queryset in one of my templates -- I'm using the following, and the slicing isn't applied at all: {% for game in games|dictsortreversed:sort_on|slice:"pag_start:pag_end" %} Am I better off doing the sorting in my view and using generic vie

Django and Mako ?

2007-01-21 Thread [EMAIL PROTECTED]
Hi I'm wondering if someone tried to integrate Mako templates with Django ? http://www.makotemplates.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

translations...

2007-01-21 Thread ashley
after searching and reading all the posts related to internalization and multilanguange, my first question is if there is any active development to integrate or make easy translations in the django core, and if not, if there are any people who would be interested in a joint effort. in my experien

Tag "joins"?

2007-01-21 Thread Austin Govella
Hey guys, Looking for some guidance on the best way to approach a problem. I have tags, and pages which display all the posts for a given tag. All posts tagged with "foo" are listed at /tag/foo. I want to give users a way to view all the posts for sets of tags, so all posts tagged with "foo" an

Re: How to order alphabetically

2007-01-21 Thread conrad22
All working as I wanted! Many thanks for everyone's help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

ANN: Django 0.95.1 released

2007-01-21 Thread James Bennett
We've just rolled out Django 0.95.1, a new minor release of Django which includes fixes for several bugs discovered in the original 0.95 release; 0.95.1 includes: * A patch for a small security vulnerability in the script Django's internationalization system uses to compile translation files. *