diff --git a/templates/abbreviations.txt b/templates/abbreviations.txt index 96acf1e..bbaca5c 100644 --- a/templates/abbreviations.txt +++ b/templates/abbreviations.txt @@ -3,41 +3,34 @@ {% set db_port_label = "MongoDB Port" %} {% set db = "MongoDB" %} {% endif %} - {% if 'postgres' in cookiecutter.db_resource %} {% set db_port = "5432" %} {% set db_port_label = "PostgreSQL Port" %} {% set db = "PostgreSQL" %} {% endif %} - {% if cookiecutter.project_backend == "fastapi" %} {% set web_framework = "FastAPI" %} {% if 'postgres' in cookiecutter.db_resource %} {% set orm = "SQLModel" %} {% endif %} {% endif %} - {% if cookiecutter.project_backend == "flask" %} {% set web_framework = "Flask" %} {% if 'postgres' in cookiecutter.db_resource %} {% set orm = "SQLAlchemy" %} {% endif %} {% endif %} - {% if cookiecutter.project_backend == "django" %} {% set web_framework = "Django" %} {% if 'postgres' in cookiecutter.db_resource %} {% set orm = "DjangoORM" %} {% endif %} {% endif %} - {% if cookiecutter.project_host == "aca" %} {% set azure_host = "Azure Container Apps" %} {% endif %} - {% if cookiecutter.project_host == "appservice" %} {% set azure_host = "Azure App Service" %} {% endif %} - {% block cc %} {% endblock %} diff --git a/{{cookiecutter.__src_folder_name}}/README.md b/{{cookiecutter.__src_folder_name}}/README.md index ec6f590..fd1accc 100644 --- a/{{cookiecutter.__src_folder_name}}/README.md +++ b/{{cookiecutter.__src_folder_name}}/README.md @@ -30,26 +30,19 @@ If you're not using one of those options for opening the project, then you'll ne 1. Apply database migrations and seed initial data: -{% if cookiecutter.project_backend == "django" %} ```sh +{% if cookiecutter.project_backend == "django" %} python src/manage.py migrate python src/manage.py loaddata src/seed_data.json - -``` {% endif %} {% if cookiecutter.project_backend == "flask" %} - ```sh python3 -m flask --app src.flaskapp db upgrade --directory src/flaskapp/migrations python3 -m flask --app src.flaskapp seed --filename src/seed_data.json -``` - {% endif %} {% if cookiecutter.project_backend == "fastapi" %} - ```sh python3 src/fastapi_app/seed_data.py - -``` {% endif %} + ``` ## Running locally