Skip to content

Commit 153beae

Browse files
Docs-1156-libs-readme-subdomains
1 parent 0175a99 commit 153beae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Django compatibility:
9191

9292
After package [installation](#requirements-and-installation), you’ll need API keys: public and secret. Get them in [Uploadcare dashboard](https://app.uploadcare.com/projects/-/api-keys). If you don’t have an account yet, you can use demo keys, as in example. However, the files on demo account are regularly removed, so create an account as soon as Uploadcare catches your fancy.
9393

94-
In these examples we’re going to use the aforementioned demo keys and `ucarecdn.com` domain.
94+
In these examples we’re going to use the aforementioned demo keys and `demo.ucarecd.net` domain.
9595
Check your project's subdomain in the [Dashboard](https://app.uploadcare.com/projects/-/settings/#delivery).
9696

9797
### Basic usage
@@ -109,7 +109,7 @@ with open("sample-file.jpeg", "rb") as file_object:
109109
And your file is now uploaded to the Uploadcare CDN. But how do you access it from the web? It’s really simple:
110110

111111
```python
112-
print(ucare_file.cdn_url) # file URL, e.g.: https://ucarecdn.com/640fe4b7-7352-42ca-8d87-0e4387957157/
112+
print(ucare_file.cdn_url) # file URL, e.g.: https://demo.ucarecd.net/640fe4b7-7352-42ca-8d87-0e4387957157/
113113
```
114114

115115
And what about information about the file?
@@ -140,7 +140,7 @@ pprint(ucare_file.info)
140140
# 'is_ready': True,
141141
# 'metadata': {},
142142
# 'mime_type': 'image/jpeg',
143-
# 'original_file_url': 'https://ucarecdn.com/640fe4b7-7352-42ca-8d87-0e4387957157/samplefile.jpeg',
143+
# 'original_file_url': 'https://demo.ucarecd.net/640fe4b7-7352-42ca-8d87-0e4387957157/samplefile.jpeg',
144144
# 'original_filename': 'sample-file.jpeg',
145145
# 'size': 3518420,
146146
# 'source': None,
@@ -158,7 +158,7 @@ from pyuploadcare.transformations.image import ImageTransformation, ScaleCropMod
158158
ucare_file.set_effects("scale_crop/512x512/smart/")
159159
ucare_file.set_effects(ImageTransformation().scale_crop(512, 512, mode=ScaleCropMode.smart))
160160

161-
print(ucare_file.cdn_url) # https://ucarecdn.com/640fe4b7-7352-42ca-8d87-0e4387957157/-/scale_crop/512x512/smart/
161+
print(ucare_file.cdn_url) # https://demo.ucarecd.net/640fe4b7-7352-42ca-8d87-0e4387957157/-/scale_crop/512x512/smart/
162162
```
163163

164164
There’s a lot more to uncover. For more information please refer to the [documentation](#documentation).

0 commit comments

Comments
 (0)