{% extends 'djangomaster/_single_col.html' %} {% load url from future %} {% block page_title %}Django Master{% endblock %} {% block content %}

requirements.txt

{% if object.requirements.BASE_DIR_ERROR %}
Define the settings.{{settings.BASE_DIR_NAME}} variable, then it will be possible to locate the requirements.txt file.
Add the following in your settings.py:
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
You can define which variable will be used by changing settings.DJANGOMASTER_BASE_DIR.
{% elif object.requirements.REQUIREMENTS_ERROR %}
Could not find a file in {{object.requirements.path}}.
{% else %}
{% endif %} {% endblock %}