Skip to content

Cookiecutter template djangobaseproject-based django-project

License

Notifications You must be signed in to change notification settings

acdh-oeaw/djangobase-cookiecutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djangobase-cookiecutter

DSE-Static-Cookiecutter

Cookiecutter template djangobaseproject-based django-project

what is this for

The current repo should ease the process of setting up a djangobaseproject-based django-project

Quickstart

  • Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.7.0 or higher) by running pip install -U cookiecutter
  • To generate a new djangobaseproject-based django-project project run cookiecutter gh:acdh-oeaw/djangobase-cookiecutter and answer the following questions, see below:
{
    "directory_name": "my-new-project",
    "project_title": "My New Project",
    "project_abbr": "mnp",
    "github": "https://github.com/acdh-oeaw/djangobaseproject",
    "redmine_id": "18716",
    "appcreator": ["yes", "no"],
    "database": ["postgres", "sqlite"],
}
  • change into the new created repo, by default $ my-new-project

  • create a virtual env

  • install requierements pip install -r requirements.txt

  • optional add/modfiy environment-variables in env.default, rename it into e.g. env.secret

  • optional change set_env_varibales.sh so it uses your actual env-file

  • run python manage.py migrate

  • start developing

appcreator

    pip install cookiecutter​

    cookiecutter gh:acdh-oeaw/djangobase-cookiecutter​

    cd my-new-project​

    python –m venv venv​

    source venv/bin/activate​

    pip install -r requirements_dev.txt​

    source set_env_varibales.sh​

    Add SHEET_ID = "1B_KjrACzkiPQ3qJ603l5eJCow4OQEffZPUnnT4DFGoc" to settings.py​

    python manage.py startapp archiv​

    python manage.py create_files​

    Add "archiv" to INSTALLED_APPS in settings.py​

    Add archiv.urls and archiv.dal_urls to urls.py​

    Run python manage.py makemigrations && python manage.py migrate

About

Cookiecutter template djangobaseproject-based django-project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages