On Thu, Sep 13, 2012 at 12:51 PM, Dennis Lee Bieber
wrote:
> On Thu, 13 Sep 2012 10:52:44 -0600, Larry Martell
> declaimed the following in
> gmane.comp.python.django.user:
>
>
>> So by stepping through a lot of code, I finally figured this out.
On Thu, Sep 13, 2012 at 7:11 AM, Larry Martell wrote:
> On Wed, Sep 12, 2012 at 11:39 AM, Thomas Orozco wrote:
>> Can you being up a manage.py shell and load the template from there to
>> identify where's Django is pulling the template from?
>
> I'm
On Wed, Sep 12, 2012 at 2:21 PM, Thomas Orozco wrote:
> Here's an example:
>
> from django.template import loader
> l =
> loader.find_template_loader('django.template.loaders.app_directories.Loader')
> # Or W/E loader you happen to use
>
On Wed, Sep 12, 2012 at 11:39 AM, Thomas Orozco wrote:
> Can you being up a manage.py shell and load the template from there to
> identify where's Django is pulling the template from?
I'm trying to do that, but I get:
>>> t = Template('/path/to/template.html')
>>> t.name
''
I
Here's an example:
from django.template import loader
l =
loader.find_template_loader('django.template.loaders.app_directories.Loader')
# Or W/E loader you happen to use
l.load_template_source(somewhere/'your_template.html')
This will return a tuple (template string, template_path).
This way
Can you being up a manage.py shell and load the template from there to
identify where's Django is pulling the template from?
You should be able to go step by step and identify where you're pulling the
old template in!
If you don't find anything, it's probably because your template actually
isn't
On Wed, Sep 12, 2012 at 11:56 AM, Thomas Lockhart
wrote:
> On 9/12/12 8:27 AM, Larry Martell wrote:
>>
>> On my Mac, I changed a template, and the change was picked up, no
>> problem. I checked my change into git, went to another machine, a
>> CentOS box, pulled the
On 9/12/12 8:27 AM, Larry Martell wrote:
On my Mac, I changed a template, and the change was picked up, no
problem. I checked my change into git, went to another machine, a
CentOS box, pulled the change down, but django is not picking it up.
I've tried everything I can think of - bounced the
On my Mac, I changed a template, and the change was picked up, no
problem. I checked my change into git, went to another machine, a
CentOS box, pulled the change down, but django is not picking it up.
I've tried everything I can think of - bounced the server, restarted
the browser, cleared the
9 matches
Mail list logo