Re: Authentication with Email

2013-03-19 Thread Lachlan Musicman
On 20 March 2013 11:09, fire_water wrote: > Hi, > > I am fairly new to Django and have started building a website that will > require users to create an account with a username, email address, and > password. Users will log in with their email address and password, not > username. > > There has be

Re: Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Kamalakannan Srinivasan
Thanks. On Tuesday, March 19, 2013 9:05:12 PM UTC+5:30, Kamalakannan Srinivasan wrote: > Hi, > > I have just started learning Django 1.5 and am reading The Django Book > Chapter 3: Views and URL Confs. > > I set up the Views.py with the following code: > > *from django.http import HttpRes

Re: SESSION_EXPIRE_AT_BROWSER_CLOSE = True, session expiry date wrong when browser closed?

2013-03-19 Thread teddy wang
在 2010年12月10日星期五UTC+8下午9时57分20秒,Tom Evans写道: > > On Fri, Dec 10, 2010 at 1:27 PM, Stodge > > wrote: > > I have SESSION_EXPIRE_AT_BROWSER_CLOSE set to True in my settings. > > When the user visits my custom login page a new session is created for > > them in the database. The expiry time is set t

Re: save as

2013-03-19 Thread Larry Martell
On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase wrote: > On 2013-03-19 18:42, Larry Martell wrote: >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which >> says to use the Content-disposition header to trigger the save as. >> I've done this, but I don't get a save as dialog box. The file

Re: Goodbye, Malcolm

2013-03-19 Thread Emiliano Dalla Verde Marcozzi
My condolences to his family, Rest in peace. -- "Code without tests is broken by design." - Jacob Kaplan-Moss Show me the mone ... code!: https://bitbucket.org/edvm -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: save as

2013-03-19 Thread Tim Chase
On 2013-03-19 18:42, Larry Martell wrote: > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which > says to use the Content-disposition header to trigger the save as. > I've done this, but I don't get a save as dialog box. The file is > just downloaded to a download dir with the name I

save as

2013-03-19 Thread Larry Martell
2 questions about saving a file on the user's computer. Is there a way to trigger a 'save as' dialog box? I've read https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which says to use the Content-disposition header to trigger the save as. I've done this, but I don't get a save as dialog

Re: Goodbye, Malcolm

2013-03-19 Thread Rafael E. Ferrero
2013/3/19 Satinderpal Singh > On Tue, Mar 19, 2013 at 10:31 PM, Jacob Kaplan-Moss > wrote: > > Hello fellow Djangonauts, > > > > We have difficult news: Malcolm Tredinnick has passed away. > > > > Malcolm was a long-time contributor to Django, a model community member, > > a brilliant mind, and

Re: Authentication with Email

2013-03-19 Thread Shawn Milochik
Your timing is just about perfect. Django 1.5 was just released, with a customizable user model. So use that. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dja

Authentication with Email

2013-03-19 Thread fire_water
Hi, I am fairly new to Django and have started building a website that will require users to create an account with a username, email address, and password. Users will log in with their email address and password, not username. There has been a lot of discussion about this topic in the past, b

Re: Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 11:35 AM, Kamalakannan Srinivasan < kamalakannan.sriniva...@gmail.com> wrote: > Hi, > > I have just started learning Django 1.5 and am reading The Django Book > Chapter 3: Views and URL Confs. > > I set up the Views.py with the following code: > > *from django.http import H

Error en Dajaxice

2013-03-19 Thread Christian Puchaicela
Failed to load resource: the server responded with a status of 403 (FORBIDDEN) http://192.168.1.1:8000/dajaxice/administrador.loadImages/ Dajaxice: Something went wrong. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Can't create an object with a foreign key

2013-03-19 Thread Cody Scott
I get the error when I try to make an object. Cannot assign "u'Category object'": "Course.category" must be a "Category" > instance. here is my admin form admin.py admin.site.register(Category, list_display = ('name',)) CATEGORIES = [(category, category.name) for category in Category.objects

Can't make an object with a foreign key

2013-03-19 Thread Cody Scott
Can't make an object with a foreign key. When I submit it says Cannot assign "u'Category object'": "Course.category" must be a "Category" > instance. > Here is my admin form admin.py > admin.site.register(Category, list_display = ('name',)) > CATEGORIES = [(category, category.name) for ca

Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Kamalakannan Srinivasan
Hi, I have just started learning Django 1.5 and am reading The Django Book Chapter 3: Views and URL Confs. I set up the Views.py with the following code: *from django.http import HttpResponse def hello(request): return HttpResponse("Hello world")* Then I created the urls file with the

Django 1.5 - admin update user, got message "User with this Username already exists" (Django 1.4 excepted update of the user)

2013-03-19 Thread K van Man
*Django 1.5 - admin update user, got message "User with this Username already exists" (Django 1.4 excepted update of the user)* Created a simple polls app, and using the django.contrib.auth in INSTALLED_APPS When an attempt is made to update a user (in the admin frontend) this message is p

Re: How can I get around required fields in admin?

2013-03-19 Thread Mike Dewhirst
On 20/03/2013 12:23am, Javier Guerra Giraldez wrote: On Tue, Mar 19, 2013 at 8:13 AM, frocco wrote: These required fields will not have data until a user checks out. then they're not required from a database point of view. regardless of that, they can be required on a form. or you can pr

Re: Goodbye, Malcolm

2013-03-19 Thread Satinderpal Singh
On Tue, Mar 19, 2013 at 10:31 PM, Jacob Kaplan-Moss wrote: > Hello fellow Djangonauts, > > We have difficult news: Malcolm Tredinnick has passed away. > > Malcolm was a long-time contributor to Django, a model community member, > a brilliant mind, and a friend. His contributions to Django — and to

Goodbye, Malcolm

2013-03-19 Thread Jacob Kaplan-Moss
Hello fellow Djangonauts, We have difficult news: Malcolm Tredinnick has passed away. Malcolm was a long-time contributor to Django, a model community member, a brilliant mind, and a friend. His contributions to Django — and to many other open source projects — are nearly impossible to enumerate.

Re: How can I get around required fields in admin?

2013-03-19 Thread Javier Guerra Giraldez
On Tue, Mar 19, 2013 at 8:28 AM, frocco wrote: > I am using forms.ModelForm > > So I would have to redo this as just a form. or you could override some (most?) fields in the modelform. -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: How can I get around required fields in admin?

2013-03-19 Thread frocco
ok, I am using forms.ModelForm So I would have to redo this as just a form. On Tuesday, March 19, 2013 9:23:31 AM UTC-4, Javier Guerra wrote: > > On Tue, Mar 19, 2013 at 8:13 AM, frocco > > wrote: > > These required fields will not have data until a user checks out. > > then they're not requi

Re: How can I get around required fields in admin?

2013-03-19 Thread Javier Guerra Giraldez
On Tue, Mar 19, 2013 at 8:13 AM, frocco wrote: > These required fields will not have data until a user checks out. then they're not required from a database point of view. regardless of that, they can be required on a form. -- Javier -- You received this message because you are subscribed t

How can I get around required fields in admin?

2013-03-19 Thread frocco
Hello, I have a user profile attached to user that has several fields for billing info. When a user check's out, these fields are required. However there is one field that I want the admin to change, but it will not save unless the other required fields are filled. These required fields will

filter_horizontal ordering

2013-03-19 Thread Nicklas af Ekenstam
Hello, I use a couple of filter_horizontals in my admin but cannot figure out how to get the data in them sorted alphabetically. Here is my code: class PlaceAdmin(admin.ModelAdmin): list_display = ('place_name', 'area', 'subway',) filter_horizontal = ('labels', 'cuisine', 'category',)

Re: Django 1.5 where are the static files of admin site

2013-03-19 Thread Felipe Coelho
2013/3/19 RedJuan > I'm setting up nginx to serve static files. > Route (django / contrib / admin / media / admin) is not on the > installation path (/ usr/local/lib/python2.7/dist-packages/django) > Where is it located now? > Why don't you run "python manage.py collectstatic" and set the nginx

Django 1.5 where are the static files of admin site

2013-03-19 Thread RedJuan
I'm setting up nginx to serve static files. Route (django / contrib / admin / media / admin) is not on the installation path (/ usr/local/lib/python2.7/dist-packages/django) Where is it located now? -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: How to get ten random records

2013-03-19 Thread frocco
I am doing this. featured = Product.objects.filter(is_featured=True, is_active=True).order_by('?')[:4] On Tuesday, March 19, 2013 12:03:28 AM UTC-4, Mike Dewhirst wrote: > > No really, I want a maximum of ten random records from the database > (Django 1.4, Postgres 9.1). > > > Looking at t

Re: Performance when retrieving data from related models

2013-03-19 Thread Taras D
Thanks again! On 19 March 2013 13:09, Peter of the Norse wrote: > [snip] > > We might put the onus on the client to call: > qs = getTendersForContractor(contractor) > for tender in list(qs.prefetch_related('project', 'project__contract', > 'project__contract')): > print tender, tender.getTot