My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

This application is an extension to the django-page-cms at http://code.google.com/p/django-page-cms. It enables you to have image placeholders anywhere in your page templates just as normal text placeholders as shown below.

{% image_placeholder right_image1 as image %}
{% if image %}
    <img src="{% thumbnail image 300x400 %}" />
{% endif %}

How-to use

When you have a working Django Pages workspace, installation is as easy as follows.

  1. Add sorl-thumbnail to your project as described at http://code.google.com/p/sorl-thumbnail
  2. Check out this project as an application in your Django workspace
  3. Add pages_images_extension to installed applications in settings.py
  4. Run python manage.py syncdb
  5. Add an image placeholder as shown above in the desired template

Uploaded images are by default saved to a folder named pages_images_upload in your media folder. This can be changed by editing pages_images_extension/models.py

Notice

This application is constantly under development when time is available. Any feedback and contribution is appreciated.

Powered by Google Project Hosting