Thanks Justin!
I just figured this out myself. I'll include the updated RoomForm
definition below since I've cleaned it up a bit and made a small fix to
the save function:
--
from django.db.models.related import
On 1/2/07 9:59 PM, LD 'Gus' Landis wrote:
Would it be possible to have something like the above subject prefix
put on
the Django lists? Please? Would help visually enhance Django stuff
from other
noise. TIA for your consideration.
This comes up every few months; please search the
Dear Django-users List Mangler,
Would it be possible to have something like the above subject prefix put on
the Django lists? Please? Would help visually enhance Django stuff from other
noise. TIA for your consideration.
Cheers,
--ldl
--
---
LD Landis - N0YRQ - de la tierra del encanto
Yes, it is in the head. These are external scripts. Also, on the server
console I see no errors. I get a HTTP 200 when the form is posted
[02/Jan/2007 18:18:15] "POST /ajax/ HTTP/1.1" 200 2824
Kenneth Gonsalves wrote:
On 03-Jan-07, at 4:17 AM, newbie wrote:
> When I click the form
Russell Keith-Magee wrote:
You have imported the 'source' model to allow access to referral type
as a Python module - but have you added 'source' to INSTALLED_APPS? If
you don't do this step, Django doesn't know about the model, so it
can't validate the foreign key.
Of course. Thanks for the
On 1/3/07, Rubic <[EMAIL PROTECTED]> wrote:
referral.referralsource: 'referralType' has relation with model
ReferralType, which has not been installed
1 error found.
You have imported the 'source' model to allow access to referral type
as a Python module - but have you added 'source' to
On 03-Jan-07, at 4:17 AM, newbie wrote:
When I click the form submit button, the ajax callback does not kick
in. I simply get a refresh if the page...On the server console I see
that the request is seeking the right JS code. The question is - How
should I debug this ?
where is the js code?
I'd be interested in working with you, e-mail [EMAIL PROTECTED] and
we'll see how I can help.
-- Silas
On Jan 2, 9:23 am, "professorhojo" <[EMAIL PROTECTED]> wrote:
hi all,
we're looking for a part time django developer to work remotely a few
hours here and there, as your schedule permits.
On 03-Jan-07, at 1:58 AM, Jacob M wrote:
Then create a postgresql user and password in psql.
that is
createuser saraswati -P
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message
On 02-Jan-07, at 11:18 PM, Michel Thadeu Sabchuk wrote:
without success, the error message tells me: FATAL: Ident
authentication failed for user "saraswati".
edit pg_hba.conf - change authentication from ident 'sameuser' to
password
--
regards
kg
http://lawgon.livejournal.com
I'm responding to a thread over 60 days old:
http://tinyurl.com/ycmj9l
Guillermo implies that a model should be easily shared
between Django applications via import. However, if I
attempt to move Model class to a shared module, the
model won't validate. For example:
class
JMCameron wrote:
Somehow, the AddManipulator does a bit of magic to make {% for
the_chair in form.chair %} work in the template. When it works, as
far as I can tell, in first pass, the_chair has a dictionary of all the
chair.0.* objects, second pass has a dictionary of all the chair.1.*
I am new to Django and am still playing with some code available on the
internet. I was trying to run the YUI-ext and Django application on
B-List.
When I click the form submit button, the ajax callback does not kick
in. I simply get a refresh if the page...On the server console I see
that the
Thank you, gkelly!
I have found what I was looking for. I am a newbie to Django and I have
to learn more about this system.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this
Howdy folks --
I want to remind everyone that PyCon 2007 is rapidly approaching -- less than
two months! -- and that early-bird registration ends Jan. 15th.
I've posted a complete roundup of the Django-related activities on the Django
'blog
Hi gordy,
I worked around this issue by using:
class MyForm( forms.Form ):
.
customer_id = forms.Field(widget=forms.HiddenInput,required=False)
def __init__( self, data=None, **kwargs ):
super( MyForm, self ).__init__( data, **kwargs )
self.fields['employee_id'] =
Hi there
I'm trying to use FileInput widget in a Form:
image = forms.Field(widget=forms.FileInput)
But after a post, I just can get the filename not the data.
form.clean_data['image']
Any ideas ?
Thanks.
--~--~-~--~~~---~--~~
You received this message
If you're running django under mod_python it will be using whichever
account apache is running under - www-data, apache, etc.
I typically use password-based authentication instead of same-user
ident authentication in postgresql. Look in pg_hba.conf on your
system.
My pg_hba.conf typically
Assuming that you're running this under Apache+Mod_Python (complete guess -
please correct me if I'm wrong), the server will be running as whatever
Apache is configured to run as. Typically that's not a local username like
"saraswati".
If you run Django with a front-end of Lighttpd+FLUP/fgci,
Howdy Folks,
Here is a fragment of a form definition:
class AddEditContactHistoryForm(forms.Form):
customer_id = forms.Field(widget=forms.HiddenInput,required=False)
contact_history_type_id = forms.ChoiceField(label='Contact Type',
choices=[(c.id,c.description) for c in
Check out these built-in filters for templates:
http://www.djangoproject.com/documentation/templates/#linebreaks
If you're writing templates, that whole page is a very valuable
resource.
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
I have a model field which is defined as a TextField. If I get the
object in a view function by using of
next statement :
object = get_object_or_404(Object, pk=obj_id)
Then I can use in template the next statement :
{{ object.attrib }} and I get correctly the text get placed in this
Hi guys!
I'm deploying a django project with postgresql as database backend. I
used to create a local user with the same name of the database user
(owner of the database), so I just need to run the webserver as the
local user and the database should work without problems (this was true
for
Alagu Madhu :
I am facing a problem in login screen using XMLHttpRequst sending the
data to the controller.controller is getting the value through
request.POST. but its not redirecting the same.
if result[0]:
return HttpResponseRedirect("/main/")
else:
return
On 1/1/07, Ramdas S <[EMAIL PROTECTED]> wrote:
class billnumber(models.Model):
date = models.DateTimeField(auto_now_add=True, primary_key = True)
def __str__(self):
return self.id
You added the 'primary_key' attribute to your date field, therefore
your model will not have an
Hi All,
I am facing a problem in login screen using XMLHttpRequst sending the
data to the controller.controller is getting the value through
request.POST. but its not redirecting the same.
from django.http import HttpResponse, HttpResponseRedirect
import db
def login(request):
args =
Dear Friend,
This IS a Once in a Lifetime Opportunity
I only do this every once in a while and it's not likely that you'll
find me again...
I am an independent agent for a company called Cognigen Networks. This
company has a five star rating and has a very solid foundation. We are
traded on
hi all,
we're looking for a part time django developer to work remotely a few
hours here and there, as your schedule permits.
please reply here!
thanks :-D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
Ramdas S wrote:
I got this model
class billnumber(models.Model):
date = models.DateTimeField(auto_now_add=True, primary_key = True)
def __str__(self):
return self.id
class Admin:
pass
class Meta:
ordering = ['-date',]
Trying to populate the table using
I have a search form where I would like to add the calendar widget for
the date fields.
I have been looking at the admin code but I wanted to know if there was
any other examples out there.
Looking at some other threads I have implemented these steps
1) add an entry to my site's urlpatterns
Right, it makes sense to put display logic in the views/templates. And
of course, the actual building of the tables will go there.
Does that apply to the actual sorting of the data as well? It seems to
me that it's something most efficiently accomplished at the database
level.
And then...
New Year Horoscope
Curious to know what the New Year 2007 holds for you? Here comes Travour
to kill all your curiosity with the Horoscope 2007 . Get to know about
your future in the New Year by having a look attheHoroscope 2007 .
http://xrl.us/t34m
New Year History
Celebrated around the
Hi Ramiro,
In BBedit I saved the file as utf8 and the problem was solved.
Thanks
Rob
Op 31-dec-06 om 19:27 heeft Ramiro Morales het volgende geschreven:
Try encoding the models.py file using utf-8 (use iconv to re-encode it
if
it is encoded in ASCII or ISO 8859-x) and flag the encodig
33 matches
Mail list logo