Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Miracle
Have you tried the same drop down menu code in a plain html file? Without django involved. Just create a html file, put the menu code and boostrap code and test if it works in the first place. This issue might be the dropdown configuration. On Sun, 17 May 2020, 10:49 am Miracle, wrote: >

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Miracle
Hey Sunday, Please check this... https://stackoverflow.com/a/61849839/11000813 On Sun, 17 May 2020, 10:28 am sunday honesty, wrote: > Thanks for replying... > I just downloaded it now following the guide on the doc you sent me. > I have added it to my installed app and requirements.txt. > I lo

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Kasper Laudrup
Hi Sunday, On 17/05/2020 11.27, sunday honesty wrote: Thanks for replying... I just downloaded it now following the guide on the doc you sent me. I have added it to my installed app and requirements.txt. I loaded it at the top of my template and it didn't work. I then included it in the {% bloc

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread sunday honesty
Thanks for replying... I just downloaded it now following the guide on the doc you sent me. I have added it to my installed app and requirements.txt. I loaded it at the top of my template and it didn't work. I then included it in the {% block content %} as suggested by a member here yesterday, yet

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Kasper Laudrup
Hi Sunday On 17/05/2020 08.33, sunday honesty wrote: That's what I did... But the question is do I need to download django-bootstrap with pip before I can use compiled bootstrap I have downloaded? Isn't django-bootstrap different from bootstrap? The compiled bootstrap you have downloaded is

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
That's what I did... But the question is do I need to download django-bootstrap with pip before I can use compiled bootstrap I have downloaded? Isn't django-bootstrap different from bootstrap? On Sun, May 17, 2020, 2:49 AM Clive Bruton wrote: > > On 16 May 2020, at 15:43, sunday honesty wrote: >

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:43, sunday honesty wrote: I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" "bootstrap4" -- Clive -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Not quite sure on that. Usually what I do is the process that you just mentioned and what we did earlier for all the packages that I use. On Sat, May 16, 2020, 23:10 sunday honesty wrote: > I saw "pip install django-bootstrap4" > > After installing, I should load bootstrap > Then I could add boo

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I saw "pip install django-bootstrap4" After installing, I should load bootstrap Then I could add bootstrap form. Other tutorials I have seen don't require downloading bootstrap since I have doneloaded the compiled bootstrap and added it to the static folder of my Django project. If really I must

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
All right On Sat, May 16, 2020, 3:49 PM Simon A wrote: > Try to run the pip install command if you havent already. Check the > correct command to install bootstrap3 or 4 if forgot the complete package > name. > > On Sat, May 16, 2020, 22:45 sunday honesty > wrote: > >> I included it to installe

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to run the pip install command if you havent already. Check the correct command to install bootstrap3 or 4 if forgot the complete package name. On Sat, May 16, 2020, 22:45 sunday honesty wrote: > I included it to installed app and got an error message on the console. > "Module not found, no

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" On Sat, May 16, 2020, 3:31 PM Clive Bruton wrote: > > On 16 May 2020, at 15:03, sunday honesty wrote: > > > I did that and got a TemplateSyntaxError stating that bootstrap4 is

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:03, sunday honesty wrote: I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library Did you put it in your installed_apps? -- Clive -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Is it in you installed apps? On Sat, May 16, 2020, 22:04 sunday honesty wrote: > I did that and got a TemplateSyntaxError stating that bootstrap4 is not a > registered tag library > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group

Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+un

Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to include the dependencies inside the block content. Here is what I did {% block content %} {% load bootstrap3 %} {% bootstrap_css %} {% bootstrap_javascript %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Bootstrap drop down menu not clickable.

2020-05-15 Thread sunday honesty
t the body before closing body. When I try adding nav bar and drop-down menu, every other things worked except for the dropdown. If I click on the item that should reveal the dropdown items, it's simply not showing anything but append # to my home url at the tab. That is, before, my ho

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Mugabi Timothy
you can use the above list dropdown but use the templating engine in django On Mon, Sep 9, 2019 at 12:00 PM Mugabi Timothy wrote: > >> https://example.com"; id="dropdown01" data-toggle="dropdown" >> aria-haspopup="true" aria-expanded="false">welcome >> {{request.user.us

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Tosin Ayoola
I feel bootstrap can handle that On Sep 9, 2019 09:28, "Sandip Nath" wrote: > Am new to Django. Am trying to build a car rental web site. After logging > in the home page navbar at the top is showing the "hello " as > expected. But I want a drop-down menu from th

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Gil Obradors
howing the "hello " as > expected. But I want a drop-down menu from that welcome message which will > contain the user edit profile option, his/her bookings and a logout > options. I have created edit profile and logout features but they are > separately shown. How can I br

How to create a a drop-down menu from the logged in username

2019-09-09 Thread Sandip Nath
Am new to Django. Am trying to build a car rental web site. After logging in the home page navbar at the top is showing the "hello " as expected. But I want a drop-down menu from that welcome message which will contain the user edit profile option, his/her bookings and a logout optio

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-15 Thread mab . mobile . 01
Hello Nelson, I may need you to walk me through this more. I am relatively new to Django. I modified my admin.py and added from django import forms and added the following code in the admin.py file. It's still giving me an error ... "type object 'EmployeeSchedule' has no attribute 'events'" I

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-15 Thread mab . mobile . 01
Thank you Nelson. I will try this option. On Friday, October 12, 2018 at 9:57:31 AM UTC-5, Nelson Varela wrote: > > You could make a custom form for your admin which is a model form which >> points to EmployeeSchedule. And in the form its init you can change the >> queryset of the events field:

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-12 Thread Nelson Varela
> > You could make a custom form for your admin which is a model form which > points to EmployeeSchedule. And in the form its init you can change the > queryset of the events field: > self.fields['events'].queryset = WineryEvents.objects.filter(publish='Y'). filter(event_date__gte=datetime.now(

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-11 Thread Derek
Your question does not make sense (as written): "To add a new event I would like to pick from a drop down list of only the events that are in the future" .. Why should adding a new event depend on you selecting another event? Are the events related or dependant in some way; that is not clear?

Django Admin Filtering Drop Down Menu by Date

2018-10-09 Thread mab . mobile . 01
Hello, I am trying to develop an employee schedule based on upcoming events and I only need to make additions or updates in Django Admin. To add a new event I would like to pick from a drop down list of only the events that are in the future or on todays date not the entire table list of event

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
class EvalState(models.Model,AtlasBaseHelper): """ Represents Eval State: ACTIVE INACTIVE DELETE NA """ name = models.CharField(max_length=32, unique=True) friendly_name = models.CharField(max_length=32, unique=True) description = models.CharField(max_length=

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread lemme smash
you didn't show me a model structure, you just showed another model, so I can't give you example without picture of what's going on there On Monday, August 7, 2017 at 1:39:49 PM UTC+3, Arun S wrote: > > Can you just give an Example for this taking a Query. > > > > On Monday, August 7, 2017 at 3:3

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
Can you just give an Example for this taking a Query. On Monday, August 7, 2017 at 3:37:04 PM UTC+5:30, lemme smash wrote: > > i meant EvalState model > if name attribute on it is a ForeignKey you should get corresponding > queryset of model it links to > if it's charfield, you should use text

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread lemme smash
i meant EvalState model if name attribute on it is a ForeignKey you should get corresponding queryset of model it links to if it's charfield, you should use text choices On Monday, August 7, 2017 at 6:22:50 AM UTC+3, Arun S wrote: > > The Models Look like this : > > stage_state = models.ForeignK

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread Arun S
The Models Look like this : stage_state = models.ForeignKey(EvalState, verbose_name="Eval State") class Bundle(AtlasAuditModel, AtlasBaseHelper):^M """^M Represents the bundle purchased by the customer. The bundle^M contains a reference identifier which remains the same if the^M th

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread lemme smash
so, you can maybe show you models structure here? also, if it is a ForeignKey, why you trying to filter qs by string values? I mean Q(name = 'ACTIVE') it's shouldn't work On Sunday, August 6, 2017 at 5:22:21 AM UTC+3, Arun S wrote: > > Yes, name is a foreign key here. -- You received this mess

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread Arun S
Yes, name is a foreign key here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread lemme smash
3, Arun S wrote: > > Hi, > > I am trying to have a drop down menu for a field in my form but seems like > its not working as required. > > This is my form: forms.py > > eval_states = [ > ('ACTIVE',EvalState.objects.filter(name='ACTIVE'

Drop Down Menu in Django Forms not working.

2017-08-04 Thread Arun S
Hi, I am trying to have a drop down menu for a field in my form but seems like its not working as required. This is my form: forms.py eval_states = [ ('ACTIVE',EvalState.objects.filter(name='ACTIVE')), ('INACTIVE',EvalState.objects.filter(name=

Re: template drop down menu

2017-06-06 Thread sum abiut
se javascript to filter the data > according to the value of the select. With no request to your server, > data will be updated really fast. That solution work really well for > small to medium amount of data. > > 2017-06-06 7:40 GMT+02:00 sum abiut : > > Hi, > > need some

Re: template drop down menu

2017-06-06 Thread Bernd Wechner
...@gmail.com>>: > Hi, > need some directions, i need to query the my database and display the result > of the query in the table. to do that i want to use a drop down menu and get > the users to select options from the drop menu on the template. >

Re: template drop down menu

2017-06-06 Thread sum abiut
to the value of the select. With no request to your server, > data will be updated really fast. That solution work really well for > small to medium amount of data. > > 2017-06-06 7:40 GMT+02:00 sum abiut : > > Hi, > > need some directions, i need to query the my database and dis

Re: template drop down menu

2017-06-06 Thread ludovic coues
splay the result > of the query in the table. to do that i want to use a drop down menu and get > the users to select options from the drop menu on the template. > > for example if a user select a word from the drop down menu i want to filter > and query the database base on the optio

template drop down menu

2017-06-05 Thread sum abiut
Hi, need some directions, i need to query the my database and display the result of the query in the table. to do that i want to use a drop down menu and get the users to select options from the drop menu on the template. for example if a user select a word from the drop down menu i want to

Re: django: drop down menu not displaying on template despite correct syntax

2016-02-17 Thread jorrit787
y 16, 2016 at 2:16:17 PM UTC+1, clarkso...@gmail.com wrote: > > I have successfully configured a way to upload files to a website that I > am making. However we would like to include a drop-down menu on the site. > However, we want to include in the form of a drop-down menu called >

django: drop down menu not displaying on template despite correct syntax

2016-02-16 Thread clarksonchris81
I have successfully configured a way to upload files to a website that I am making. However we would like to include a drop-down menu on the site. However, we want to include in the form of a drop-down menu called "mismatch choice": models.py: for drop-down menu

Re: Drop down menu

2012-10-10 Thread sri
Hi, Thanks for your responses. I am looking to develop the drop down like a select box. I will read the documentation that Cal has pointed to and hopefully i should be able to work it. Thanks Sreekanth On Wednesday, 10 October 2012 13:13:37 UTC+1, jessoclarence wrote: > > Sreekanth, > > Do yo

Re: Drop down menu

2012-10-09 Thread Cal Leeming [Simplicity Media Ltd]
! Cal On Tue, Oct 9, 2012 at 7:43 PM, sri wrote: > Hi, > > I am new to Django/Web development and i am trying to create a drop down > menu in my sample website and got stuck about the best way to develop it. > > My idea is to have a drop down of the city names on the homepage. C

Drop down menu

2012-10-09 Thread sri
Hi, I am new to Django/Web development and i am trying to create a drop down menu in my sample website and got stuck about the best way to develop it. My idea is to have a drop down of the city names on the homepage. City Names can be selected from the model character field having choices

Re: Alphabetic filtering of Django Admin drop down menu

2010-12-08 Thread vjimw
t to search inside the view. > > Can you use a auto complete approach instead a drop down menu? If you > can, my suggestion is to use a jquery plugin to do the hard > work:http://docs.jquery.com/Plugins/autocomplete -- You received this message because you are subscribed to the Googl

Re: Alphabetic filtering of Django Admin drop down menu

2010-12-07 Thread Heigler
If you can't use raw_id_fields i guess you should write that view and use javascript to search inside the view. Can you use a auto complete approach instead a drop down menu? If you can, my suggestion is to use a jquery plugin to do the hard work: http://docs.jquery.com/Plugins/autocom

Alphabetic filtering of Django Admin drop down menu

2010-12-07 Thread Subramanyam
x27;t fit our requirement Is there a way that we can have alphabetic pagination in the drop down menu of Admin Thanks in advance Subramanyam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

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://dpa

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

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 tem

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 sim

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

Drop down menu using django forms

2008-07-11 Thread Django_newbie
Hey Guyz, I am trying to create a UI which has Buttons , Radio Buttons and Dropdown menu's, I need some documentation which helps me in using advance forms and explains how to design these? Thanks, Mark --~--~-~--~~~---~--~~ You received this message because you a

Re: Preselected drop-down menu value with oldforms...

2007-05-02 Thread Mike Axiak
ey are in fact the same object. Instead of errors = new_data = {}, write out: errors = {} new_data = {'drop_selection': 'US'} I hope this helps! Cheers, Mike Axiak On May 2, 9:34 pm, dbee <[EMAIL PROTECTED]> wrote: > Guys, I'm trying to preselect a value for a

Preselected drop-down menu value with oldforms...

2007-05-02 Thread dbee
Guys, I'm trying to preselect a value for a drop down menu by passing that menu a value. Problem is though, that the value comes out preselected AND it also comes out as an ***error beside the drop down menu. I'm entering the value with new_data NOT with errors... It looks something

Re: Getting values from a Drop Down menu

2006-12-16 Thread gordyt
Howdy Matt! Here is a small, complete working sample. When you initially load the page it just displays the choices and prompts you to select a value and click submit. When you submit it, it redisplays the form and then displays what choice you selected. urls.py: from django.conf.urls.defaults

Re: Getting values from a Drop Down menu

2006-12-16 Thread [EMAIL PROTECTED]
Is it still giving the same error after adding the name? Or is it a different error now? --~--~-~--~~~---~--~~ 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@goog

Re: Getting values from a Drop Down menu

2006-12-15 Thread Joseph Heck
For debugging, start by seeing what *is* in the POST dict that you get back from the request. Super simple - just print it out and see what's in there. That might give you a clue how it's interpreting it when it comes back... -joe On 12/15/06, MattW <[EMAIL PROTECTED]> wrote: > > > Sorry, should

Re: Getting values from a Drop Down menu

2006-12-15 Thread MattW
Sorry, should have made it clear on my second post in response to Massimiliano. He suggested this, and so I altered the code so it now reads: def ansQuestion(request): q = get_object_or_404(Question) answer = request.POST["answer"] A Since (at least) two people have now suggested tha

Re: Getting values from a Drop Down menu

2006-12-15 Thread Nathan R. Yergler
eem to be a bit stuck on getting the values from a Drop Down menu. > > I have a method in my views.py file which starts: > > def ansQuestion(request): > q = get_object_or_404(Question) > answer = request.POST['value'] > > and the template reads: > >

Re: Getting values from a Drop Down menu

2006-12-15 Thread Joseph Heck
You need to tell the form what the "name" of the name value pair you're using it. SInce you're trying to look it up in your code as post['answer'] (at least based on the error you posted), that should be the name that you use in the HTML input tag . On 12/15/06, MattW <[EMAIL PROTECTED]> wr

Re: Getting values from a Drop Down menu

2006-12-15 Thread MattW
Ok - sorry, could you (briefly) explain what you mean? Thanks, Matt --~--~-~--~~~---~--~~ 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 unsu

Re: Getting values from a drop-down menu

2006-12-15 Thread Joseph Heck
Where are you setting "answer" in the HTML form? It should be in there as a name="" element entry of the select tag... -joe On 12/15/06, MattW <[EMAIL PROTECTED]> wrote: > > > Dear Massimiliano, > > Thanks for that; still doesn't work, I'm afraid. > > The error is: > > MultiValueDictKeyError at /

Re: Getting values from a drop-down menu

2006-12-15 Thread MattW
Dear Massimiliano, Thanks for that; still doesn't work, I'm afraid. The error is: MultiValueDictKeyError at /mcq/ansQuestion/ "Key 'answer' not found in " Request Method: GET Request URL:http://localhost:8000/mcq/ansQuestion/ Exception Type: MultiValueDictKeyError Exception

Re: Getting values from a Drop Down menu

2006-12-15 Thread [EMAIL PROTECTED]
I think you need a name (and maybe ID) on your select box. --~--~-~--~~~---~--~~ 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 fro

Getting values from a Drop Down menu

2006-12-15 Thread MattW
Dear All, A newbie with Django, but seem to be doing with some basics so far, but seem to be a bit stuck on getting the values from a Drop Down menu. I have a method in my views.py file which starts: def ansQuestion(request): q = get_object_or_404(Question) answer = request.POST['

Re: Getting values from a drop-down menu

2006-12-13 Thread Massimiliano Ravelli
Matt Williams wrote: > > A > but I keep getting an error about an empty MultiValuedDict {}, which I > think means that I'm not getting the values back. Try: A ... and then read request.POST['letter'] Massimiliano --~--~-~--~~~---~--~~ You received this

Getting values from a drop-down menu

2006-12-13 Thread Matt Williams
Dear All, I'm a newbie with Django, and have what is probably a very simple question. I'm trying to get the values from an html drop-down form. I've got a form like this: A B C D E with a method in views.py: ansQuestion(request): q = get_object_or_404(Question) answer = requ