{"id":13748129,"url":"https://github.com/jcarbaugh/django-wordpress","last_synced_at":"2025-10-08T10:02:09.557Z","repository":{"id":49967253,"uuid":"161099","full_name":"jcarbaugh/django-wordpress","owner":"jcarbaugh","description":"WordPress models and views for Django.","archived":false,"fork":false,"pushed_at":"2021-06-07T15:49:55.000Z","size":91,"stargazers_count":358,"open_issues_count":5,"forks_count":81,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-02T13:29:32.611Z","etag":null,"topics":["django","django-models","python","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcarbaugh.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-27T17:34:59.000Z","updated_at":"2025-02-27T09:44:45.000Z","dependencies_parsed_at":"2022-09-10T04:05:01.974Z","dependency_job_id":null,"html_url":"https://github.com/jcarbaugh/django-wordpress","commit_stats":null,"previous_names":["sunlightlabs/django-wordpress","istrategylabs/django-wordpress"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcarbaugh%2Fdjango-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcarbaugh%2Fdjango-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcarbaugh%2Fdjango-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcarbaugh%2Fdjango-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcarbaugh","download_url":"https://codeload.github.com/jcarbaugh/django-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423514,"owners_count":20936626,"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","django-models","python","wordpress"],"created_at":"2024-08-03T07:00:35.021Z","updated_at":"2025-10-08T10:02:09.450Z","avatar_url":"https://github.com/jcarbaugh.png","language":"Python","readme":"================\ndjango-wordpress\n================\n\nModels and views for reading a WordPress database. Compatible with WordPress version 3.5+.\n\ndjango-wordpress is a project of `ISL \u003chttps://isl.co\u003e`_ and the `Sunlight Foundation \u003chttp://sunlightfoundation.com\u003e`_.\n\n\n--------\nFeatures\n--------\n\nRead-only models to protect your content\n========================================\n\nThis package is **designed to be read-only**. Writing is enabled by adding ``WP_READ_ONLY = False`` to settings.py. None of the WordPress specific logic is included while writing to the database so there is a good chance you will break your WordPress install if you enable writing.\n\nWordPress table prefix\n======================\n\nThe default table prefix is *wp*. To change the table prefix, add ``WP_TABLE_PREFIX = 'yourprefix'`` to settings.py.\n\nMultiple database support\n=========================\n\nAdded the ability to specify which database the WordPress content is coming from. Set it using the *WP_DATABASE* setting. Defaults to \"default\".\n\nDatabase routers need be set to::\n\n    DATABASE_ROUTERS = ['wordpress.router.WordpressRouter']\n\nDefault templates\n=================\n\nDefault templates are provided only for development purposes so you can see content in your browser! Please override these with customized templates for your application.\n\nExport Management Commands\n==========================\n\n* *wpexport* Dump published posts in WXR format.\n* *wpexportauthors* Export authors as CSV.\n\n-----------------------------\nWorking With WordPress Models\n-----------------------------\n\nTen most recent published posts::\n\n    Posts.objects.published()[:10]\n\nPosts tagged *wordpress*::\n\n    Posts.objects.term(\"wordpress\")\n\nPost attachments::\n\n    for attachment in post.attachments():\n        pass\n\nPost tags::\n\n    post.tags()\n\n\n------------\nInstallation\n------------\n\n::\n\n    pip install the-real-django-wordpress\n\nAdd to INSTALLED_APPS in settings.py::\n\n    'wordpress'\n\nInclude the following in urls.py::\n\n    url(r'^path/to/blog/', include('wordpress.urls')),\n","funding_links":[],"categories":["Third-party APIs","Python","第三方 API"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcarbaugh%2Fdjango-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcarbaugh%2Fdjango-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcarbaugh%2Fdjango-wordpress/lists"}