Add image upload instructions

I had some trouble with getting MarkdownX's image upload feature to work the other day. Turns out I forgot to define my `MEDIA_ROOT` and my `MEDIA_URL` in my `settings.py`. This will save time for people when installing MarkdownX in their project.
This commit is contained in:
tury 2020-04-20 21:10:51 -04:00 committed by GitHub
parent 30f2930fb3
commit a562a064b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,12 @@ urlpatterns += [
url(r'^markdownx/', include(markdownx))
]</code></pre>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Make sure that you have defined <code>MEDIA_ROOT</code> and <code>MEDIA_URL</code> in your <code>settings.py</code> to enable MarkdownX's image upload feature.
</p>
</div>
<div class="admonition caution">
<p class="admonition-title">Caution</p>
<p>Don't forget to collect MarkdownX assets to your <code>STATIC_ROOT</code>. To do this, run:</p>