I need ur help.

12 views
Skip to first unread message

Wandy Lau

unread,
Jun 5, 2015, 5:58:27 AM6/5/15
to django...@googlegroups.com
I am new to django. I want to write some templates for my app. And write it. But It is seems not loaded.

The structure of the template is below:

mysite/templates/admin is for overriding the admin
mysite/myapp/templates/myapp/* is for my app. 

So far it works well. But it just loads the templates of my app.

Yeah, in the settings.py , the config is :

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                'django.core.context_processors.static',
            ],
        },
    },
]

I really can't find the the point. Please help with this. Thank you in advance.
Reply all
Reply to author
Forward
0 new messages