school solutions

2009-10-12 Thread jhugo

Hi,

I was wondering if there is a project based on Django for schools that
manages enrollment, grades, billing, etc.

JHM
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: rendering a table

2009-09-27 Thread jhugo

What i want to display as a table is the fallowing:

rows---row---   row ---row
   |   |   |
   number1  name1   date1
   number2  name2   date2
   number3  name3   date3

Now when django renders my template i get this:

number1  name1   date1
number1  name1   date1 number2  name2   date2
number1  name1   date1 number2  name2   date2 number3  name3   date3

Is this better? I am not getting why i am getting this behavior?

On Sep 27, 5:48 am, Léon Dignòn <leon.dig...@gmail.com> wrote:
> Could you post your list and your output please?
>
> On Sep 27, 2:04 am, jhugo <jhmur...@gmail.com> wrote:
>
> > Hi,
>
> > I want to render a table using a list of list. What I do is create a
> > list for the rows and append another list for the columns. I use two
> > fors in my template to render the table and as the first loop progress
> > the second always renders the values from the beginning and a i end up
> > having my rows incrementing in length. Why is this?
>
> > this is what i have:
>
> > {% for row in rows %}
> > 
> > {% for value in row %}
> > {{ value }}
> > {% endfor %}
> > 
> > {% endfor %}
>
> > Thanks,
>
> > -- Hugo
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



rendering a table

2009-09-26 Thread jhugo

Hi,

I want to render a table using a list of list. What I do is create a
list for the rows and append another list for the columns. I use two
fors in my template to render the table and as the first loop progress
the second always renders the values from the beginning and a i end up
having my rows incrementing in length. Why is this?

this is what i have:

{% for row in rows %}

{% for value in row %}
{{ value }}
{% endfor %}

{% endfor %}


Thanks,

-- Hugo
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: djangoplus widget

2009-06-25 Thread jhugo

I found a sample contained in a rar archive with a media file included
(2 css and js) which the svn source does not have.
I changed my urls, forms and base.html to reflect that from the
example but when i reload the page it changes the default m2m field
with a text field with a plus sign next to it. If i try to add
something nothing happens.

Here's the example:

forms.py

from django import forms

from apps.spares.models import Category, Spare
from ajax_m2m_widget import AjaxMultiSelect

class MyForm(forms.Form):
spares = forms.Field(widget=AjaxMultiSelect(db_field.verbose_name,
Spare, '/spares/spare/auto/'))
categories = forms.Field(widget=AjaxMultiSelect
(db_field.verbose_name, Category, '/spares/category/auto/'))

urls.py

from django.conf.urls.defaults import *

from apps.utils.ajax_m2m_widget import auto_complete_view
from models import Spare, Category

def spare_auto_query_func(q):
return Spare.objects.filter(name__startswith=q)

def category_auto_query_func(q):
return Category.objects.filter(name__startswith=q)

urlpatterns = patterns('apps.spares.views',
(r'^spare/auto/$', auto_complete_view, {'query_func':
spare_auto_query_func, 'desc_field': 'name', 'id_field': 'id'}),

(r'^category/auto/$', auto_complete_view, {'query_func':
category_auto_query_func, 'desc_field': 'name', 'id_field': 'id'}),

last i added the fallowing to my base.html







thanks,

regards,

On Jun 25, 11:45 am, jhugo <jhmur...@gmail.com> wrote:
> I want to use this widget instead of the default one from the many to
> many field but don't know how to. Do you have an example that can get
> me started.
>
> Thanks,
>
> - Hugo
>
> On Jun 25, 11:39 am, "Gabriel ." <gabriel@gmail.com> wrote:
>
> > On Thu, Jun 25, 2009 at 12:33 PM, jhugo<jhmur...@gmail.com> wrote:
>
> > > Hi,
>
> > > I am trying to use the ajax_m2m_widget from djangoplus but there is
> > > very little information could anyone help me?
>
> > > Thanks,
>
> > That depends of what kind of help do you need. Please be more specific.
>
> > --
> > Kind Regards
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: djangoplus widget

2009-06-25 Thread jhugo

I want to use this widget instead of the default one from the many to
many field but don't know how to. Do you have an example that can get
me started.

Thanks,

- Hugo

On Jun 25, 11:39 am, "Gabriel ." <gabriel@gmail.com> wrote:
> On Thu, Jun 25, 2009 at 12:33 PM, jhugo<jhmur...@gmail.com> wrote:
>
> > Hi,
>
> > I am trying to use the ajax_m2m_widget from djangoplus but there is
> > very little information could anyone help me?
>
> > Thanks,
>
> That depends of what kind of help do you need. Please be more specific.
>
> --
> Kind Regards
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



djangoplus widget

2009-06-25 Thread jhugo

Hi,

I am trying to use the ajax_m2m_widget from djangoplus but there is
very little information could anyone help me?

Thanks,

-Hugo
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---