{"id":16547394,"url":"https://github.com/rg3915/dicas-de-django","last_synced_at":"2025-04-09T21:20:13.286Z","repository":{"id":41150747,"uuid":"272131819","full_name":"rg3915/dicas-de-django","owner":"rg3915","description":"Várias dicas de Django","archived":false,"fork":false,"pushed_at":"2024-04-14T19:31:00.000Z","size":13087,"stargazers_count":214,"open_issues_count":16,"forks_count":21,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-04-16T01:27:05.065Z","etag":null,"topics":["django","python"],"latest_commit_sha":null,"homepage":"https://www.dicas-de-django.com.br/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rg3915.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-06-14T04:21:39.000Z","updated_at":"2024-04-17T23:22:46.755Z","dependencies_parsed_at":"2024-04-14T20:42:30.029Z","dependency_job_id":null,"html_url":"https://github.com/rg3915/dicas-de-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rg3915%2Fdicas-de-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rg3915%2Fdicas-de-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rg3915%2Fdicas-de-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rg3915%2Fdicas-de-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rg3915","download_url":"https://codeload.github.com/rg3915/dicas-de-django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248112222,"owners_count":21049617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["django","python"],"created_at":"2024-10-11T19:14:18.842Z","updated_at":"2025-04-09T21:20:13.261Z","avatar_url":"https://github.com/rg3915.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dicas de Django\n\nhttps://www.dicas-de-django.com.br/\n\n\n## Este projeto foi feito com:\n\n* [Python 3.10.6](https://www.python.org/)\n* [Django 4.1.6](https://www.djangoproject.com/)\n* [TailwindCSS](https://tailwindcss.com/)\n* [htmx](https://htmx.org)\n\n## Como rodar o projeto?\n\n* Clone esse repositório.\n* Crie um virtualenv com Python 3.\n* Ative o virtualenv.\n* Instale as dependências.\n* Rode as migrações.\n\n```\ngit clone https://github.com/rg3915/dicas-de-django.git\ncd dicas-de-django\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\npython contrib/env_gen.py\n\n# crie .env.docker\n\ncat \u003c\u003c EOF \u003e .env.docker\nPOSTGRES_DB=dicas_de_django_db\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=postgres\nDB_HOST=db\nDB_PORT=5432\nEOF\n\n# Django docker\ndocker-compose up --build -d\n\ndocker container exec -it dicas_de_django_app python manage.py migrate\ndocker container exec -it dicas_de_django_app python manage.py createsuperuser --email=\"admin@email.com\"\n\n# Django local\npython manage.py migrate\npython manage.py createsuperuser --email=\"admin@email.com\"\npython manage.py test\npython manage.py runserver\n```\n\n### Makefile\n\nPara verifcar os comando disponiveis no Makefile no terminal, basta informar `make help`\n\n**Obs:** Deve ter o `rich` instalado (`pip install rich`). Ele já está contido no `requirements.txt` instalado na venv, basta ativa-la `source .venv/bin/activate`\n\n\n## branch antiga\n\nbranch: `main_old`\n\n[Dicas 1 a 60](https://github.com/rg3915/dicas-de-django/tree/main_old)\n\n\n## Leia o passo a passo\n\n[Dicas de Django antigas](https://github.com/rg3915/dicas-de-django/tree/master/docs)\n\n[Dicas de Django novas](doc/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frg3915%2Fdicas-de-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frg3915%2Fdicas-de-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frg3915%2Fdicas-de-django/lists"}