{"id":42318207,"url":"https://github.com/scieloorg/scms-oca","last_synced_at":"2026-03-11T00:09:28.560Z","repository":{"id":40761453,"uuid":"501727102","full_name":"scieloorg/scms-oca","owner":"scieloorg","description":"Observatório de Ciência Aberta","archived":false,"fork":false,"pushed_at":"2026-02-25T16:41:35.000Z","size":24235,"stargazers_count":2,"open_issues_count":212,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-02-25T20:15:05.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scieloorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-09T16:21:31.000Z","updated_at":"2026-02-25T16:45:29.000Z","dependencies_parsed_at":"2023-10-30T19:38:11.621Z","dependency_job_id":"6e9d23bc-c5d2-4987-aeb4-f2901a09c3e8","html_url":"https://github.com/scieloorg/scms-oca","commit_stats":null,"previous_names":[],"tags_count":140,"template":false,"template_full_name":null,"purl":"pkg:github/scieloorg/scms-oca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scieloorg%2Fscms-oca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scieloorg%2Fscms-oca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scieloorg%2Fscms-oca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scieloorg%2Fscms-oca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scieloorg","download_url":"https://codeload.github.com/scieloorg/scms-oca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scieloorg%2Fscms-oca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30362884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-27T12:32:32.328Z","updated_at":"2026-03-11T00:09:28.551Z","avatar_url":"https://github.com/scieloorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template SCMS\n\nProject that contains a generic template for content management SciELO context.\n\n[![Black code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nLicense: GPLv3\n\n\n## Startup the development environment and operations\n\nYou can use docker commands for the following if you wish, just check our makefile\n\nWhat about commands in the makefile?\n\nType inside de project ```make help```:\n\n```bash\n    Usage: make [target] [argument] ...\n\n    Argument:\n        compose = {compose_file_name}\n\n        targets:\n\n        help                                           show this help\n        app_version                                    Show version of webapp\n        vcs_ref                                        Show last commit ref\n        build_date                                     Show build date\n        build                              Build app using $(COMPOSE_FILE_DEV)\n        up                                 Start app using $(COMPOSE_FILE_DEV)\n        logs                               See all app logs using $(COMPOSE_FILE_DEV)\n        stop                               Stop all app using $(COMPOSE_FILE_DEV)\n        ps                                 See all containers using $(COMPOSE_FILE_DEV)\n        rm                                 Remove all containers using $(COMPOSE_FILE_DEV)\n        django_shell                       Open python terminal from django $(COMPOSE_FILE_DEV)\n        wagtail_sync                       Wagtail sync Page fields (repeat every time you add a new language and to update the wagtailcore_page translations) $(COMPOSE_FILE_DEV)\n        wagtail_update_translation_field   Wagtail update translation fields, user this command first $(COMPOSE_FILE_DEV)\n        django_createsuperuser             Create a super user from django $(COMPOSE_FILE_DEV)\n        django_bash                        Open a bash terminar from django container using $(COMPOSE_FILE_DEV)\n        django_test                        Run tests from django container using $(COMPOSE_FILE_DEV)\n        django_fast                        Run tests fast from django container using $(COMPOSE_FILE_DEV)\n        django_makemigrations              Run makemigrations from django container using $(COMPOSE_FILE_DEV)\n        django_migrate                     Run migrate from django container using $(COMPOSE_FILE_DEV)\n        django_makemessages                Run ./manage.py makemessages $(COMPOSE_FILE_DEV)\n        django_compilemessages             Run ./manage.py compilemessages $(COMPOSE_FILE_DEV)\n        django_dump_auth                   Run manage.py dumpdata auth --indent=2 $(COMPOSE_FILE_DEV)\n        django_load_auth                   Run manage.py dumpdata auth --indent=2 $(COMPOSE_FILE_DEV)\n        dump_data                          Dump database into .sql $(COMPOSE_FILE_DEV)\n        restore_data                       Restore database into from latest.sql file $(COMPOSE_FILE_DEV)\n\n```\n\nTo build the stack for development enviroment you can use the following command:\n\n```bash\n    make build compose=local.yml\n```\n\nis the same of type:\n\n```bash\n    make\n```\n\nTo run the project type:\n\n```bash\n    make up\n```\n\nTo stop the project type:\n\n```bash\n    make stop\n```\n\nIf you want to build, run, wherever with other params on .yml or from production or duplicate a subfolder in .envs and a subfolder on compose and \"listo\" you can user the make command with argument compose.\n\nNote that the stack is configured with 2 files docker-compose environment development=local.yml and production=production.yml.\n\nBelow are some actions you must follow for properly running applications.\n\n## Clean migrations\n\n##### Stop the project\n```\nmake stop\n```\n\n##### Find and delete migrations scripts\n```\nfind . -path \"*/migrations/*.py\" -not -name \"__init__.py\" -not -path \"./core/*\" -delete\nfind . -path \"*/migrations/*.pyc\"  -delete\n```\n\n##### Drop database - remove in this case the postgres files\n```\ncd ..\nrm -rf scms_data\ncd -\n```\n\n##### Restart the project\n```\nmake up\n```\n\n##### Run migrations\n```\nmake django_makemigrations\nmake django_migrate\n```\n\n## Instant backup \n\n`` docker exec -t oca_local_postgres pg_dumpall -c -U GVRFlLmcCNfGLhsFvSnCioYOPJPYpyfj \u003e oca.sql``\n\n## Instant restore\n\n``cat oca.sql | docker exec -i oca_local_postgres psql -U GVRFlLmcCNfGLhsFvSnCioYOPJPYpyfj core``\n\n\n## Settings\n\nMoved to [settings](http://cookiecutter-django.readthedocs.io/en/latest/settings.html).\n\n## Basic Commands\n\n### Setting Up Your Users\n\n-   To create a **normal user account**, just go to Sign Up and fill out the form. Once you submit it, you'll see a \"Verify Your E-mail Address\" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.\n\n-   To create a **superuser account**, use this command:\n\n        $ python manage.py createsuperuser\n\nFor convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.\n\n### Type checks\n\nRunning type checks with mypy:\n\n    $ mypy core\n\n### Test coverage\n\nTo run the tests, check your test coverage, and generate an HTML coverage report:\n\n    $ coverage run -m pytest\n    $ coverage html\n    $ open htmlcov/index.html\n\n#### Running tests with pytest\n\n    $ pytest\n\n### Live reloading and Sass CSS compilation\n\nMoved to [Live reloading and SASS compilation](https://cookiecutter-django.readthedocs.io/en/latest/developing-locally.html#sass-compilation-live-reloading).\n\n### Celery\n\nThis app comes with Celery.\n\nTo run a celery worker:\n\n``` bash\ncd core\ncelery -A config.celery_app worker -l info\n```\n\nPlease note: For Celery's import magic to work, it is important *where* the celery commands are run. If you are in the same folder with *manage.py*, you should be right.\n\n### Email Server\n\nIn development, it is often nice to be able to see emails that are being sent from your application. For that reason local SMTP server [MailHog](https://github.com/mailhog/MailHog) with a web interface is available as docker container.\n\nContainer mailhog will start automatically when you will run all docker containers.\nPlease check [cookiecutter-django Docker documentation](http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html) for more details how to start all containers.\n\nWith MailHog running, to view messages that are sent by your application, open your browser and go to `http://127.0.0.1:8025`\n\n### Sentry\n\nSentry is an error logging aggregator service. You can sign up for a free account at \u003chttps://sentry.io/signup/?code=cookiecutter\u003e or download and host it yourself.\nThe system is set up with reasonable defaults, including 404 logging and integration with the WSGI application.\n\nYou must set the DSN url in production.\n\n## Deployment\n\nThe following details how to deploy this application.\n\n### Docker\n\nSee detailed [cookiecutter-django Docker documentation](http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscieloorg%2Fscms-oca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscieloorg%2Fscms-oca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscieloorg%2Fscms-oca/lists"}