Hi,
On Sunday, March 8, 2015 at 3:09:19 PM UTC-4, Bryan Arguello wrote:
-- To be clear, you should have this setting:
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
and in your mysite/templates/admin/base_site.html you should have something like:
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></h1>
{% endblock %}
Does that all look right?
Thanks,
Collin
On Sunday, March 8, 2015 at 3:09:19 PM UTC-4, Bryan Arguello wrote:
Have you solved this problem, Andreas? I am having the same issue and have doneeverything that the tutorial described as well as everything that people on this threadhave suggested.
On Sunday, November 16, 2014 at 12:15:59 PM UTC-6, Andreas Ka wrote:I am working through https://docs.djangoproject.com/en/1.7/ intro/tutorial02 so far all went fine - but now templates changes just don't work.I think there must be a flaw in that tutorial, something missing,or something different in django 1.7.1 ?my versions:python -c "import django; print(django.get_version())"1.7.1python --versionPython 2.7.3SYMPTOM:my changes inmysite/templates/admin/base_site.html are simply ignored.These are my files:mysite# tree.├── db.sqlite3├── manage.py├── mysite│ ├── __init__.py│ ├── settings.py│ ├── urls.py│ └── wsgi.py├── polls│ ├── admin.py│ ├── __init__.py│ ├── migrations│ │ ├── 0001_initial.py│ │ └── __init__.py│ ├── models.py│ ├── tests.py│ └── views.py└── templates└── admin└── base_site.htmlmysite/settings.py:TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]Whatever I do, the pagestill keeps the old title 'Django administration'I want to understand how templates work, because I need them for my real project.Thanks a lot!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/74b79ef9-b70a-4a1c-956e-9364378c12bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment