Hi,
i have this structure (showing only dirs) with one django packages (django-polls) and one project (my site) where i use this package:
./
├── django-polls
│ ├── dist
│ ├── django_polls.egg-info
│ ├── docs
│ └── polls
│ ├── migrations
│ │ └── __pycache__
│ ├── __pycache__
│ ├── static
│ │ └── polls
│ │ └── images
│ └── templates
│ └── polls
└── mysite
├── media
│ └── images
│ ├── 2018
│ │ └── gallery
│ └── sample
│ └── gallery
├── mysite
│ └── __pycache__
├── photo_gallery
│ ├── migrations
│ │ └── __pycache__
│ ├── __pycache__
│ ├── static
│ │ └── photo_gallery
│ └── templates
│ └── photo_gallery
├── portal
│ ├── migrations
│ │ └── __pycache__
│ ├── __pycache__
│ └── templates
│ └── portal
├── static
│ ├── admin
│ │ ├── css
│ │ │ └── vendor
│ │ │ └── select2
│ │ ├── fonts
│ │ ├── img
│ │ │ └── gis
│ │ └── js
│ │ ├── admin
│ │ └── vendor
│ │ ├── jquery
│ │ ├── select2
│ │ │ └── i18n
│ │ └── xregexp
│ ├── photo_gallery
│ └── polls
└── templates
└── admin
I would like to use the existing base_generic.html
in mysite/templates
also for the installed app django-polls.
I changed the template in django-polls/polls/template/polls/index.html
like this:
{% extends 'mysite/base_generic.html' %}
{% load static %}
{% block head_links %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
{% endblock head_links %}
{% block header %}
<h1>Polls</h1>
{% endblock header %}
{% block content %}
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li><a href="{% url 'polls:detail' question.id %}" >{{ question.question_text }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
{% endblock content %}
But not working.
Any idea?
Thank you!
Simón