# How to manage a live and a preview site

As soon as you go live with a site you need to have a way to save and preview content before going live.

To do that in DatoCMS you can enable the [draft/published system](https://www.datocms.com/docs/general-concepts/draft-published.md) on a per-model basis.

Once you have created your new draft records you might want to preview them, but how? You can combine the draft/published system with the [deployment environments](https://www.datocms.com/docs/general-concepts/deployment.md) to achieve that.

For example you can have your live site pulling content from the main GraphQL endpoint and instead your *staging* pulling your drafts from the [preview endpoint](https://www.datocms.com/docs/content-delivery-api/api-endpoints.md).

If you are using our REST API instead you can fetch the draft content using the `version` attribute, [for example on the records](https://www.datocms.com/docs/content-management-api/resources/item.md#instances).

Finally you can leverage the deployment environments if you want to let your editors be able to manually trigger builds for the different sites.

See also: [(Image content)Web Previews](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews.md), an official plugin that makes it easy to preview your changes inside or next to DatoCMS.

## Related content in "General concepts"

- [What is DatoCMS?](https://www.datocms.com/docs/general-concepts.md)
- [Workspaces: Organizations and Personal Accounts](https://www.datocms.com/docs/general-concepts/organizations-and-accounts.md)
- [Project collaborators, roles and permissions](https://www.datocms.com/docs/general-concepts/roles-and-permission-system.md)
- [The content schema](https://www.datocms.com/docs/general-concepts/data-modelling.md)
- [Organizing content](https://www.datocms.com/docs/general-concepts/navigation-bar.md)
- [Record versioning](https://www.datocms.com/docs/general-concepts/versioning.md)
- [Draft/published system](https://www.datocms.com/docs/general-concepts/draft-published.md)
- [Scheduled publishing](https://www.datocms.com/docs/general-concepts/scheduled-publishing-unpublishing.md)
- [Media Area](https://www.datocms.com/docs/general-concepts/media-area.md)
- [Localization](https://www.datocms.com/docs/general-concepts/localization.md)
- [Visual Editing](https://www.datocms.com/docs/general-concepts/visual-editing.md)
- [Record-level collaboration: Presence & locking](https://www.datocms.com/docs/general-concepts/collaboration-features.md)
- [Workflows](https://www.datocms.com/docs/general-concepts/workflows.md)
- [Customize CMS domain](https://www.datocms.com/docs/general-concepts/customize-cms-admin-domain.md)
- [Webhooks](https://www.datocms.com/docs/general-concepts/webhooks.md)
- [Plugins](https://www.datocms.com/docs/general-concepts/plugins.md)
- [DatoCMS Site Search](https://www.datocms.com/docs/general-concepts/site-search.md)
- [Project Templates](https://www.datocms.com/docs/general-concepts/project-starters-and-templates.md)
- [How your website and DatoCMS work together](https://www.datocms.com/docs/general-concepts/how-your-website-and-datocms-work-together.md)
- [How to deploy](https://www.datocms.com/docs/general-concepts/deployment.md)
- [Primary and sandbox environments](https://www.datocms.com/docs/general-concepts/primary-and-sandbox-environments.md)
- [Project usages](https://www.datocms.com/docs/general-concepts/project-account-usages.md)
- [Audit Logs](https://www.datocms.com/docs/general-concepts/audit-logs.md)
- [How to manage a live and a preview site](https://www.datocms.com/docs/general-concepts/how-to-manage-a-live-and-a-preview-site.md)