{"id":29112766,"url":"https://github.com/jtemporal/django-travel-diaries","last_synced_at":"2025-06-29T11:03:26.168Z","repository":{"id":287440938,"uuid":"945046786","full_name":"jtemporal/django-travel-diaries","owner":"jtemporal","description":"Travel Diaries - A Django app","archived":false,"fork":false,"pushed_at":"2025-04-05T17:24:19.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T04:02:36.567Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtemporal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-03-08T14:36:27.000Z","updated_at":"2025-04-06T01:51:34.000Z","dependencies_parsed_at":"2025-04-11T18:57:39.270Z","dependency_job_id":"0ec61332-d3b5-41b8-9bd0-4f8c8ae431ce","html_url":"https://github.com/jtemporal/django-travel-diaries","commit_stats":null,"previous_names":["jtemporal/django-travel-diaries"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jtemporal/django-travel-diaries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fdjango-travel-diaries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fdjango-travel-diaries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fdjango-travel-diaries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fdjango-travel-diaries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtemporal","download_url":"https://codeload.github.com/jtemporal/django-travel-diaries/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fdjango-travel-diaries/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581282,"owners_count":23331908,"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":"2025-06-29T11:03:25.576Z","updated_at":"2025-06-29T11:03:26.161Z","avatar_url":"https://github.com/jtemporal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Travel Diaries - A Django app\n\nThis Django application narrates the process of using adding spacial data to your [Django Girls Tutorial blog](https://tutorial.djangogirls.org/en/) in order to create a map for you Travel Diaries blog. This is the accompanying sample app for the [\"_Creating a Travel Diary With Django_\"](https://jtemporal.com/creating-a-travel-diaries-blog-with-django/).\n\n_Note:_ I left the secret key that Django creates for development in the `settings.py` to make it easier to run after cloning this repo... So please, please, please remember to update that before deploying this to production!!! You've been warned.\n\n## Pages\n\n- `/`: standard blog from the Django Girls tutorial - this list all blog entries;\n- `/map`: a page containing the map for all the blog entries - this shows each location you visited with their associated blog entries;\n- `/admin`: the standard Django Admin page.\n\n## Development\n\nUsing Python 3.12.1, and the following libraries:\n\n```txt\nPackage  Version\n-------- -------\nasgiref  3.8.1\nDjango   5.1.7\nfolium   0.19.5\npip      25.0.1\nsqlparse 0.5.3\n```\n\nRunning locally:\n```sh\npython -m venv .env \u0026\u0026 source .env/bin/activate  # On Windows: .env\\Scripts\\activate\npip install -r requirements.txt\npython manage.py migrate\npython manage.py createsuperuser\npython manage.py runserver\n```\n\nLogin to the admin and add posts and locations then visit both `/` and `/map`.\n\n## Sample Data\n\nYou also have in this repository some sample data for both locations and blog posts, make sure to create your superuser then load them into your database like so:\n\n```sh\npython manage.py loaddata sample-data/blog.json\npython manage.py loaddata sample-data/map.json\n```\n\n## Models\n\nBlog in the beginning:\n\n```txt\nPost\n--------\ntitle\ncontent\nauthor\ncreated_at\npublished_date\n```\n\nAfter we add everything for the spacial data you should have the following models:\n\n```txt\nPost\n--------\ntitle\ncontent\nauthor\ncreated_at\npublished_date\nlocation\n\n\nLocation\n--------\nname\nlatitude\nlongitude\n```\n\n# TODO\n\n- [x] Implement the Django Girls blog app\n- [x] Implement the map app\n    - [x] Create a Location model\n- [x] Update blog post model to have a location (FK)\n- [x] Create the map page\n\n# Wishlist\n\n- Deployment\n- Tests\n- Other users\n- Use `uv` for project management\n- Generate post path through slug as opposed to the pk https://docs.djangoproject.com/en/5.1/ref/urls/#django.urls.path \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fdjango-travel-diaries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtemporal%2Fdjango-travel-diaries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fdjango-travel-diaries/lists"}