Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8716857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:11:03+00:00 2026-06-13T06:11:03+00:00

I know there is a very similar issue datepicker , but I have not

  • 0

I know there is a very similar issue datepicker, but I have not been able to solve it myself, since I consider my problem it’s different. So I am trying to use bootstrap-datepicker bootstrap-datepicker in my local django project. I have a little experience using django, currently using version 1.4. I have a ModelForm which i want to be able to use a datepicker interface for some DateField. I render the form field correctly in the template using:

 <div class="well">
   <input type="text" class="span2" value="02/16/12" data-date-format="mm/dd/yy" id="datepicker" >
 </div>

And at the bottom of my template I have the following JS code:

<script> $("#datepicker").datepicker(); </script>

Now, in my base layout template I have the following:

<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.css"/>
<link rel="stylesheet" href="{{ STATIC_URL }}css/datepicker.css"/>

{% block head %}{% endblock %}
{% include "layouts/header.html" %}
{% block content %}{% endblock %}
{% include "layouts/footer.html" %}

<script src="{{ STATIC_URL }}js/bootstrap.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-datepicker.js"></script>
{% block scripts %}{% endblock %} 

The template where I want to render the datepicker of course includes the base layout template:

{% extends "layouts/base.html" %}

My static files are distributed the following way:

Project/
    apps/
    static/
        css/
            bootstrap.css
            datepicker.css
            datepicker.less
        js/
            bootstrap.js
            bootstrap-datepicker.js

I have never used JS before in my project so it might have something to do, but still, when I render my form the DateField shows ok as the datepicker example its just I can’t make it deploy the widget where you get to choose the date from the calendar. Everytime I reload the url with the form I get the following in runserver:

[22/Oct/2012] "GET /element/new HTTP/1.1" 200 9547
[22/Oct/2012] "GET /static/js/bootstrap.js HTTP/1.1" 304 0
[22/Oct/2012] "GET /static/css/datepicker.css HTTP/1.1" 304 0
[22/Oct/2012] "GET /static/js/bootstrap-datepicker.js HTTP/1.1" 304 0
[22/Oct/2012] "GET /static/css/bootstrap.css HTTP/1.1" 200 118150

I would appreciate a lot any kind of help. If you need my settings.py is in the following link: settings.py

Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:11:04+00:00Added an answer on June 13, 2026 at 6:11 am

    For clarity. The datepicker in question is http://www.eyecon.ro/bootstrap-datepicker/

    I have implemented this datepicker in my own project but only as part of a more complex JS usage. My call was something closer to:

    $("#datepicker").datepicker({
        format: 'yyyy-mm-dd',
        weekStart: 1,
     });
    

    I see no mention of a jQuery JS file which is required for the $() to work.

    The runserver messages are completely normal. They are the HTTP calls that are received along with how they worked out, 200 and 304 means the files where found or did not need to be fetched again. So that is fine. Again, I don’t see your browser requesting jQuery so I think it might be missing.

    To troubleshoot you should rather look for errors in your Javascript Console (in the browser) than in runserver.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there is a very similar question here but I was hoping to
I know there is a wiki page about it , but since I'm very
I know there is this question that is very similar, but I wanted to
This is a very narrow and specific question, but I know there are someone
I know there have been many questions on grid and pack in the past
I have tried searching the database for a similar issue, but was unsuccessful in
I know there are similar questions already on SO but none of them seem
This issue is very common appears here in SO many times but not for
We've been experiencing a very serious issue with IIS and Azure. Not sure if
I know there is a very similiar question ( JavaScript: How to select "Cancel"

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.