Need Drop down menu code

2008-12-18 Thread Ana

Hello,

I have a table Technology:
id
technology

What is the code to place in view.py to create a drop down menu on the
index.html page, so a user can select a value from the technology
list.  How do I write the drop down menu on the index page to then
retrieve the value from the drop down menu.  This question seems like
it should be a typical example in a tutorial, but I cannot locate a
straightforward example of how to do this.  I am new to python and
django, so am taking baby steps forward.

Thanks,

Ana

--~--~-~--~~~---~--~~
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: Need Drop down menu code

2008-12-18 Thread Justin Myers

> How do I write the drop down menu on the index page to then
> retrieve the value from the drop down menu.  

Django itself won't generate the dropdowns for you--that's a template
issue. What you'd want to do is generate the markup (i.e., a list
within  tags or something similar) with Django and then use some
sort of CSS (the Suckerfish Dropdowns at 
http://www.alistapart.com/articles/dropdowns/
are rather popular) to turn that into dropdowns.

Hope that helps!

-Justin
--~--~-~--~~~---~--~~
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: Need Drop down menu code

2008-12-18 Thread Ana

Hello Justin,

This seems very complicated for a drop down menu.  Will my travels
through Django be this complex?  I'm coming from a php environment and
have been very impressed by Django admin page and inheritance of
base.html, but now that I'm trying to write my own views and templates
I'm hitting brick walls on the learning curve.  Is there anyway to see
the drop down menu code on the admin page or is it dynamically created
on the fly?  The django tutorials seem very limiting when it comes to
the application of creating the web page (views and templates).
Sorry, I'm asking so many questions, but I have to decide in the next
few weeks whether to continue pursuing Django or stay with PHP.

Thanks,

Ana

On Dec 18, 9:47 am, Justin Myers  wrote:
> > How do I write the drop down menu on the index page to then
> > retrieve the value from the drop down menu.  
>
> Django itself won't generate the dropdowns for you--that's a template
> issue. What you'd want to do is generate the markup (i.e., a list
> within  tags or something similar) with Django and then use some
> sort of CSS (the Suckerfish Dropdowns 
> athttp://www.alistapart.com/articles/dropdowns/
> are rather popular) to turn that into dropdowns.
>
> Hope that helps!
>
> -Justin
--~--~-~--~~~---~--~~
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: Need Drop down menu code

2008-12-18 Thread Dj Gilcrease

Do you mean a select form item or a mouse over drop down menu?

If you mean a select dropdown an example http://dpaste.com/hold/100463/


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



Re: Need Drop down menu code

2008-12-18 Thread Ana

Hello Dj,

Yes, this is what I need.  I just have to get it working and I will be
on my way.

Thanks,

Ana

On Dec 18, 10:35 am, "Dj Gilcrease"  wrote:
> Do you mean a select form item or a mouse over drop down menu?
>
> If you mean a select dropdown an examplehttp://dpaste.com/hold/100463/
>
> Dj Gilcrease
> OpenRPG Developer
> ~~http://www.openrpg.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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---