B
B
BoryanNikitin2020-02-02 05:57:22
Django
BoryanNikitin, 2020-02-02 05:57:22

How to implement master page in project root outside of Djnago apps?

Hello!

I have the following project structure

myproject/
    account/
        static/
        templates/
        admin.py
        apps.py
        authentication.py
        forms.py
        models.py
        urls.py
        views.py
    myproject/
        .env
        asgi.py
        settings.py
        urls.py
        wsgi.py
    venv/
    .gitignore
    db.sqlite3
    manage.py
    README.md
    requirements.txt


It follows from the question that it is possible to implement the functionality of the main page in the root of the project.

How should it be done? That is, right at the root you need to add this?
spoiler
myproject/
    account/
    myproject/
    venv/
    .gitignore
    db.sqlite3
    manage.py
    README.md
    requirements.txt

    templates/
        index.html
    view.py

It's embarrassing that it doesn't look pretty. Yes, and the main page was defined in some other application in the tutorial that I'm studying.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-02-02
@BoryanNikitin

do in myproject/myproject

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question