{"id":18413138,"url":"https://github.com/pybites/pyplanet-django","last_synced_at":"2025-07-21T07:32:25.151Z","repository":{"id":78378307,"uuid":"97418389","full_name":"pybites/pyplanet-django","owner":"pybites","description":"First Django app that imports Planet Python feed and lets us tweet entries and mark them skipped / shared","archived":false,"fork":false,"pushed_at":"2017-07-17T11:33:23.000Z","size":932,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T11:37:41.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pybites.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,"publiccode":null,"codemeta":null}},"created_at":"2017-07-16T23:54:55.000Z","updated_at":"2023-12-22T19:54:34.000Z","dependencies_parsed_at":"2023-03-12T04:14:48.622Z","dependency_job_id":null,"html_url":"https://github.com/pybites/pyplanet-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pybites/pyplanet-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpyplanet-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpyplanet-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpyplanet-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpyplanet-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pybites","download_url":"https://codeload.github.com/pybites/pyplanet-django/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpyplanet-django/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266261147,"owners_count":23901285,"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":[],"created_at":"2024-11-06T03:44:56.063Z","updated_at":"2025-07-21T07:32:25.131Z","avatar_url":"https://github.com/pybites.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyPlanet Article Sharer Django App\n\n## About\n\nLast week we kicked off [100 days of Django](https://pybit.es/special-100days-of-code.html) and this is our first Django app!\n\nThis app lets you import [Planet Python's feed](http://planetpython.org) into an SQLite DB. \n\nThe Django front-end shows the articles in a table:\n\n![article home](assets/article-home.png)\n\nUpon clicking each link it shows the parsed data and action buttons:\n\n![article detail](assets/article-detail.png)\n\nThe \"Tweet this\" button uses Twitter's [Web Intents](https://dev.twitter.com/web/intents) (redirect to generated link) \n\n![twitter-intent](assets/twitter-intent.png)\n\nYou can update the article as \"Shared\" or \"Skipped\" which is updated in the DB:\n\n![save state](assets/save-state.png)\n\n## Try it yourself!\n\n1. clone this repo:\n\n\t\t$ git clone git@github.com:pybites/pyplanet-django.git\n\n\n2. make venv and install dependencies:\n\n\t\t$ python3 -m venv venv \u0026\u0026 source venv/bin/activate\n\t\t(venv) $ pip install -r requirements.txt\n\n3. create DB tables (admin stuff to be added):\n\n\t\t(venv) $ python manage.py migrate\n\t\tOperations to perform:\n\t\tApply all migrations: admin, articles, auth, contenttypes, sessions\n\t\tRunning migrations:\n\t\tApplying contenttypes.0001_initial... OK\n\t\t...\n\t\t...\n\t\tApplying sessions.0001_initial... OK\n\n4. run the [management command](https://docs.djangoproject.com/en/dev/howto/custom-management-commands/) to import Planet Python's feed:\n\n\t\t(venv) $ python manage.py importfeed\n\t\tArticle id 1 created\n\t\tArticle id 2 created\n\t\t...\n\t\t...\n\t\tArticle id 25 created\n\t\t25 articles added\n\n5. run local server: \n\n\t\t(venv) $ python manage.py runserver\n\n6. browse to [http://127.0.0.1:8000/](http://127.0.0.1:8000/)\n\n## TODOs\n\n* Deploy to Heroku or PythonAnywhere\n\n* Add `importfeed` command to a cronjob\n\n* Add user authentication and tracking who edits what (already field in the model)\n\n* Integrate Twitter API so green \"Mark Shared\" button can be made redundant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fpyplanet-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpybites%2Fpyplanet-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fpyplanet-django/lists"}