Comments (2)
Hi Felipe,
The link that you provide me it's a Wagtail tool to generate image URLs in the image preview on the image edit page (good to know that exist this, BTW) but it has nothing to do with the issue that you have.
It seems that you didn't configured properly the staticfiles/medias urls in your main urls.py. The official Wagtail documentation provides an example of how to do that:
http://docs.wagtail.io/en/v1.1/advanced_topics/settings.html#urls-py
Try this and tell me if putting this fixs your problem.
Maybe I would have to update Puput's documentation to tell people who are setting up Puput as standalone app that have to put this urls in his project.
from puput.
Hi @marctc, thanks, for the fast reply.
What you said made it work, I've completely forgot about MEDIA_ROOT/URL settings, so after adding both of them and making django serve them in dev, everything started working 😄
I agree, that it would be a great idea to put this info in the documentation. Both the changes in the urls.py:
if settings.DEBUG:
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns() # tell gunicorn where static files are in dev mode
urlpatterns += static(settings.MEDIA_URL + 'images/', document_root=os.path.join(settings.MEDIA_ROOT, 'images'))
urlpatterns += patterns(
'',
(r'^favicon\.ico$', RedirectView.as_view(url=settings.STATIC_URL + 'blog/images/favicon.ico'))
)
And the setting of MEDIA_ROOT
and MEDIA_URL
, that by default are not been added to the settings.py
by django's start_project anymore.
from puput.
Related Issues (20)
- Upload 1.1.2 on PyPI HOT 4
- Fix broken test suite HOT 1
- Fix broken 1.1.2 package HOT 1
- Unable to relate entry between blogs
- No CSS Styling at all after fresh deployment HOT 2
- Partially working '/blog_admin' page HOT 2
- Is markdown supported ? HOT 2
- Internal Server Error: /admin/snippets/puput/category/add/
- Expected UI issues with Wagtail 3.0 release HOT 1
- How to uninstall puput and use plain wagtail without loosing content HOT 2
- Search is only working for one tree and not searching globaly
- Any update comming for v4.1 LTS HOT 7
- New release? HOT 9
- Imports from wagtail generate deprecation warnings HOT 5
- Do not publish to RSS feed if Blog post is "Private"
- Template overrides HOT 1
- Setup instructions suggest use of deprecated wagtail middleware
- ModuleNotFoundError: No module named 'wagtail.core' on a fresh install of puput HOT 1
- wagtail 5.1 compatibility HOT 2
- Django 5 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puput.