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:
>
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
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
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
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
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:
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>
> 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(
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?
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
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=
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
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
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
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
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
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
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'
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=
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
...@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.
>
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
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
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
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
>
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
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
!
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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:
>
>
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
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
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 /
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
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
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['
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
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
69 matches
Mail list logo