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 fr

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 y

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 > alread

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: 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 bre

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 media

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 su

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 requir

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 Gr

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 s

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 django.cor

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 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: 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, sen

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 po

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 d

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 her

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 reaso

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. Obvi

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 believe)

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 d

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 s

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 a

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 t

Re: Google-like API keys

2006-08-10 Thread Felix Ingram
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 believe), Akismet, so on and so on. > > If I wanted to make a Django app

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 group

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 req

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 s

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"

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

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 t

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&submit.x=&submit

simple search pagination

2006-08-10 Thread and_ltsk
Hello all, When I do simple search from form: a browser goes to URL: http://127.0.0.1:8000/objects/search_results/?q=sometext&submit.x=&submit.y=&submit=Search What is the "x" and "y"? Can I use it for pagination? Please give me a little example of usage. --~--~-~--~~-

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&submit.=Search Do you know how to include ih such URL the "offset" and "limit" parameters? It is needed b

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 django-users@googlegro

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 ad

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&submit.=Search Do you know how to include ih such URL the "offset" and "limit" parameters? It is needed by a paginat

Many to many relationship with intermediate class and sorting

2006-08-10 Thread Nick Lane
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 brevity): class Photo(models.Model): title = models.CharField(m

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&submit.x=&submit.y=&s

Re: session management

2006-08-10 Thread Antonio Cavedoni
On 10 Aug 2006, at 11:15, uselpa wrote: > spacedman wrote: >> /foo/bar/info?session_id=0873556323 >> >> BUT if anyone gets that URL they get that person's session. Which >> is a >> BAD thing. So don't do that. > > Unless you check that the IP from which the request is coming is the > same IP fro

Re: session management

2006-08-10 Thread Felix Ingram
On 8/10/06, uselpa <[EMAIL PROTECTED]> wrote: > > > spacedman wrote: > > /foo/bar/info?session_id=0873556323 > > > > BUT if anyone gets that URL they get that person's session. Which is a > > BAD thing. So don't do that. > > Unless you check that the IP from which the request is coming is the > sa

Re: Function kills page?

2006-08-10 Thread Paul Sargent
Malcolm Tredinnick wrote: > On Wed, 2006-08-09 at 14:58 -0700, [EMAIL PROTECTED] wrote: > > I'm still a little concerned about efficiency, particularly importing > > Serial Number for every year. When I moved it to the top of the model > > it failed "cannot import name Year" maybe because of the

Re: session management

2006-08-10 Thread uselpa
spacedman wrote: > /foo/bar/info?session_id=0873556323 > > BUT if anyone gets that URL they get that person's session. Which is a > BAD thing. So don't do that. Unless you check that the IP from which the request is coming is the same IP from which the initial request came. -pu --~--~

"relative" limit_choices_to

2006-08-10 Thread zeuxis
Hi all, I saw many posts on this list on the dynamic limit_choices_to but I think my question is a little bit different, but very common as well. Here is a very simple example. I'd like to filter the streets in the DrugStore edit page so that only the streets in the selected ci

Re: Linked select pull down menu question

2006-08-10 Thread Jonathan Buchanan
> I am a newbie to Django, I am looking to move an application I have > written in PHP a couple of years ago to Django and need to know if > there is an easy way to generate a linked pulldown menu in a form. > > Previously I have used Javascript so if you select a category in one > pulldown the se

Re: Linked select pull down menu question

2006-08-10 Thread Nikolaus Schlemm
hi Gwilym, > I am a newbie to Django, I am looking to move an application I have > written in PHP a couple of years ago to Django and need to know if > there is an easy way to generate a linked pulldown menu in a form. > > Previously I have used Javascript so if you select a category in one > pul

"relative" limit_choices_to

2006-08-10 Thread zeuxis
Hi all, I saw many posts on this list on the dynamic limit_choices_to but I think my question is a little bit different, but very common as well. Here is a very simple example. I'd like to filter the streets in the DrugStore edit page so that only the streets in the selected c

Re: syncdb without shell access

2006-08-10 Thread Robin Gruyters
On Wed, Aug 09, 2006 at 08:58:54PM -0500, Deryck Hodge wrote: > > On 8/9/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On 10-Aug-06, at 12:43 AM, Robin Gruyters wrote: > > > > > My hosting provider doesn't give shell access, so I can't execute like > > > "syncdb", "startapp", "startproject

Re: session management

2006-08-10 Thread spacedman
Well, you could encode the information that is normally transferred in the cookie by adding a parameter to the URL all the time, so that your URLs are always something like: /foo/bar/info?session_id=0873556323 BUT if anyone gets that URL they get that person's session. Which is a BAD thing. So d

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 --~--~-~-