Re: How do templates automatically convert dates to local timezone?

2016-08-04 Thread João Sampaio
You should probably look in the code of models.DateTimeField, models.DateField and models.TimeField. On Wed, Aug 3, 2016 at 6:06 PM, Robert Rollins wrote: > Perhaps I wasn't clear. I know *what* Django does with timezone-aware > dates. I just want to know *how* it does

Re: Does Django Migration binds data to code?

2015-11-16 Thread João Sampaio
By the way, the question: http://programmers.stackexchange.com/questions/302682/django-migrations-binds-data-to-code On Monday, November 16, 2015 at 11:47:40 AM UTC-3, João Sampaio wrote: > > Guys, I asked a question in Stack Exchange Programmers about whether > Django Migration b

Does Django Migration binds data to code?

2015-11-16 Thread João Sampaio
Guys, I asked a question in Stack Exchange Programmers about whether Django Migration binds data to code. Can you contribute with your expertise? I asked the question over there because anyone can contribute to this discussion, not only Django programmers. :-) Thanks! -- You received this

Re: Strange error with reverse() when running tests

2015-02-06 Thread João Sampaio
Oh, I totally overlooked that! Thank you. On Friday, February 6, 2015 at 12:10:15 PM UTC-3, Daniel Roseman wrote: > > > > On Thursday, 5 February 2015 12:34:51 UTC, João Sampaio wrote: >> >> There are 3 Python files attached. >> >> I have my URL file attac

Strange error with reverse() when running tests

2015-02-05 Thread João Sampaio
There are 3 Python files attached. I have my URL file attached. I'm using django-rest-framework (in case you are wondering what the routers are). When I use ./manage.py test with the first file (file1.py), the tests succeed. When I do the very same thing with the second file, the tests fail.