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
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
在 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
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
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
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
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
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
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
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
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
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
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. 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
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)*
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
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
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
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.
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
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
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
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
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',)
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
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
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
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
28 matches
Mail list logo