On Fri, Feb 20, 2009 at 1:15 AM, Reza Muhammad wrote:
>
> Hello All,
>
> I'm trying to play around with a send_mail/mail_admins function but
> couldn't get it to work properly. I hope someone can help me out :)
>
>
> I'm trying to create a "send feedback" feature in my application which
> will ba
Using r9679 (I can svn up if needbe ;) )
How exactly do I save my new resized image? I couldn't quite find any
documentation on this either.
The "easy" way almost seems to do it by writing out the file on my own
and just setting the imagefield to the filename... but there seems
like there shoul
Hello All,
I'm trying to play around with a send_mail/mail_admins function but
couldn't get it to work properly. I hope someone can help me out :)
I'm trying to create a "send feedback" feature in my application which
will basically retrieve user's inputted data through form, and then
se
On Thu, 2009-02-19 at 21:09 -0800, macdo...@gmail.com wrote:
>
> I am trying to set up a templatetag that will give me a variable to
> use
> in templates so we can modify our presentation of stories depending
> upon
> whether the accompanying photo is horizontal or vertical. I am using
> 0.91 El
I am trying to set up a templatetag that will give me a variable to
use
in templates so we can modify our presentation of stories depending
upon
whether the accompanying photo is horizontal or vertical. I am using
0.91 EllingtonCMS.
I've made a templatetag in /ellington/media/photos.py that lo
Hi, I have an admin filter that filters all entries that have a
particular foreign key. Specifically, this foreign key is a "Code"
object that contains a "Code #" and a "Description".
In the admin filter display, it shows all the codes I can filter by,
but they are all out of order, i.e.
Filter
Thanks Alex,
That got me going and helped me discover my global_settings.py file.
Cheers,
Tim
On Feb 19, 12:07 am, Alex Gaynor wrote:
> On Thu, Feb 19, 2009 at 12:04 AM, Praveen
> wrote:
>
>
>
>
>
> > Hi could you please tell me more about sorry i could not get you. are
> > you using django-
On Feb 19, 6:39 pm, Andrew Ingram wrote:
> Simplest solution : don't worry about the AUTH_PROFILE_MODULE setting.
>
> I'm working on a site with numerous modules that contain user account
> information, such as orders and newsletter preferences. I just have a
> foreignkey to the auth User on each
If I am not mistaken, you're talking about passing states between the
request that is returning the redirect after a POST and the new
request that is rendering the GET.
If you really need to do that you can use sessions to store the data
that you need and then just set the initial data for the fo
On Mon, 2009-02-16 at 08:49 -0800, peterandall wrote:
> Hi all,
>
> I'm trying to access a list of users in forms.py I'm creating two
> lists and merging them in my view (new_bug) then passing them through
> when i create the form. I was going off answers on these two existing
> topics:
> http:/
Yup, obvious. Python newbie forgets the () again.
Thanks.
On Feb 19, 10:43 am, Alex Gaynor wrote:
> On Thu, Feb 19, 2009 at 1:36 PM, jeff wrote:
>
> > OK, I know I'm missing something obvious here in my basic "Reset
> > Password for Forgetful User" form:
>
> > email = form.cleaned_data.get( '
I'm not sure if other people have stumbled onto this but I am having a
LOT of trouble getting the admin to use select related.
I have FK's that are nullable, this I know doesn't by default work
with select_related. But I've overridden the manager to select the
related fields I need (which I prett
I am also a "noob" who doesn't want to search two lists.
Was someone rude to you on this list?
On Thu, February 19, 2009 2:11 pm, Bobby Roberts wrote:
>
> ... simpleton questions welcome, mentors encouraged to help...
>
>
> http://groups.google.com/group/djangonoobs
> >
>
>
--~--~-~
On Thu, 2009-02-19 at 14:53 -0800, Gok Mop wrote:
> I'm struggling with how to design something, and I'm pretty sure
> somebody has an easy solution.
>
> I need to store different information about different classes of
> users. I want to attach those classes as the user profile to my
> django.co
Simplest solution : don't worry about the AUTH_PROFILE_MODULE setting.
I'm working on a site with numerous modules that contain user account
information, such as orders and newsletter preferences. I just have a
foreignkey to the auth User on each of these, eg:
class OrderAccount(models.Model):
On Thu, 2009-02-19 at 16:35 -0500, Alex Gaynor wrote:
>
>
> On Thu, Feb 19, 2009 at 4:17 PM, Nicolas Steinmetz
> wrote:
>
> Nicolas Steinmetz a écrit :
> >
> > Thanks for the answer. I'll implement the 2nd method, which
> makes far
> > more sens
On Thu, 2009-02-19 at 20:39 +0900, Russell Keith-Magee wrote:
[...]
> Regardless - protocols like this can (and, for the most part, should)
> exist as external projects. James Tauber's approach with
> django-atompub is exactly the right idea. If you particularly want
> MetaWeblog support, it doesn
Tricky...how do you write a method in Django that can query Plone for
the existence of a user? A couple of thoughs:
1. Design an external method in Plone that takes a username/password
and returns true/false
2. Extend Plone to copy the users to a SQL table that you can then
access natively in Dja
On Thu, 2009-02-19 at 17:44 +0200, burcu hamamcıoğlu wrote:
>
> hi , I want to make to display a field disabled(readonly) on admin
> form. Could you please help me how can i do this?
There was a thread about exactly this topic within the last two days.
It's worth doing a little bit of a search
On Thu, 2009-02-19 at 10:20 +, Alan wrote:
> Hi There,
>
>
>
>
> We have Plone/Zope site for CMS and users registration. It came before
> django for us. But now we are developing portal applicatons done with
> django (much better to develop and maintain) and we have this question
> now: h
On Fri, Feb 20, 2009 at 1:04 AM, RaoB wrote:
>
> Is anything being done to include aspect orientation in dJango, to be
> able to easily and dynamically modify behaviors etc.?
> http://www.cs.tut.fi/~ask/aspects/download.shtml seems interesting?
In short - no.
If you have any specific suggestion
I'm struggling with how to design something, and I'm pretty sure
somebody has an easy solution.
I need to store different information about different classes of
users. I want to attach those classes as the user profile to my
django.contrib.auth.User object, so I can always cross-walk from the
Us
On Thu, Feb 19, 2009 at 1:44 PM, Bobby Roberts wrote:
> On Feb 19, 1:08 pm, Karen Tracey wrote:
> > On Thu, Feb 19, 2009 at 12:53 PM, Bobby Roberts
> wrote:
> >
> > > > Set a __unicode__ method on your Auction model.
> > > > --
> > > > DR.
> >
> > > Hi Daniel... I'm new to the python world... c
On Thu, Feb 19, 2009 at 4:17 PM, Nicolas Steinmetz wrote:
>
> Nicolas Steinmetz a écrit :
> >
> > Thanks for the answer. I'll implement the 2nd method, which makes far
> > more sens than my first "harsh and straight away" approach ;-)
>
> Solution was finally :
>
> try:
> tips
Nicolas Steinmetz a écrit :
>
> Thanks for the answer. I'll implement the 2nd method, which makes far
> more sens than my first "harsh and straight away" approach ;-)
Solution was finally :
try:
tips ={'google': google(request.POST['search'], number),
'google
On Thu, Feb 19, 2009 at 7:18 AM, phoebebright wrote:
>
> Where do I do the compare though as the headers are not being returned
> - the file is being downloaded so I don't get to see what might be
> different. (Using Firefox Firebug NET option - very helpful
> otherwise). It's the browser makin
On Thu, Feb 19, 2009 at 2:08 PM, Mark Jones wrote:
>
> Maybe because I have a list of values that I want the user to be able
> to select between. A list of 4 or so things that I want the user to
> be able to choose one or more of. Is there some better way to get
> this accomplished?
>
At the u
Thanks Tim, I got it sorted out.
On Feb 19, 3:39 pm, Tim wrote:
> The problem is that you are using the manage.py that is in the
> project_template directory, which will load the settings.py file from
> the project_template directory.
>
> You need to use the manage.py that is in the akonline dir
> "Bobby" == Bobby Roberts writes:
Bobby> ... simpleton questions welcome, mentors encouraged to help...
Cool. I'm joining it...
Sincerely,
Gour
--
Gour | Zagreb, Croatia | GPG key: C6E7162D
pgpMPUzF9xjTt.pgp
Descripti
I don't think it is really needed.
I think this list is perfectly OK for newbies and advanced users.There
is not a clear line defining when you are a newbie and when you are an
average user as well.
Now, we must search two archives instead of just a centralized one.
Bobby Roberts wrote:
> .
Finally! =)
I downloaded [1] and added it as a new class in
django/contrib/auth/backends.py.
And then edited settings.py:
"""
[...]
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.LDAPBackend',
#'django.contrib.auth.backends.ModelBackend',
)
import ldap
LDAP_DEBUG = True
LDAP_
On Thu, Feb 19, 2009 at 2:00 PM, christian.oud...@gmail.com <
christian.oud...@gmail.com> wrote:
>
> I have alot of pages using javascript, and a lot of forms that specify
> javascript in the Meta.media class. I keep having problems duplicating
> javascript includes. This happens when i include th
... simpleton questions welcome, mentors encouraged to help...
http://groups.google.com/group/djangonoobs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
Maybe because I have a list of values that I want the user to be able
to select between. A list of 4 or so things that I want the user to
be able to choose one or more of. Is there some better way to get
this accomplished?
On Feb 19, 11:43 am, Karen Tracey wrote:
> On Thu, Feb 19, 2009 at 11:5
I have alot of pages using javascript, and a lot of forms that specify
javascript in the Meta.media class. I keep having problems duplicating
javascript includes. This happens when i include the form media with a
context variable (e.g. {{ media }} ), but the template also specifies
a
On Feb 19, 1:08 pm, Karen Tracey wrote:
> On Thu, Feb 19, 2009 at 12:53 PM, Bobby Roberts wrote:
>
> > > Set a __unicode__ method on your Auction model.
> > > --
> > > DR.
>
> > Hi Daniel... I'm new to the python world... can you tell me what that
> > even is?
>
> A quick read through the tuto
On Thu, Feb 19, 2009 at 1:36 PM, jeff wrote:
>
> OK, I know I'm missing something obvious here in my basic "Reset
> Password for Forgetful User" form:
>
> email = form.cleaned_data.get( 'email' )
> username = form.cleaned_data.get( 'username' )
> new_password = User.objects.make_random_password(
OK, I know I'm missing something obvious here in my basic "Reset
Password for Forgetful User" form:
email = form.cleaned_data.get( 'email' )
username = form.cleaned_data.get( 'username' )
new_password = User.objects.make_random_password( length=6 )
u = User.objects.get( username__exact=username )
On Thu, Feb 19, 2009 at 1:22 PM, Alessandro Ronchi <
alessandro.ron...@soasi.com> wrote:
>
> I get an error when I try to upload a jpeg file.
>
> I've tried to compile PIL from scratch, and
> python setup.py build_ext -i
>
> says:
> --- JPEG support ok
> --- ZLIB (PNG/ZIP) support ok
> --- FREETY
I get an error when I try to upload a jpeg file.
I've tried to compile PIL from scratch, and
python setup.py build_ext -i
says:
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
but when I try selftest:
http://dpaste.com/122689/
I've tried everything.
I'm running on
On Thu, Feb 19, 2009 at 12:53 PM, Bobby Roberts wrote:
>
> > Set a __unicode__ method on your Auction model.
> > --
> > DR.
>
> Hi Daniel... I'm new to the python world... can you tell me what that
> even is?
>
A quick read through the tutorial would have covered it. If you don't want
to be bot
> Set a __unicode__ method on your Auction model.
> --
> DR.
Hi Daniel... I'm new to the python world... can you tell me what that
even is?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
> "Russell" == Russell Keith-Magee writes:
Hi Russ,
Russell> In this case, it looks like a combination of factors:
Russell> 1) The age difference between the two tickets,
Russell> 2) A Ticket that just hasn't been completely updated to the
Russell> current triage process,
Russell> 3) Some
On Thu, Feb 19, 2009 at 11:56 AM, Mark Jones wrote:
>
> forms.IntegerField(widget=forms.CheckboxInput(attrs={'value':1}),
> required=False)
>
> won't work because
>
>def value_from_datadict(self, data, files, name):
>if name not in data:
># A missing value means False beca
I am a developer with a deadline -- not even a perfectionist,
I just want it to work! ;)
I am running Django 1.0.2-final on Ubuntu gutsy with Python 2.5.
I am also using
* django-registration 0.7
* django-profiles 0.2
Everything works fine with django's runserver.
In the wsgi environment,
On Feb 19, 5:25 pm, Bobby Roberts wrote:
> Hi everyone.
>
> I have two models - one for "auctions" and one for "auction FAQs".
> AuctionFAQs has a foreignkey field tied to the ID from auctions. The
> result of the selection box in my admin AuctionFAQs model is as
> follows:
>
> name="Auction_Id
Hi everyone.
I have two models - one for "auctions" and one for "auction FAQs".
AuctionFAQs has a foreignkey field tied to the ID from auctions. The
result of the selection box in my admin AuctionFAQs model is as
follows:
-
Auction object
Auction object
It's pulling in
Hi,
in the oldforms times the generic views (create_object and
update_object) used to handle edit_inline out of the box: ie. for the
typical Poll/Question models I could just pass Poll to create_object
and have it create poll objects AND related Question instances.
With the inline settings pulle
Hi - I work at Playstation and we're looking to hire a Developer with
Python and Django experience for our R&D team. This full-time
opportunity is located in our Foster City, CA office. If interested
in pursuing this opportunity, please contact me at
neil_k...@playstation.sony.com
Thanks, Neil
forms.IntegerField(widget=forms.CheckboxInput(attrs={'value':1}),
required=False)
won't work because
def value_from_datadict(self, data, files, name):
if name not in data:
# A missing value means False because HTML form submission
does not
# send results for u
Watch out for using the PK as the range like that. It's possible for
that query to return 0 records.
If show_id is 10, but records with a PK of 6-9 don't exist, and
records with a PK of 11-14 don't exist, you won't have any records
returned.
Unless, of course, that's what you want. Then carry on
2009/2/19 João Olavo Baião de Vasconcelos :
> On Wed, Feb 18, 2009 at 7:17 PM, Antoni Aloy wrote:
>>
>> This is a quite nice tutorial, perphaps it would help you.
>> http://www.carthage.edu/webdev/?p=12
>
> Thanks for the advice, Antoni.
>
> I tried authenticating with LDAP using the python inter
On Thu, 2009-02-19 at 09:54 -0500, Karen Tracey wrote:
> You might want to read:
>
> http://code.djangoproject.com/ticket/6527
>
> My sense from that ticket (and other half-remembered discussions of
> iterators and HttpResponses) is that, if this is working for you now,
> you are just lucky yo
> current_show = 5 #Presumably you get this in your request
> show_range = (current_show - 4, current_show + 4)
> shows = Show.objects.filter(show_order__range=show_range)
This seems to work so far.
shows = Show.objects.filter(Q(pk__range=(show_id - 4, show_id + 4) & Q
(category=category))
Behi
On Thu, Feb 19, 2009 at 10:44 AM, burcu hamamcıoğlu wrote:
> hi , I want to make to display a field disabled(readonly) on admin form.
> Could you please help me how can i do this?
>
> >
>
Here's an article I wrote on building a form field/widget to do this:
http://lazypython.blogspot.com/2008/12/b
Is anything being done to include aspect orientation in dJango, to be
able to easily and dynamically modify behaviors etc.?
http://www.cs.tut.fi/~ask/aspects/download.shtml seems interesting?
Rao
--~--~-~--~~~---~--~~
You received this message because you are subs
hi , I want to make to display a field disabled(readonly) on admin form.
Could you please help me how can i do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send em
The problem is that you are using the manage.py that is in the
project_template directory, which will load the settings.py file from
the project_template directory.
You need to use the manage.py that is in the akonline directory, so
that the proper settings.py file is loaded.
--~--~-~--~-
Alfonso,
I ran into similar types of issues when I was importing data into my
project. I ended up just converting all MultiLine and MultiPolygon
fields into Regular Line and Polygon fields using through a GeoDjango
script (using the 1st Line and Polygon of each feature as the input
for creating
Where do I do the compare though as the headers are not being returned
- the file is being downloaded so I don't get to see what might be
different. (Using Firefox Firebug NET option - very helpful
otherwise). It's the browser making the decision about how to handle
the request (Isn't it?).
On
On Feb 19, 2009, at 10:05 PM, Nalini wrote:
>
> While inputting an invalid username and password it should throw an
> alert message saying "invalid user". How to get this in django? Do i
> need to add something in views.py?
It's hard to know exactly what you're doing here, but I'm going to
gu
On Thu, Feb 19, 2009 at 9:04 AM, Adam Stein wrote:
>
> Thanks Kevin and Malcom for responding.
>
> Kevin is right in that I don't need AJAX. I came up with a different
> method that also allows me to change the string above my progress bar to
> reflect what I'm actually doing at the moment.
>
>
ganno wrote:
> Hi all,
>
> I am new to django.And i need to develope a login system which
> manage my session on another php site.Main login is from django site
> but when i redirects my page then my session is not maintained and and
> i will be redirected as anonymous user not as current user.
Glad it's sorted!
On Feb 19, 10:58 am, zegerman wrote:
> Thx Phoebe,
>
> but it wasn't the path.
>
> u have to change the admin.py
> from
> widgets.JS_URL,
> to
> widgets.tinymce.settings.JS_URL,
>
> source:http://groups.google.com/group/django-cms/browse_thread/thread/88dfe2...
>
> On 18 Feb.,
possible side effect:
I wrote some class that runs during settings.py and customizes settings
(dev/live/beta)
it logs when doing that, and so I've noticed that settings gets parsed 4
times !
loading ENVIRONMENT: local_settings.py
SITE_URL is: http://127.0.0.1:8000
loading ENVIRONMENT: local_set
Instead of 3), for mod_python you can create a wrapper around
ModPythonHandler like this example from the Pinax Project:
http://svn.pinaxproject.com/pinax/trunk/projects/basic_project/deploy/modpython.py
import os
import sys
from os.path import abspath, dirname, join
from site import addsitedir
On Wed, Feb 18, 2009 at 7:17 PM, Antoni Aloy wrote:
> This is a quite nice tutorial, perphaps it would help you.
> http://www.carthage.edu/webdev/?p=12
>
Thanks for the advice, Antoni.
I tried authenticating with LDAP using the python interpreter, and I got
this error:
>>> import ldap
>>> l =
On Thu, Feb 19, 2009 at 7:45 AM, madhav wrote:
>
> I have a model something like this:
> class CandidateEmailMessage(models.Model):
>from_email = models.EmailField(max_length=100)
>to_email = models.EmailField(max_length=100)
>body = models.TextField()
>objects = CandidateEmailMes
While inputting an invalid username and password it should throw an
alert message saying "invalid user". How to get this in django? Do i
need to add something in views.py?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
On Thu, Feb 19, 2009 at 5:24 AM, Alfonso wrote:
>
> Karen,
>
> Good point - I will certainly use dpaste in the future. Here's the
> traceback, I should have copied that in right from the start:
>
> Traceback:
> [snip]
File "/home/queryclick/webapps/django/lib/python2.5/django/contrib/
> admin/o
Thanks Kevin and Malcom for responding.
Kevin is right in that I don't need AJAX. I came up with a different
method that also allows me to change the string above my progress bar to
reflect what I'm actually doing at the moment.
My method (roughly) involves setting the HTTPResponse content to a
I have a model something like this:
class CandidateEmailMessage(models.Model):
from_email = models.EmailField(max_length=100)
to_email = models.EmailField(max_length=100)
body = models.TextField()
objects = CandidateEmailMessageManager()
As the django documentation says blank=Fals
Since I've upgraded to Django ver 1.00, I'm suddenly getting the
following error with my ImageFields.
The tag is {{ model.image.url}} and it throws an error if the image
field in the database is null (even if it is set to null in the model)
Am I missing something? Here is the error message bei
I may just try creating a new app and see if that works and if it does
just copy the things over.
--~--~-~--~~~---~--~~
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
On Thu, Feb 19, 2009 at 7:45 PM, Gour wrote:
> Hi!
>
> I'm new to Django exploring what can be done with it and I'd like that
> blog users could use some of desktop blog clients to publish their posts
> to Django-powered blog site, so I did some research about support for
> MetaWeblog and Atom PP
Thx Phoebe,
but it wasn't the path.
u have to change the admin.py
from
widgets.JS_URL,
to
widgets.tinymce.settings.JS_URL,
source:
http://groups.google.com/group/django-cms/browse_thread/thread/88dfe2358d900a85?hl=en
On 18 Feb., 19:59, Phoebe Bright wrote:
> My experience with setting up ti
Hi!
I'm new to Django exploring what can be done with it and I'd like that
blog users could use some of desktop blog clients to publish their posts
to Django-powered blog site, so I did some research about support for
MetaWeblog and Atom PP in DJango which has brought me to the two
tickets:
http:
I'm getting an error - "PostGIS spherical operations are only valid on
PointFields." when I try to do a distance search on a MultiPointField
in the db. I kind of understand why but wonder if it's possible to do
such a query at all on MultiPointFields?
All I'm looking for is:
england_pnt = froms
Karen,
Good point - I will certainly use dpaste in the future. Here's the
traceback, I should have copied that in right from the start:
Traceback:
File "/home/queryclick/webapps/django/lib/python2.5/django/core/
handlers/base.py" in get_response
86. response = callback(request
Hi There,
We have Plone/Zope site for CMS and users registration. It came before
django for us. But now we are developing portal applicatons done with django
(much better to develop and maintain) and we have this question now: how to
allow a user to login in django portal using his/her login and p
Thanks for the answer.
I understand the implications of it.
I'll keep an eye on the stated ticket.
Keep up with the good work.
Stefan
Russell Keith-Magee escribió:
On Thu, Feb 19, 2009 at 2:32 AM, Stefan Tunsch wrote:
Hi there!
I'm trying to see what's the best approach in
Hi all,
I am new to django.And i need to develope a login system which
manage my session on another php site.Main login is from django site
but when i redirects my page then my session is not maintained and and
i will be redirected as anonymous user not as current user.I want to
make that cen
82 matches
Mail list logo