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

requirements.txt

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