{% extends "dev_sup/base_dev_sup.html" %} {% load static %} {%block favicon%} {%endblock%} {% block title %} Welcome to Dev-Sup {% endblock %} {% block css %} {% endblock %} {% block navbar %} {% include "dev_sup/navbar.html"%} {% endblock navbar %} {% block site_content %}
Dev-Sup provides an easy tool to generate simple website which includes Home, About and Contact pages. And it's quite simple:
python3 manage.py generate_project
dev_sup
, in which you should find
directory with your template files and dev_views.py
file. The first location should contain
HTML files with your views. Python file is where you will write your view functions (if you need them).
In Django admin panel you should find a few new sections:
Adding new page is quite simple - just add one new object in 'Site' section in Django admin panel. If you want to populate your site with custom
logic and data from your models, check custom view function
. This option will generate custom
view function in file dev_sup/dec_views.py
. In your view function, you can access URL arguments
in the same way, as in 'normal' Django view function - request.GET.get("arg_name")
.
If you want to override this main page, just create index.html
in generated
directory and add view function with name 'index' to dev_views.py
.
Add {% verbatim %}{% extends "dev_sup/base_dev_sup.html" %}{% endverbatim %}
to extend dev_sup base template.
Thank you for choosing this application.