{% 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 %}

Welcome in Django Dev-Sup application.

If you see this text, that means your installation was successful.

Simple guide

How to generate the project

Dev-Sup provides an easy tool to generate simple website which includes Home, About and Contact pages. And it's quite simple:

  1. Run command python3 manage.py generate_project
In your Django project tree you should notice new directory 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).

How to use admin panel?

In Django admin panel you should find a few new sections:

These are models used for site creation and management.
Links and dropdown menus are items displayable on navigational bar.
Sites are are object representations of sites in this application.
Styles are simple color schemas used across this application.

Site creation

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").

Custom index page

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.

{% endblock %}