Coder Social home page Coder Social logo

django-cms / django-filer Goto Github PK

View Code? Open in Web Editor NEW
1.7K 56.0 571.0 10.71 MB

File and Image Management Application for django

Home Page: https://django-filer.readthedocs.io/

License: Other

Python 62.54% JavaScript 9.74% HTML 13.51% SCSS 14.20% CSS 0.01%
addon cms python django django-cms

django-filer's Introduction

django CMS

image

image

image

Code Climate

Open source enterprise content management system based on the Django framework and backed by the non-profit django CMS Association (Sponsor us!).

Contribute to this project and win rewards

Because django CMS is a community-driven project, we welcome everyone to get involved in the project and receive a reward for their contribution. Become part of a fantastic community and help us make django CMS the best open source CMS in the world.

Attention

Please use the develop branch as the target for pull requests for on-going development.

Security fixes will be backported to older branches by the core team as appropriate.

Features

  • hierarchical pages
  • extensive built-in support for multilingual websites
  • multi-site support
  • draft/publish workflows
  • version control
  • a sophisticated publishing architecture, that's also usable in your own applications
  • frontend content editing
  • a hierarchical content structure for nested plugins
  • an extensible navigation system that your own applications can hook into
  • SEO-friendly URLs
  • designed to integrate thoroughly into other applications

Developing applications that integrate with and take advantage of django CMS features is easy and well-documented.

More information on our website.

Requirements

See the Python/Django requirements for the current release version in our documentation.

See the installation how-to guide for an overview of some other requirements and dependencies of the current release.

Getting started

These tutorials take you step-by-step through some key aspects of django CMS.

Documentation

Our documentation working group maintains documentation for several versions of the project. Key versions are:

  • stable (default), for the current release version
  • latest, representing the latest build of the release-3.4.x branch
  • develop, representing the latest build of the develop branch

For more information about our branch policy, see Branches.

Our documentation is hosted courtesy of Read the Docs.

The dependencies for the docs are compiled by pip-tools.

Test django CMS in our demo

The demo platform is kindly provided by Divio, platinum member of the django CMS Association.

Try demo with Divio Cloud

Getting Help

Please head over to our Slack channel or our discourse forum for support.

Professional support

Choose from a list of trusted tech partner of the django CMS Association to get your website project delivered successfully.

Choose a trusted web host for your django CMS project and get your website online today.

The django CMS Association

The django CMS Association is a non-profit organization that was founded in 2020 with the goal to drive the success of django CMS, by increasing customer happiness, market share and open-source contributions. We provide infrastructure and guidance for the django CMS project.

The non-profit django CMS Association is dependent on donations to fulfill its purpose. The best way to donate is to become a member of the association and pay membership fees. The funding will be funneled back into core development and community projects.

Join the django CMS Association.

Credits

django-filer's People

Contributors

acatton avatar belimawr avatar croepha avatar czpython avatar darbula avatar dylanncordel avatar finalangel avatar flight avatar fsbraun avatar jrief avatar jvamvas avatar kux avatar lory87 avatar marksweb avatar mattbriancon avatar mikek avatar mitar avatar mkoistinen avatar mmahnic avatar neoascetic avatar pre-commit-ci[bot] avatar skirsdeda avatar stefanfoulis avatar timgraham avatar vinitkumar avatar vstoykov avatar vthaian avatar vxsx avatar yakky avatar yml avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-filer's Issues

FilerImageField problem with Stacked Inline in the admin

When using a FilerImageField in a stacked inline in the admin, when you select the 'Add another..." button to get another inline the FilerImageField will no longer work.

When you select your image, the pop-up flickers and I get the following js error:

document.getElementById(img_name) is null
[Break On This Error] document.getElementById(img_name).src = chosenThumbnailUrl;
Line: 12 popup_handling.js

I'm running the following:
django==1.2.5
django-cms==2.1.3
django-filer==0.8.2

make files replaceable

allow replacing a file with a new version. that way all apps that link to the file instantly have the new version.

Permission checks for Downloads

Prevent certain files from being downloadable if you don't have permissions.
This could be implemented with the "x-sendfile" header for most hosting situations. While in development files can be served directly by the development server.
Public files could be served separately without going through the django app for performance.

Mixing images and files

It seems like django-filer tries to separate images and other files, but it does not really succeed. For example, in main folder list there is a count of images, but if I open a folder, it counts images. In both cases it displays the same number and it is a number of all files. But as it seems from this error:

https://github.com/stefanfoulis/cmsplugin-filer/issues/#issue/11

There is some notion of difference between files and images? So it would be possible to display count for both images and files?

Incompatible with windows / breaks with MEDIA_URL containing a full URL

When running on Windows, the "upload" button does not appears.
The reason is wrong code in settings.py

FILER_STATICMEDIA_PREFIX = os.path.normpath( getattr(settings, 'FILER_STATICMEDIA_PREFIX', os.path.join(settings.MEDIA_URL,'filer/') ) ) + '/'

On windows delimiter of path is ''. And now on Windows this code generates url like \media\uploads/filer/

I think there shouldn't be os.path functions at all or they should be wrapped by urllib.pathname2url

Another symptom of this was reported by @hipikat in #60:
In filer/settings.py, several variables such as FILER_STATICMEDIA_PREFIX are being defined and run through os.path.normpath() at the last step. Where settings such as settings.MEDIA_URL are absolute urls, i.e. starting with 'http://' (as they are welcome to do, and is recommended for separate media servers), normpath() collapses 'http://' to 'http:/', breaking the link.

Focal point bug with tall images

Apologies if this has already been fixed - I'm using an older version, but I haven't seen any reference to this, so maybe it's still an issue.

If the image is square or wide, then the focal point works well. If the image is taller than it is wide, though, what happens is that values generated by the focal point tool are incorrect by height/width.

So if the image is 2000x3000, the values will be divided by 1.5.

add collections

collections are lists of files that can be created in admin and can be used by other apps. e.g for a slideshow or download list.
collections should be dynamic. e.g add all images that are in folder X these two files and all files that have tag Y.

Template problem

Having a harsh time trying to install this app. There are no instructions that I can find.
I cloned from git, did a setup and added 'filer' to my INSTALLED_APPS. Managed to run syncdb okay. All seems fine.
When I go into admin, I see the "Image Filer" section. I can go into "Folder permissions", but not anywhere else.

Here's the error message I get. Will hack further, but have little time.

TemplateDoesNotExist at /admin/image_filer/folder/

image_filer/directory_listing.html

Request Method: GET
Request URL: http://ddm.cms/admin/image_filer/folder/
Django Version: 1.2.1
Exception Type: TemplateDoesNotExist
Exception Value:

image_filer/directory_listing.html

Exception Location: /usr/local/lib/python2.6/dist-packages/django/template/loader.py in find_template, line 138
Python Executable: /usr/bin/python
Python Version: 2.6.4
Python Path: ['/usr/local/lib/python2.6/dist-packages/django_cms-2.1.0.beta3-py2.6.egg', ... '/usr/local/lib/python2.6/dist-packages']
Template-loader postmortem

Django tried loading these templates, in this order:

* Using loader django.template.loaders.filesystem.Loader:
* Using loader django.template.loaders.app_directories.Loader: 

Upload not working with Django 1.2.5

I've got django-filer up and running with Django 1.2.4, but with Django 1.2.5. files won't show up in the clipboard. An error is displayed in the clipboard instead: "upload failed". So I cannot assign uploaded files to any folder.

Although files are uploaded to the file system and written into the folder "filer_private".

Non-standard media directory causes Image thumbnail to fail

In imagemodels.py, the following lines require "hard-coding" the media directory to be /media:

def rel_image_url(self):
    'return the image url relative to MEDIA_URL'
    try:
        rel_url = u"%s" % self._file.url
        if rel_url.startswith('/media/'):
            before, match, rel_url = rel_url.partition('/media/')
        return rel_url

If you wish to use a different format, eg: /site_media/media (as Pinax does), then this code renders <img src=""> instead of the actual URL.

Might I suggest that since the description states: 'return the image url relative to MEDIA_URL', that the function actually use settings.MEDIA_URL?

os.path.normpath breaking filer_staticmedia_prefix at al.

In filer/settings.py, several variables such as FILER_STATICMEDIA_PREFIX are being defined and run through os.path.normpath() at the last step. Where settings such as settings.MEDIA_URL are absolute urls, i.e. starting with 'http://' (as they are welcome to do, and is recommended for separate media servers), normpath() collapses 'http://' to 'http:/', breaking the link.

directory_listing.html "change" link broken

Looks like there might be a typo in this file on line 64:
filer/templates/admin/filer/folder/directory_listing.html

Originally:

<span class="small quiet">({% blocktrans count folder.children_count as counter %}1 folder{% plural %}{{ counter }} folders{% endblocktrans %}, {% blocktrans count folder.file_count as counter %}1 file{% plural %}{{ counter }} files{% endblocktrans %})</span>

Changed to:

<span>{% if is_popup %}{% else %}<a style="display: block; float: right;" class="changelink" href="{% url admin:index %}filer/folder/{{ folder.id }}/" title="{% trans "Change current folder details" %}">{% trans "Change" %}</a>{% endif %}</span>

Seemed to fix the link problem i had.

Better Clipboard integration

Files should be displayed grayed out in the folder view of they are in the clipboard (and not removed from the folder as soon as they are added to the clipboard)

clean up popup for inserting files

  • one clear "insert" link (no more clicking on title or thumb to insert)
  • allow change_view of image in popup (needs clean popup propagation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.