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 868081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:05:00+00:00 2026-05-15T10:05:00+00:00

If you have a date time field within the admin, and you invoke the

  • 0

If you have a date time field within the admin, and you invoke the “Today” link it seems it throws an exception from calendar.js where it references an undefined global method get_format. This doesn’t seem to be defined in any of the latest admin js files.

Edit:

It seems like it was using a different i18n.py file from my standard django 1.1 on the system. Here’s my wsgi file:

import os, sys, site

site.addsitedir( '/srv/python-environments/django1point2/lib/python2.5/site-packages')

sys.path.append('/srv/')
sys.path.append('/srv/workarounds')

os.environ['DJANGO_SETTINGS_MODULE'] = 'workarounds.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

What do I need to alter so it relies on the i18n.py in the addsitedir string I specify instead of my system default?

  • 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-05-15T10:05:00+00:00Added an answer on May 15, 2026 at 10:05 am

    Your .wsgi code puts the virtualenv site-packages after the system site-packages, so global packages will take priority. I use the following snippet (from the mod_wsgi documentation on use with virtualenv, which I recommend) to put the virtualenv site-packages first:

    ALLDIRS = [os.path.join(virtenv, 'lib',
                                     'python%s' % sys.version[:3],
                                     'site-packages')]
    
    # Remember original sys.path.
    prev_sys_path = list(sys.path)
    
    # Add project directory
    sys.path.append(project)
    
    # Add each new site-packages directory.
    for directory in ALLDIRS:
      site.addsitedir(directory)
    
    # Reorder sys.path so new directories at the front.
    new_sys_path = []
    for item in list(sys.path):
        if item not in prev_sys_path:
            new_sys_path.append(item)
            sys.path.remove(item)
    sys.path[:0] = new_sys_path
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a date/time field from a shopping cart API feed, but I don't
I have a table in SQL Server 2005 which has a date time field.
I have table that contain date and time field. id|date|time ========= 1|01/01/2001|10:45 2|01/02/2002|11:45 3|01/03/2003|12:45
I have a sqlite3 database with a datetime field, the format of the date/time
I have Database with date field. I see the time like: 1900-01-01 13:38:00.000 How
I have a MySQL table where there is a 'date_added' (date) field, 'time_added' (time)
I have a field that has time and date in following format 2010-03-26 10:06:11
I have a custom UserType which stores a date/time value in a TIMESTAMP field
I have a datetime field like that. <field name=rel_date type=date indexed=true stored=true default=NOW multiValued=false/>
I have a Django model that contains a date field: class Event(models.Model): event_date =

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.