From what I have read FORMAT_MODULE_PATH allows to use custom formats.

How can I access the first value from DATETIME_INPUT_FORMATS in my application?

The DATETIME_INPUT_FORMATS variable for german should be '%d.%m.%Y', whereas for english should be '%Y-%m-%d'. I want to use the values from the formats.py files depending on the language.    

I followed the Django documentation for how to use the FORMAT_MODULE_PATH variable, but I don't get the expected results.

settings.py:
    USE_L10N = True
    USE_I18N = True
    FORMAT_MODULE_PATH = 'myproject.formats'


myproject/
    formats/
        __init__.py
        en/
            __init__.py
            formats.py
        de/
            __init__.py
            formats.py


I change the browser's language from English to German, and back and nothing happens with the date format. It is always '%Y-%m-%d'. The displayed date format is the value of settings.DATE_INPUT_FORMATS[0].

Django version is 1.2.5 and Python version is 2.5.4.


Question: Demonstrating the effect of aliasing
Answer: You have the right idea, but a key mistake was messing up your results.

n=0:1/Fs:1;


By making the time increments 1/Fs you are implicitly making the time units seconds.  In other words, "0" is 0 seconds, and "1" is 1 second.

Cont = A*sin(2*pi*(Fmax/Fs)*n);


By normalizing the sinusoid frequency by Fs you are implicitly assuming that the sample unit is 1/Fs seconds.  That is why you were getting lots of samples for a single sinusoid cycle when you intended to just have two samples per cycle (the Nyquist rate).  By the way, either sample unit is fine (1 second or 1/Fs second), you just need to be consistent.

Here is my attempt at what I think you intended.

A = 2;
Fmax = 10;
Fs = 2*Fmax;
n=0:1/Fs:1;
Cont = A*cos(2*pi*Fmax*n);
Cont1 = A*cos(2*pi*Fmax*(20/18)*n);
subplot(2,1,1)
stem(n,Cont)
subplot(2,1,2)
stem(n,Cont1)


I changed the "sin" to "cos" because it was hitting all the sinusoid zero points instead of the peaks.