Re: Recursive comments

2007-12-07 Thread Thomas

Resolved: easier than I thought!

Part where I got stuck was the correct syntax for the template tags
when commenting on the comments:

For example for the comments form I'd need.

{% comment_form for [pkg].[py_module_name]
[context_var_containing_obj_id] with [list of options] %}

For the comment-on-the-comment form syntax would be:

{% comment_form for comments.comment .id %}

comments.comment key is looked up in the django_content_type table:
[app_label][name]

Thomas


On Dec 8, 8:14 am, Thomas <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> any pointers on how to implement the recursive comments functionality
> slashdot/reddit-style (comments on the comments)? I think I can't use
> django.contrib.comments straight but need a wrapper application in my
> project directory ...
>
> Thanks, Thomas
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: creating an inline comma-separated list

2007-12-07 Thread Eric Abrahamsen

> The template snippet which does this is actually pretty simple:
>
> Its part of the categor{{
> object.categories.count|pluralize:"y,ies" }} {% for category in
> object.categories.all %}{{
> category.title }}{% if forloop.last %}{% else %}{% ifequal
> forloop.revcounter0 1 %} and {% else %}, {% endifequal %} {% endif
> %}{% endfor %}.

Of course! When I tried to do this in a forloop in the template I was
stuck thinking I had to include the whole author link thing in the
forloop.rev test, lord only knows why. This is an excellent solution,
and my karmic debt to you and the b-list continues to grow by the
day...

E
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Recursive comments

2007-12-07 Thread Thomas

Hi list,

any pointers on how to implement the recursive comments functionality
slashdot/reddit-style (comments on the comments)? I think I can't use
django.contrib.comments straight but need a wrapper application in my
project directory ...

Thanks, Thomas
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: creating an inline comma-separated list

2007-12-07 Thread James Bennett

On Dec 8, 2007 12:28 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Hope the formatting survives. I have two questions:
>
> 1. Is there really no easier way to do this?
> 2. I'm up against the negative indexing problem in getting the last
> author, and while the negative order_by seems okay, given that id is
> unique, I'm wondering if there is a better way to accomplish that.
>
> Any suggestions or alternative solutions would be much appreciated...

On my blog, I have a many-to-many relation between entries and
categories, and in the sidebar of an entry I display the list of
categories. For example:

The entry at http://www.b-list.org/weblog/2007/dec/04/magic-tags/
belongs to one category, and so displays

"It's part of the category Django."

The entry at http://www.b-list.org/weblog/2007/feb/16/javascript-knowledge-gap/
is part of two categories, and so displays

"It's part of the categories JavaScript and Programming."

The entry at 
http://www.b-list.org/weblog/2007/jan/22/choosing-javascript-library/
is in three categories, and so displays

"It's part of the categories Frameworks, JavaScript and Programming."

The template snippet which does this is actually pretty simple:

Its part of the categor{{
object.categories.count|pluralize:"y,ies" }} {% for category in
object.categories.all %}{{
category.title }}{% if forloop.last %}{% else %}{% ifequal
forloop.revcounter0 1 %} and {% else %}, {% endifequal %} {% endif
%}{% endfor %}.

In short:

1. Pluralize "category" appropriately to "categories" when there's
more than one category for the entry.
2. Loop through the categories.
3. Each time through, link to the category and show its title.
4. On the last trip through the loop, don't do anything special.
5. Otherwise, if it's the next-to-last time display a space followed
by the word "and" followed by a space.
6. Otherwise, display a comma followed by a space.

I don't like the serial comma (e.g., I prefer "Frameworks, JavaScript
and Programming" to "Frameworks, JavaScript, and Programming"), but
that'd be easy enough to do by changing step 5 to show "and," instead
of "and".
-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Using 'Form Preview' to allows users to preview their order before submission

2007-12-07 Thread Greg

Hello,
I have a form where website visitor's enter in their billing,
shipping, and credit card info.  I want to give the user the ability
to preview their order information before they submit their order.
I've been reading about Django's 'Form Preview' module however I'm not
sure if that is what I want to use.  When previewed I would like for a
new window to appear that shows all of the information in the form and
then gives them the ability to submit or edit the form.  In reading
'Form Preview'...I guess when previewed the preview form appears on
top of the page and then the original form appears below that.  Is
there anyway to setup 'Form Preview' so that a smaller window appears
displaying their info?

Thanks

//

Another question.

I'm currently trying to get this to work on my site however I keep
getting error messages.  Here is what I have so far:

urls.py

from mysite.app.preview import ContactFormFormPreview
from django import newforms as forms
from mysite.app.models import ContactForm

urlpatterns = patterns('',
(r'^post/$',
ContactFormFormPreview(forms.models.form_for_model(ContactForm))),



preview.py

from django.contrib.formtools.preview import FormPreview
from mysite.app.models import ContactForm

class ContactFormFormPreview(FormPreview):

def done(self, request, cleaned_data):
return HttpResponseRedirect('/')

//

models.py

class ContactForm(forms.Form):
b_firstname = forms.CharField(label = 'First Name')
b_lastname = forms.CharField(label = 'Last Name')
b_address = forms.CharField(label = 'Address')
b_city = forms.CharField(label = 'City')
etc...

//

Whenever I try to access  '/post' page I get the following error:

AttributeError at /post/
type object 'ContactForm' has no attribute '_meta'


///

Is there something wrong with the line
('forms.models.form_for_model(ContactForm)') calling a form instead of
a model?

Thanks
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Distributing Updates

2007-12-07 Thread James Bennett

On Dec 7, 2007 10:16 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> This quite literally is the only thing that's keeping me from going
> with Django and not looking back, but I really can't bother my clients
> with having to walk them through opening a database and adding new
> columns and the like.

Django does not offer any built-in method of automatically
generating/applying schema changes to correspond to changes in model
classes. There are several third-party projects which do so, however,
and a quick search of Google or the archives of this list will turn
them up ;)


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Distributing Updates

2007-12-07 Thread [EMAIL PROTECTED]

I've been considering using Django to serve as a means of receiving
some pretty basic data from a client GUI application. I absolutely
love Django but the process of distributing updates really bothers me.
Let's say I change the layout of the database via models and need to
get this to my clients. Is there some feature in manage.py that could
facilitate this? I remember hearing that someone was working on
getting things to really sync up even after model changes, but I'm not
sure of the status of that.

This quite literally is the only thing that's keeping me from going
with Django and not looking back, but I really can't bother my clients
with having to walk them through opening a database and adding new
columns and the like.

If there are any ideas here, I'd really love to hear them!
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: flatpages and 404s

2007-12-07 Thread zero

*erch* seems as if I also trapped into the SITE_ID problem ...

see here
http://groups.google.com/group/django-users/browse_thread/thread/6b0c21bb395df46/a1c24b6c76dc6ac1?hl=de=gst=flatpages#a1c24b6c76dc6ac1


On 8 Dez., 02:04, zero <[EMAIL PROTECTED]> wrote:
> hm ... I have the same problem, but no solution to it as Loki.
> I did exactly the same as what he decribed above. very annoying if
> something that simple doesn't work.
> I am running django with mod_python and also checked the Apache access
> logs to be sure to get that 404 that is required to makeflatpages
> work.
> Any idea?
>
> settings.py:
>
> MIDDLEWARE_CLASSES = (
> 'django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
> )
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.admin',
> 'django.contrib.comments',
> 'django.contrib.flatpages',
> 'mysite.blog',
> 'mysite.organizer',
> )
>
> On 10 Okt., 13:44, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Ah ha. never mind, i found the problem.
>
> > I have a context processor that is run on every page to determine if a
> > new flatpage needs to be created (we are using them in a help system).
> > Unfortunately, this was being run on the flatpag itself and couldn't
> > resolve the url as a view and so threw a 404.
>
> > Note to self, 'try' is your friend...
>
> > Loki
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: flatpages and 404s

2007-12-07 Thread zero

hm ... I have the same problem, but no solution to it as Loki.
I did exactly the same as what he decribed above. very annoying if
something that simple doesn't work.
I am running django with mod_python and also checked the Apache access
logs to be sure to get that 404 that is required to make flatpages
work.
Any idea?

settings.py:

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.comments',
'django.contrib.flatpages',
'mysite.blog',
'mysite.organizer',
)


On 10 Okt., 13:44, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Ah ha. never mind, i found the problem.
>
> I have a context processor that is run on every page to determine if a
> new flatpage needs to be created (we are using them in a help system).
> Unfortunately, this was being run on the flatpag itself and couldn't
> resolve the url as a view and so threw a 404.
>
> Note to self, 'try' is your friend...
>
> Loki
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread Malcolm Tredinnick


On Fri, 2007-12-07 at 06:53 -0800, sector119 wrote:
> When I try to use admin in queryset-refactor branch I get errors with
> handle_legacy_orderlist.
> It was removed from django.db.models.query, but still use in django/
> contrib/admin/views/main.py at ChangeList.get_ordering..

Since the queryset-refactor branch is not at all ready for testing,
that's hardly surprising. When it's ready for testing, that will be
announced.

Malcolm

-- 
Tolkien is hobbit-forming. 
http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: overriding User model list_display and fields in Admin

2007-12-07 Thread Malcolm Tredinnick


On Fri, 2007-12-07 at 06:08 -0800, l5x wrote:
> Hello,
> 
> I couldn't find the information how to override the 'list_display' and
> 'fields' of the Django (SVN) User model in Admin interface.
> 
> I need to display User altogether with his two profiles. I know that
> there is a get_profile(), but I want to display everything related to
> User in the Admin, in one place (the same for adding/changing).  Is
> there any way to do that? Can I subclass it somehow in a way that it
> will work with further Django releases?
> 
> If not, is there a possibility to display on the first profile a link
> to another profile and vice versa? How can I do that?

With the current Admin, the properties of the Admin display are part of
the model definition, so you don't get to change that for third-party
models (such as User).

With the upcoming newforms-admin work, you might be able to register
your own SiteAdmin for User (not quite sure how it will work for
replacing the exiting SiteAdmin for User, but that's a detail) and do
whatever you like.

Malcolm

-- 
Depression is merely anger without enthusiasm. 
http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Internet Explorer shenanigans

2007-12-07 Thread jim

I am using django in the standard style:

if request.method == 'GET':
do_something()
elif request.method == 'POST':
get the form data
validate it
if fail validation show the errors else redirect to sucess page


Let's say the the form post fails caus of invalid data, and the errors
are displayed.

Now if u wanna start again...like go to the url and type enter i.e. a
GET request, u shud get the original page without the errors. to see
what i mean...try the lawrence.com site

Using IE go to

http://www.lawrence.com/accounts/login/

don't type in anything and so a submit. U get some form validation
errors which is kool.

Now go to the url and press the 'Enter' key. The same page appears
with old error messages.

This does not happen with Firefox.

The reason is that IE does not send in a GET header, it actually sends
in a POST for some reason...

lemme know if anyone figures this out

jim

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Store your photos secure, online. 2 GB free!

2007-12-07 Thread Zooric
Store your photos secure, online. 2 GB
free!

Store, access, share and use your digital documents. With complete privacy.
2GB 
free!

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty

Added ticket http://code.djangoproject.com/ticket/6155 with patch.
Still need to write tests.

Michael

On Dec 7, 2007 3:15 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:
>
> On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote:
>
>
> >
> >
> > > Seems dumpdata is coded to require a Manager named 'objects' for the
> Models
> > > it dumps, even though (as described here:
> > > http://www.djangoproject.com/documentation/model-api/#manager-names),
> Django
> > > does not require that a Manager named objects exists for all Models.
> > > Whether this is just an oversight in dumpdata or a conscious decision I
> > > can't say, though it looks like an oversight to me.
> >
> > You're correct Karen.  This bit of code is the culprit:
> >
> >objects = []
> >for app in app_list:
> >for model in get_models(app):
> >
> >objects.extend(model.objects.all())
> >
> > How would you propose that it be done differently?  I know that
> > through object._meta.admin.manager will give you the first manager
> > like the Admin works off of, but that is only populated if the Admin
> > inner class is defined.  I looked for the logic that does that but I
> > couldn't find it.
> >
>
> I believe it should be using _default_manager, which looks to be set to
> track the first Manager defined for a Model.  I think a (legitimate) Model
> will always have _default_manager, while it may not always have objects.
>
> Karen
>
>
>  >
>

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread michaelbuddy

Thanks everyone,  this has been helpful.  I think I will go with
Django and experiment for a couple weeks.  The flat pages looks
interesting.



On Dec 7, 8:17 am, l5x <[EMAIL PROTECTED]> wrote:
> I suppose that you should take a look 
> athttp://www.djangoproject.com/documentation/flatpages/
> as well.
> It will give you the basic possibilty to manage the content, than you
> can extend it while learning more.
>
> Best regards,
> l
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote:

>
> > Seems dumpdata is coded to require a Manager named 'objects' for the
> Models
> > it dumps, even though (as described here:
> > http://www.djangoproject.com/documentation/model-api/#manager-names),
> Django
> > does not require that a Manager named objects exists for all Models.
> > Whether this is just an oversight in dumpdata or a conscious decision I
> > can't say, though it looks like an oversight to me.
>
> You're correct Karen.  This bit of code is the culprit:
>
>objects = []
>for app in app_list:
>for model in get_models(app):
>objects.extend(model.objects.all())
>
> How would you propose that it be done differently?  I know that
> through object._meta.admin.manager will give you the first manager
> like the Admin works off of, but that is only populated if the Admin
> inner class is defined.  I looked for the logic that does that but I
> couldn't find it.
>

I believe it should be using _default_manager, which looks to be set to
track the first Manager defined for a Model.  I think a (legitimate) Model
will always have _default_manager, while it may not always have objects.

Karen

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: get choice value in Form

2007-12-07 Thread Chris Brand


> class CustomForm( forms.Form):
> age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)
>
> How can I get the value (not the key) of the age attribute after 
> validation?
>
> if f.is_valid():
> cd = f.cleaned_data
>
> cd['age'] # returns the "key", not the value
Once you've saved the model, there's also the get_age_display() method 
(http://www.djangoproject.com/documentation/db-api/#get-foo-display). 
Looking at the code for that might give you more ideas.

Chris


--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty

> Seems dumpdata is coded to require a Manager named 'objects' for the Models
> it dumps, even though (as described here:
> http://www.djangoproject.com/documentation/model-api/#manager-names), Django
> does not require that a Manager named objects exists for all Models.
> Whether this is just an oversight in dumpdata or a conscious decision I
> can't say, though it looks like an oversight to me.

You're correct Karen.  This bit of code is the culprit:

objects = []
for app in app_list:
for model in get_models(app):
objects.extend(model.objects.all())

How would you propose that it be done differently?  I know that
through object._meta.admin.manager will give you the first manager
like the Admin works off of, but that is only populated if the Admin
inner class is defined.  I looked for the logic that does that but I
couldn't find it.

Michael Trier
blog.michaeltrier.com

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Who is Jesus?

2007-12-07 Thread عاصم عبد اللطيف

Who is Jesus?

Without a doubt, you have often heard the claim that Jesus is God, the
second person in the "Holy trinity." However, the very Bible which is
used as a basis for knowledge about Jesus and as the basis for
doctrine within Christianity clearly belies this claim. We urge you to
consult your own Bible and verify that the following conclusions are
not drawn out of context:

1. God is All Knowing.but Jesus was not
When speaking of the day of judgment, Jesus clearly gave evidence of a
limitation on his knowledge when he said, "but of that day and hour
knoweth no man, no, not the angels which are in Heaven, neither the
son, but the Father." Mark 13:32, and Matt 24:36. But God knows all.
His knowledge is without any limitations. That Jesus, of his own
admission, did not know when the day of judgment would be, is clear
proof that Jesus is not all-knowing, and that Jesus is therefore not
God.

2. God is All Powerful.but Jesus was not
While Jesus performed many miracles, he himself admitted that the
power he had was not his own but was derived from God when he said,
"Verily, verily I say unto you, the Son can do nothing of himself, but
what he seeth the Father do..." St. John 5:19. Again he said, "I can
of mine own self do nothing: as I hear I judge: and my judgment is
just; because I seek not mine own will, but the will of the Father
which hath sent me." St. John 5:30. But God is not only all-powerful,
He is also the source of all power and authority. That Jesus, of his
own admission, could do nothing on his own is clear proof that Jesus
is not all-powerful, and that therefore Jesus is not God.

3. God does not have a God.but Jesus did have a God.
God is the ultimate judge and refuge for all, and He does not call
upon nor pray to any others. But Jesus acknowledged that there was one
whom he worshipped and to whom he prayed when he said, "l ascend unto
my Father and your Father, and to my God and your God." St. John
20:17. He is also reported to have cried out while on the cross, "My
God, my God why hast thou forsaken me?" Matt 27:46. If Jesus were God,
then couldn't this be read, "Myself, myself why hast thou forsaken
me?" Would that not be pure nonsense? When Jesus prayed the Lord's
prayer (Luke 11:2-4), was he praying to himself? When in the garden of
Gethsemane he prayed, "O my Father, if it be possible, let this cup
pass from me: Nevertheless not as I will but as thou wilt." Matt
26:36-39. Was Jesus praying to himself? That Jesus, of his own
admission and by his own actions, acknowledged, worshipped, and prayed
to another being as God is clear proof that Jesus himself is not God.

4. God is an invisible spirit.but Jesus was flesh and blood
While thousands saw Jesus and heard his voice, Jesus himself said that
this could not be done with God when he said. "No man hath seen God at
any time." St. John 1:18. '"Ye have neither heard His voice at any
time nor seen His shape." St. John 5:37. He also said in St. John
4:24. "God is a spirit and they that worship him must worship him in
spirit and in truth." That Jesus would say that no one had seen or
heard God at any time, while his followers both saw and heard him, is
clear proof that Jesus was not God.

5. No one is greater than God and no one can direct Him but Jesus
acknowledged someone greater than himself whose will was distinct from
his own.
Perhaps the clearest indication we have that Jesus and God are not
equal, and therefore not one and the same, come again from the mouth
of Jesus himself who said in St. John 14:28, "My Father is greater
than I." When someone referred to him as good master in Matt 19:17,
Jesus responded, "Why callest thou me good? There is none good but
one, that is God..." Furthermore, Jesus drew clear distinctions
between himself and God when he said, "I proceeded forth and came from
God, neither came I of myself but He sent me." St. John 8:42. Jesus
gave clear evidence of his subordination to God, rather than his
equality with God,when he said in Luke 22:42, "not my will but thine
be done" and in St. John 5:30, "I seek not mine own will but the will
of the Father which hath sent me." That Jesus would admit that he did
not come into the world on his own initiative but was directed to do
so, that he would acknowledge another being as greater than himself,
and that he would negate his own will in deference to affirming the
will of another, give clear proof that Jesus is not the Supreme One
and therefore Jesus is not God.

Conclusion
The Church recognizes the Bible as the primary source of knowledge
about God and Jesus. But since the Bible makes it clear that Jesus is
not the Supreme Being and the Supreme Being is not Jesus, upon what
basis have you come to believe otherwise?

My brother or sister, the belief that the Supreme Being is a Trinity
is false and completely inconsistent with the words of Jesus as
presented in the Bible. God is one, not three. He is a perfect unity.

If you are interested in the truth 

Re: Caching when caching is disabled

2007-12-07 Thread JLathem

Karen,
Thanks for your help. That was just a simplified example to show my
point but your suggestion was the problem I was facing.

Jon

On Dec 7, 11:54 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Dec 6, 2007 1:43 PM, JLathem <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I have a template that extends another.  Each template have variables
> > in them.  When the variable in the parent template changes the HTML is
> > not updated.  That is to say, a variable in the parent page is set to
> > X I view the page for the first time and I see X.  The vale of the
> > variable changes to Y.  I view the page and I see X.  I am not using
> > any Django caching libraries and I clear my browser cache in between
> > invocations of the page.  I am using Apache, Mod_Python, and trunk of
> > the Django SVN.  Below is a small example that demonstrates what I am
> > talking about.
>
> > urls.py (snippet)
> > (r'^test/$', 'django.views.generic.simple.direct_to_template',
> > {'extra_context':{"var":datetime.datetime.now(),
> > "var2":datetime.datetime.now().second}, 'template':'test2.html'}),
>
> > test1.html
> > {{var2}}|{%block rep%}{%endblock%}
>
> > test2.html
> > {%extends "test1.html"%}{%block rep%}{{var}}{%endblock%}
>
> > Is this problem caused by the caching of parsed templates?  Should
> > parent pages not contain variables?  Thanks for any help you guys can
> > give me.
>
> This has nothing to  do with caching.  The code in your urls.py that sets
> var and var2 is executed only once, when urls.py is first imported.  This
> code does not get re-executed every time urls.py is consulted for url
> matching.  This is just how Python works.  Note as described here:
>
> http://www.djangoproject.com/documentation/generic_views/
>
> in the description of extra_context, the values you specify may be
> functions.  These functions are then evaluated just before they are passed
> to the template.  This is the approach you need to use for passing current
> time information.
>
> Karen
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Caching when caching is disabled

2007-12-07 Thread Karen Tracey
On Dec 6, 2007 1:43 PM, JLathem <[EMAIL PROTECTED]> wrote:

>
> I have a template that extends another.  Each template have variables
> in them.  When the variable in the parent template changes the HTML is
> not updated.  That is to say, a variable in the parent page is set to
> X I view the page for the first time and I see X.  The vale of the
> variable changes to Y.  I view the page and I see X.  I am not using
> any Django caching libraries and I clear my browser cache in between
> invocations of the page.  I am using Apache, Mod_Python, and trunk of
> the Django SVN.  Below is a small example that demonstrates what I am
> talking about.
>
> urls.py (snippet)
> (r'^test/$', 'django.views.generic.simple.direct_to_template',
> {'extra_context':{"var":datetime.datetime.now(),
> "var2":datetime.datetime.now().second}, 'template':'test2.html'}),
>
> test1.html
> {{var2}}|{%block rep%}{%endblock%}
>
> test2.html
> {%extends "test1.html"%}{%block rep%}{{var}}{%endblock%}
>
>
> Is this problem caused by the caching of parsed templates?  Should
> parent pages not contain variables?  Thanks for any help you guys can
> give me.
>

This has nothing to  do with caching.  The code in your urls.py that sets
var and var2 is executed only once, when urls.py is first imported.  This
code does not get re-executed every time urls.py is consulted for url
matching.  This is just how Python works.  Note as described here:

http://www.djangoproject.com/documentation/generic_views/

in the description of extra_context, the values you specify may be
functions.  These functions are then evaluated just before they are passed
to the template.  This is the approach you need to use for passing current
time information.

Karen

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 6, 2007 8:01 PM, ttk <[EMAIL PROTECTED]> wrote:

>
> I think I found my problem...
>
> I failed to add "objects = models.Manager()" into my models which
> would explain why that attribute isn't found.
>
> I'll try this out but if anyone has additional suggestions, I'm all
> ears.


Seems dumpdata is coded to require a Manager named 'objects' for the Models
it dumps, even though (as described here:
http://www.djangoproject.com/documentation/model-api/#manager-names), Django
does not require that a Manager named objects exists for all Models.
Whether this is just an oversight in dumpdata or a conscious decision I
can't say, though it looks like an oversight to me.

Karen

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



To Django Developers in the Boston Area

2007-12-07 Thread Mendel

My name is John Mendelewski, and I am currently attending Northeastern
University in Boston, MA. I am in a student group called ACM, the
Association for Computing Machinery. It is basically the computer
science student group for the college. Throughout the year, we have
professionals and professors come to the school and discuss different
things in CS. We have had a myriad of topics discussed, most recently
Scheme, from none other than Guy Steele Jr. It would be great if there
could be a talk on campus about the Django framework.

I feel that Python is an under-appreciated topic on my campus. From
who I have talked with, there seems to be a large Ruby and Rails
gathering within the major. Not many people know about Python or
Django. A talk about the framework would help get more people
interested in Python on campus.

What I am asking for is someone who is highly familiar with Django and
Python, and who is confident enough to give a 30 to 40 minute talk
highlighting the software and going over its use. Living in the Boston
metro area would probably be convenient for the speaker, since the
talk will be held on campus. If you feel you know Django like the back
of your hand, and could captivate an audience of CS students for 40
minutes, feel free to email me at [EMAIL PROTECTED] More
details will be supplied to those who respond.

Thanks everyone, and happy coding.
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-07 Thread Shev

Yes, thanks, I'd agree and understand that whatever is in the
models.py cannot and should not override what's specified in the
database.

In this case, a NULL for my BooleanField() is actually allowed in the
Postgres database as well.  And given the error message, it would seem
to be a problem with the loaddata serializer/deserializer, which
doesn't expect anything but T/F for a BooleanField().



On Dec 6, 6:27 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-12-06 at 14:38 -0800, Shev wrote:
>
> [...]
>
> > Regardless, I don't see why the loaddata command should choke on a
> > null value for a Boolean if the models.py allows it.
>
> This is a mistaken assumption. Since some of the constraints specified
> in models.py are enforced at the database level, if your database column
> does not exactly match what is in models.py, you will see errors. Django
> cannot (will not) override the database in that respect. I don't know if
> your original error was raised from the database server or before it got
> to that point, but it's quite possible and normal for something to be
> impossible because the database column doesn't permit it, even if you've
> messed around with models.py to allow it.
>
> Malcolm
>
> --
> Many are called, few volunteer.http://www.pointy-stick.com/blog/
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread sector119

more errors.. when I try to retrive some data:
% python2.5 manage.py shell
>>> from organizations.models import Organization
>>> offices = list(Organization.objects.all())

  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 524, in find_ordering_name
order))
  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 524, in find_ordering_name
order))

 more and more lines ..

  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 524, in find_ordering_name
order))
  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 514, in find_ordering_name
alias, False)
  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 856, in setup_joins
alias = self.join((alias, table, from_col, to_col))
  File "/home/sector119/devel/django_src/django/db/models/sql/
query.py", line 608, in join
aliases = self.join_map.get(t_ident)
RuntimeError: maximum recursion depth exceeded in cmp
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread sector119

When I try to use admin in queryset-refactor branch I get errors with
handle_legacy_orderlist.
It was removed from django.db.models.query, but still use in django/
contrib/admin/views/main.py at ChangeList.get_ordering..

On 7 Грд, 01:21, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Thu, 2007-12-06 at 21:21 +0530, Kenneth Gonsalves wrote:
>
> > On 06-Dec-07, at 9:04 PM, Empty wrote:
>
> > >http://www.mail-archive.com/django-users@googlegroups.com/
> > > msg37967.html
>
> > > and this:
>
> > >http://www.djangoproject.com/documentation/db-api/#order-by-fields
>
> > read it, implemented it - still get the same error
>
> The mail post that Michael pointed to includes a reference to ticket
> #2076. It looks a lot like the original poster has rediscovered that
> bug.
>
> Malcolm
>
> --
> I intend to live forever - so far so good.http://www.pointy-stick.com/blog/
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: serving static files with apache on windows with mod_python

2007-12-07 Thread Empty

> to the apache httpd.conf file
> but when i turn off debug in the settings file as well as turning
> PythonDebug Off in the httpd.conf,
> my media files (css,images,...) disappear.
> I have also done
> 
> SetHandler None
> 
> as well as
> 
> SetHandler None
> 
> I have read that my media files should be symlinked to my apache docroot,
> and got a tool 'junction' for doing that
> on winnt. however, i could not make head or tail of it as the docs are not
> very clear to me
> Can somebody help me please?
> Also have been trying to get #django on ircnode ercently but can't, any

IRC is working fine, there are a bunch of us on there now.  Hop on so
we can walk you through this.

If you still can't get on then please dpaste your httpd.conf, the
whole thing for you django project.  Also we will need your
settings.py file.

Michael Trier
blog.michaeltrier.com

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread l5x

I suppose that you should take a look at 
http://www.djangoproject.com/documentation/flatpages/
as well.
It will give you the basic possibilty to manage the content, than you
can extend it while learning more.

Best regards,
l
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mark form field as required in markup

2007-12-07 Thread l5x

You also do this like that:

class CommentForm(forms.Form):
name = forms.CharField(
widget=forms.TextInput(attrs={'class':'special'}))
url = forms.URLField()
comment = forms.CharField(
   widget=forms.TextInput(attrs={'size':'40'}))


'class':'special' -- it marks your field with the class
'special' (example straight from Django documentation)

http://www.djangoproject.com/documentation/newforms/#creating-custom-fields

Best regards,
l
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



overriding User model list_display and fields in Admin

2007-12-07 Thread l5x

Hello,

I couldn't find the information how to override the 'list_display' and
'fields' of the Django (SVN) User model in Admin interface.

I need to display User altogether with his two profiles. I know that
there is a get_profile(), but I want to display everything related to
User in the Admin, in one place (the same for adding/changing).  Is
there any way to do that? Can I subclass it somehow in a way that it
will work with further Django releases?

If not, is there a possibility to display on the first profile a link
to another profile and vice versa? How can I do that?

If there is no possibility, I suppose the only solution will be to
join these two profiles and show information from the User model in
custom list_display of that 'super profile'.

Any ideas? If my thinking is incorrect, please feel free to correct me.
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Fwd: serving static files with apache on windows with mod_python

2007-12-07 Thread bayo



--- Forwarded message ---
From: bayo <[EMAIL PROTECTED]>
To: django-users@googlegroups.com
Cc:
Subject: serving static files with apache on windows with mod_python
Date: Fri, 07 Dec 2007 14:42:02 +0100

Hi All,
I have been trying to setup django on windowsxp with mod_python.
I have got mod_python3.3.1 running on Apache2.
My django project is also running except for the media files which are
giving me quite a headache
i have added

...
...

to the apache httpd.conf file
but when i turn off debug in the settings file as well as turning
PythonDebug Off in the httpd.conf,
my media files (css,images,...) disappear.
I have also done

SetHandler None

as well as

SetHandler None

I have read that my media files should be symlinked to my apache docroot,
and got a tool 'junction' for doing that
on winnt. however, i could not make head or tail of it as the docs are not
very clear to me
Can somebody help me please?
Also have been trying to get #django on ircnode ercently but can't, any
reasons?



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mark form field as required in markup

2007-12-07 Thread Empty

Well each field has and id that in your case here appears as 'id_age'.
 So you can attach a style sheet item to that field directly but that
will not do anything for the whole row.

If you just wanted to add something to the label like 'Age *" so the
user can see that it's required that way, then use the label_suffix
option when creating the form.

If you want to customize the output of the form, you either have to
write out the contents yourself
(http://www.djangoproject.com/documentation/newforms/#complex-template-output),
or create your own as_??? construct that give you what you want.

Michael Trier
blog.michaeltrier.com

On Dec 7, 2007 5:27 AM, Frank 7200 <[EMAIL PROTECTED]> wrote:
> Hi group,
> another question. Is there a way how to pass an information to markup that a
> form field is required?
>
> I have this form with one field, which is required (default value).
>
> class CustomForm(forms.Form ):
>  age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)
>
> 
> {{ form.as_table}}
> 
>
> This is what appears in the markup
> <
> tr>Age: label> id="id_age">
>  "1" selected="selected">0-3
>
> I would need something like  because I would like
> to highlite the whole table row. Or at least 
>
> How can I do that?
>
> Thanks for any advice,
> Frank
>
>  >
>

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Peter Herndon

Hi Michael,

> I've been wanting to get into Python, thinking it could be good for
> certain interactivity which I haven't implemented really in my sites,
> DB access, forms.

Indeed, Python in general and Django in particular are quite good for
these sorts of features.

> But I have a site design to do where the company rents corporate short-
> term housing.  I want to create about 10 pages, a few of them
> editable, and maybe explore doing a properties database and multiple
> contact forms.
>
> Am I crazy to be thinking about using Django for this at my skill
> level?  I installed Plone locally to play around, seems good, but
> maybe too much overhead.

Crazy?  Not at all.  This project sounds like a very good way to get
started learning Python and Django.  The caveat, though, is your time
frame.  If your client needs this site up and running *now*, or within
a short time-frame, this might not be the best time to start learning
both a new language and a new web framework.  On the other hand, if
you are a self-starter and intellectually curious, there's nothing
like a deadline for providing motivation.

> If I want to use Django, do I have to some up with some kind of
> database setup to list properties with a picture?

The short answer is yes.  The longer answer is, strictly speaking, I
imagine it's possible to use Django without a database, but doing so
would be going against the intent of the framework.

> Where might I begin
> to do this for the first time?

This depends very much on your hosting setup.  I'll leave to others a
discussion of the relative merits of various hosting companies, and
you
 will find much discussion on that very topic in the list archives.
In general, though, Python 2.5 comes with bindings for sqlite and the
sqlite engine -- "batteries included" and all that -- which, for
exploration and learning purposes, should be enough to start.  I would
strongly recommend *against* using sqlite as your production database,
though.

> Will I be able to quickly make the main HTML page template and add
> content to it, or is that not how this works?

Yes, that is exactly how it works.  You can set up a site-specific
template, and create pages that pull in that template.  The template
documentation is here:
http://www.djangoproject.com/documentation/templates/

I'd also suggest you work your way through the tutorial, as it covers
the basic aspects of building a Django-powered site.

---Peter

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: get choice value in Form

2007-12-07 Thread Tim Chase

> # Assume these are key-value pairs
> AGE_CHOICES=(
> (1, '0-3'),
> (2, '3-6'),
> (3, '6-15'),
> )
> 
> class CustomForm(forms.Form):
> age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)
> 
> How can I get the value (not the key) of the age attribute after validation?
> 
> if f.is_valid():
> cd = f.cleaned_data
> 
> cd['age'] # returns the "key", not the value

Given that your choices are linear starting with one, you can do
something like

 AGE_CHOICES[int(cd['age'])-1]

For the more general case you'd want to create a dict() to do the
mapping for you, but you need to insure the key is of the same
type (int vs. string).  I have the following pattern in my code
quite a bit:

  FOO_A = 'a'
  FOO_B = 'b'
  FOO_C = 'c'

  FOO_CHOICES = {
FOO_A: 'This is A",
FOO_B: 'This is B's description",
FOO_C: 'This is my C",
}

  class MyModel(Model):
foo = CharField(..., choices = FOO_CHOICES.items())
  :
  :
  foo = my_form.cleaned_data['foo']
  my_foo_desc = FOO_CHOICES.[foo]

If order matters, you can use

  choices=sorted(FOO_CHOICES.items())
or
  choices=sorted(FOO_CHOICES.items(), key=lambda x:x[1])

as  your "choices" clause to sort them (the first by key, the
second by value), as dicts aren't guaranteed to be ordered.

Hope this helps,

-tim




--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Gustavo Orrillo
Michael,

Plone and Django will do the job

2007/12/7, michaelbuddy <[EMAIL PROTECTED]>:
>
>
> I'm ok in CSS, HTML, I use a text editor to make sites, typically I've
> been using a wiki framework called pmwiki created in PHP and is pretty
> nice.  But it doesn't have an RTF editor.
>
> I've been wanting to get into Python, thinking it could be good for
> certain interactivity which I haven't implemented really in my sites,
> DB access, forms.
>
> Things about Django I think I like, Clean URLs, Python seems like the
> best way to do a lot of things with shorter readable code.
>
> But I have a site design to do where the company rents corporate short-
> term housing.  I want to create about 10 pages, a few of them
> editable, and maybe explore doing a properties database and multiple
> contact forms.
>
> Am I crazy to be thinking about using Django for this at my skill
> level?  I installed Plone locally to play around, seems good, but
> maybe too much overhead.
>
> If I want to use Django, do I have to some up with some kind of
> database setup to list properties with a picture? Where might I begin
> to do this for the first time?
>
> Will I be able to quickly make the main HTML page template and add
> content to it, or is that not how this works?
>
> any help appreciated.
> >
>

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



New German speaking mailinglist for Django in Berlin

2007-12-07 Thread djb

There ist a new German speaking mailinglist for Django users in
Berlin, Germany,
and its neighbourhood. The current description in German reads as
follows:

"""
Dies ist eine deutschsprachige Liste zu Django, einem Web-Application-
Frame-
work, speziell für den Austausch zwischen Django-Benutzern und die
Verbreitung
von Information zu Django-Veranstaltungen in Berlin und Umgebung.
Wegen der
anhaltenden Spam-Problematik dürfen nur abonnierte Mitglieder
Nachrichten auf
dieser Liste verschicken und in deren Archiv lesen.
"""

You can find the Mailman page for this list here for subscribing
yourself:

 
http://mailman.django.in-berlin.de/mailman/listinfo/django-benutzer-django.in-berlin.de

And you can post messages (preferrably in German) to the following
address:

 [EMAIL PROTECTED]

Enjoy!
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



mark form field as required in markup

2007-12-07 Thread Frank 7200
Hi group,
another question. Is there a way how to pass an information to markup that a
form field is required?

I have this form with one field, which is required (default value).

class CustomForm(forms.Form):
age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)


{{ form.as_table}}


This is what appears in the markup

Age:
0-3


I would need something like  because I would like
to highlite the whole table row. Or at least 

How can I do that?

Thanks for any advice,
Frank

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



get choice value in Form

2007-12-07 Thread Frank 7200
Hi group,
I have a form (from newforms) with choices

# Assume these are key-value pairs
AGE_CHOICES=(
(1, '0-3'),
(2, '3-6'),
(3, '6-15'),
)

class CustomForm(forms.Form):
age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)

How can I get the value (not the key) of the age attribute after validation?

if f.is_valid():
cd = f.cleaned_data

cd['age'] # returns the "key", not the value

Thanks,
Frank

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---