session management

2006-08-10 Thread ihomestore
Hi, I am a newbie on django (started last month). After reading the docs on django web site, session is implemented solely based on cookie. In some cases we still want to track users' session even users turn off cookie. Is there a way to do so in django? Thanks, - ihomestore

simple search pagination

2006-08-10 Thread and_ltsk
Hi all,When I do simple search from form: form action="/objects/search_results/" method="get" input type="text" name="q" / input type="image" name="submit" value="Search" src="" / /form a browser goes to URL:http://127.0.0.1:8000/objects/search_results/?q=sometext===Search What is

Re: simple search pagination

2006-08-10 Thread and_ltsk
jrs wrote: > submit.x and submit.y are the coordinates of where the user clicked the > submit image. Thanks, jrs. Thus, avoiding "http://127.0.0.1:8000/tasks/search_results/?q=1=Search Do you know how to include ih such URL the "offset" and "limit" parameters? It is needed by a paginator

Re: ANN: Screencast showing a step by step installation of a real-life Django application on a WebFaction account

2006-08-10 Thread Remi
> There is now a screencast showing a step by step installation > of a real-life Django application on a WebFaction account. > > The 19 minute screencast shows how to: > > - Install a default Django application using our control panel > - Make it available over HTTPS as well (useful for the

Re: simple search pagination

2006-08-10 Thread jrs
submit.x and submit.y are the coordinates of where the user clicked the submit image. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

simple search pagination

2006-08-10 Thread and_ltsk
Hello all, When I do simple search from form: form action="/objects/search_results/" method="get" input type="text" name="q" / input type="image" name="submit" value="Search" src="" / /form a browser goes to URL: http://127.0.0.1:8000/objects/search_results/?q=sometext===Search What

Re: simple search pagination

2006-08-10 Thread and_ltsk
Excuse me for multiple posts. I've sent these post from Thurs, Aug 10 2006 11:08 am, but Google has published it only at Thurs, Aug 10 2006 3:32 pm. every time giving me fake message about "momentarily" publishing of my posts. --~--~-~--~~~---~--~~ You received

Extend User.AddManipulator?

2006-08-10 Thread spako
i'm busy building a site with public side registrations. instead of extending the User class i created a UserProfile class. that way the django stuff is a bit seperate from mine. i've built a public registration form. what i now want is for the password field to appear as a password field and to

Google-like API keys

2006-08-10 Thread hernan43
Nowadays(is that a word?) a lot of fancy web services use API keys to allow an individual access to a service without requiring a username and password. Google, flickr(I believe), Akismet, so on and so on. If I wanted to make a Django app that utilized a custom authenticator and my own "API key"

Re: Google-like API keys

2006-08-10 Thread Jeremy Dunck
On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > If I wanted to make a Django app that utilized a custom authenticator > and my own "API key" what would be the best way to generate unique API > keys for my app. Would running a md5/sha sum on username + randomstring > + email be safe? Or is that

Re: Google-like API keys

2006-08-10 Thread Julio Nobrega
On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > If I wanted to make a Django app that utilized a custom authenticator > and my own "API key" what would be the best way to generate unique API > keys for my app. Anything random and unique will do it. You just need to differentiate between

Re: Extend User.AddManipulator?

2006-08-10 Thread spako
please ignore this silly silly typo mistake --~--~-~--~~~---~--~~ 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

ANN: Created django-announce mailing list

2006-08-10 Thread Adrian Holovaty
In the wake of the Ruby on Rails mandatory security patch and its awkward handling, we've been discussing how we can avoid such a problem in the Django community. http://weblog.rubyonrails.com/2006/8/9/rails-1-1-5-mandatory-security-patch-and-other-tidbits In case you haven't seen it, our "How

Searching in admin doesn't search -- returns everything

2006-08-10 Thread Corey
I'm a bit baffled, and I hope I explain this well. I have a model with several foreign keys. Currently when I do a search, it returns everything. The query string shows ?e=1. The search_fields is set to a local field and a foreign key. If a remove the foreign key from the search fields, I get

Re: session management

2006-08-10 Thread Adrian Holovaty
On 8/10/06, ihomestore <[EMAIL PROTECTED]> wrote: > I am a newbie on django (started last month). After reading the docs on > django web site, session is implemented solely based on cookie. > > In some cases we still want to track users' session even users turn off > cookie. Is there a way to do

Re: session management

2006-08-10 Thread ihomestore
> What precisely do you mean by 'track users session'? Just keep a log of > where they are going on your site? You might be able to do that with a > bit of URL fiddling since its not really security-related. A simple case would be: once users login, if we do not keep track of user session, how

Re: Google-like API keys

2006-08-10 Thread Jyrki Pulliainen
On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > > > Nowadays(is that a word?) a lot of fancy web services use API keys to > > allow an individual access to a service without requiring a username > > and password. Google, flickr(I

Re: Function kills page?

2006-08-10 Thread [EMAIL PROTECTED]
I agree with your assessment, Paul. I think that looping through hundreds of SNs for each of 50-something years was just too much to do quickly. It appears the filter is a far more efficient way of doing it, so I hope I'm OK. You and Malcolm have made feel a lot better about the import, too.

Admin gives blank page

2006-08-10 Thread Ru
Hi list, I get a damn blank page for admin when I add it to the installed apps in settings.py I'm trying to setup a django environment on my webserver, dedicated CentOS, with apache 2 and mod_python. I've got the success page already, but when I go to the admin i get a blank page for some

Re: How to support of alternate date formats for DateField

2006-08-10 Thread DavidA
Steven Armstrong wrote: > I've had similar problems and solved them like this: > > myproject/validators.py > %<-- > from django.utils.translation import gettext_lazy as _ > from django.core.validators import * > import re > > my_ansi_date_re = re.compile('put regexp

Re: session management

2006-08-10 Thread spacedman
ihomestore wrote: > A simple case would be: once users login, if we do not keep track of > user session, how do we know it is the same user once he / she diverts > to other pages (we do not want to ask user to login for every new page > s/he visits). Okay, so duplicating the functionality of

Re: Admin gives blank page

2006-08-10 Thread Ru
Also seems to be only related to the admin area - I created a test application 'polls' (django tutorial) and that executes fine.. Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Google-like API keys

2006-08-10 Thread hernan43
Thanks for all of the help and responses. You have helped give me ideas on how to implement something like this. --Ray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: How to support of alternate date formats for DateField

2006-08-10 Thread Steven Armstrong
On 08/10/06 20:25, DavidA wrote: > Steven Armstrong wrote: >> I've had similar problems and solved them like this: >> >> myproject/validators.py >> %<-- >> from django.utils.translation import gettext_lazy as _ >> from django.core.validators import * >> import re >> >>

Re: Having trouble with views

2006-08-10 Thread Tomas Jacobsen
Hi. Im pulling my hair out trying to make this url. I have seem some more source codes of other django projects, but I cant find anything like my problem. I've tried (r'^portfolio/(?P[-\w]+)/(?P[-\w]+)$', 'myproject.portfolio.views.category_view'), and (r'^portfolio/(?P[-\w]+)/(?P[-\w]+)$',

Re: How to support of alternate date formats for DateField

2006-08-10 Thread DavidA
Steven Armstrong wrote: > On 08/10/06 20:25, DavidA wrote: > > Steven Armstrong wrote: > >> I've had similar problems and solved them like this: > >> > >> myproject/validators.py > >> %<-- > >> from django.utils.translation import gettext_lazy as _ > >> from

Re: Google-like API keys

2006-08-10 Thread Ian Holsman
personally I would DES encrypt their email address.that way you have a contact if something goes wrong.On 11/08/2006, at 3:01 AM, Jyrki Pulliainen wrote:On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: Nowadays(is that a word?) a lot of fancy web

order_with_respect_to : explanation?

2006-08-10 Thread gabor
hi, i've read the documentation, i checked the group-archives, but still... i just cannot understand what that setting does. could someone explain it to me? thanks, gabor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Google-like API keys

2006-08-10 Thread Felix Ingram
On 8/10/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > > Nowadays(is that a word?) a lot of fancy web services use API keys to > > > allow an individual access to a service without

Re: Google-like API keys

2006-08-10 Thread Felix Ingram
On 8/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > If I wanted to make a Django app that utilized a custom authenticator > > and my own "API key" what would be the best way to generate unique API > > keys for my app. Would running a md5/sha

SetHandler for admin media directory

2006-08-10 Thread djennings3
(I am using django 0.95 revision 3549 with Apache 2.0.54 and mod_python and a virtualHost.) When I first brought up the django admin interface, the login screen and subsequent pages had no stylesheets applied. I did a quick search and realized that I needed to configure Apache for the admin

Re: Many to many relationship with intermediate class and sorting

2006-08-10 Thread Malcolm Tredinnick
On Thu, 2006-08-10 at 22:09 +0930, Nick Lane wrote: > Hi everyone, > > I'm a relatively new user to Python and Django, and I'm impressed so far > - very nice! > > I have a question regarding the app I'm currently developing - a photo > album. Here is a rough copy of my models.py (trimmed for

Re: Having trouble with views

2006-08-10 Thread Malcolm Tredinnick
On Thu, 2006-08-10 at 13:24 -0700, Tomas Jacobsen wrote: > Hi. Im pulling my hair out trying to make this url. I have seem some [...] > > My urls looks like this now: > > > info_dict = { > 'queryset': Project.objects.all(), > } > > urlpatterns = patterns('', > > #Portfolio >

Re: Admin gives blank page

2006-08-10 Thread Malcolm Tredinnick
On Thu, 2006-08-10 at 18:12 +, Ru wrote: > Hi list, > > I get a damn blank page for admin when I add it to the installed apps > in settings.py > > > I'm trying to setup a django environment on my webserver, dedicated > CentOS, with apache 2 and mod_python. I've got the success page >

Re: SetHandler for admin media directory

2006-08-10 Thread Deryck Hodge
On 8/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Alias /media "/home/user/django_src/django/contrib/admin/media" > > Order allow,deny > Allow from all > > > RewriteRule ^/media$ /media/ [R] > > SetHandler None > I don't see why

Re: SetHandler for admin media directory

2006-08-10 Thread Don
Thanks! Your suggestion worked like a charm. Take care, Don --~--~-~--~~~---~--~~ 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