mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
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:
parent
30f2930fb3
commit
a562a064b5
1 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue