Skip to content

Instantly share code, notes, and snippets.

@diogodilcl
Last active January 14, 2021 15:50
Show Gist options
  • Save diogodilcl/e73645064dbc9101e45215e42a52640b to your computer and use it in GitHub Desktop.
Save diogodilcl/e73645064dbc9101e45215e42a52640b to your computer and use it in GitHub Desktop.
Large Application flask
~/LargeApp                      # Name of Application
    |__ /app                    # Our Application Module
        |__ /common
           |-- database.py
           |-- __init__.py
        |-- /example           # Module like album, song, video ...
            |-- __init__.py
            |-- views.py
        |-- models.py
        |-- __init__.py
    |__ /requirements
        |-- dev.txt
        |-- prod.txt
    |-- config.py
    |-- requirements.txt
    |-- run.py                  # Main class to runing app
@ricardoorfao
Copy link

ricardoorfao commented Nov 10, 2020

Inside the /example folder do you think it would be better to have serializers and models instead of having models outside the entity folders?
Something like this:

|-- /example
     |-- __init__.py
     |-- serializers.py
     |-- views.py
     |-- models.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment