Giter Site home page Giter Site logo

django-filemanager's People

Contributors

akki avatar eraymitrani avatar erwinjunge avatar guy881 avatar jagannath93 avatar mahipjain avatar ogroleg avatar rohithasrk avatar shaddygarg avatar shaunbrady avatar shhaumb avatar shinning91 avatar zenbhang 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

django-filemanager's Issues

Write the basic tests for the application

One of the very important requirements of open source packages is being able to test them. Django's tests are good enough as they use unittest framework of python. This is something that needs to be done soon.

Filemanager not loading CSS

Image of fabc

When I type /abc/ in the url, i.e.:

127.0.0.1:8000/abc/

I have no errors, page is opened, but there is no styling.

I tried to remove everything from static folder and 'collectstatic' again.
I tried to open in different browsers, but problem still occurs

Catchall excepts

There are a lot of catchall excepts in the code. These can hide exceptions that should actually bubble up through the stack.

We should make all except clauses use exception classess for the specific type of exception we are expecting and handling.

WindowsError at /abc/ [Error 2] The system cannot find the file specified: '/media/user_folder'

After trying typing in browser /abc/ url

Exception Type: WindowsError
Exception Value: [Error 2] The system cannot find the file specified: '/media/user_folder'
Exception Location: C:\myproject\filemanager\__init__.py in directory_structure, line 210
#filemanager/__init__.py

  def directory_structure(self):
    self.idee = 0
    dir_structure = {'':{'id':self.next_id(),'open':'yes','dirs':{},'files':[]}}
    os.chdir(self.basepath)  #<-----line 210
    for directory,directories,files in os.walk('.'):
      directory_list = directory[1:].split('/')
      current_dir = None
      nextdirs = dir_structure
      for d in directory_list:
        current_dir = nextdirs[d]
        nextdirs = current_dir['dirs']
      if directory[1:]+'/' == self.current_path:
        self.current_id = current_dir['id']
      current_dir['dirs'].update(dict(map(lambda d:(d,{'id':self.next_id(),'open':'no','dirs':{},'files':[]}),directories)))
      current_dir['files'] = files
    return dir_structure

Refactor code base

As of now, a lot of code has been written in the __init__.py file which is a bad practice. The goal is to refactor the code.

Failure to use unicode literals (u'')

The code uses string literals '' instead of unicode literals u'' in a lot of places. When combined with potential unicode characters from database content this will break on encoding errors.

We should convert all regular string literals to unicode literals.

'module' object has no attribute 'CKEditorWidget'

AttributeError at /admin/home/homepage/1/
'module' object has no attribute 'CKEditorWidget'
Request Method: GET
Request URL:    http://127.0.0.1:8000/admin/home/homepage/1/
Django Version: 1.7
Exception Type: AttributeError
Exception Value:    
'module' object has no attribute 'CKEditorWidget'
Exception Location: C:\djangoproject\filemanager\models.py in formfield, line 16

This is models.py of app 'home'

class HomePage(models.Model):
    homecopy = CKEditorField(filemanager_url='/app/abc/')
    class Meta:
        verbose_name=verbose_name_plural="1. Main Page"
    def __unicode__(self):
        return 'Main Page'

When I change
from filemanager.models import CKEditorField
to
from filemanager.widgets import CKEditorWidget

I have no errors, but CKEditor dissapears and I don't even have any text areas in my django admin panel.

Views of my djangoproject urls.py

urlpatterns = patterns('',
    url(r'^abc/'+path_end,'view'),
    url(r'^$','home.views.index'),
    url(r'^ckeditor/', include('ckeditor.urls')),
    url(r'^admin/', include(admin.site.urls)),
)+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Is the project dead?

Hi, the question is dead or works for compatible version django 1.10.x???

thank

Project Compatibilty with django 3.8.0

im trying to integrate file manager with django 3.8.0 but it always giving error :ImportError: cannot import name 'path_end' from 'filemanager'.
I want to know that is this project compatible with django 3.8.0

cannot import FileManager

after installing the package i'm unable to import FileManager according to the instructions in the readme

Firefox 24.0 produces to file upload dialogues from one click

I believe this issue stems from here: https://github.com/IMGIITRoorkee/django-filemanager/blob/master/filemanager/static/filemanager/js/script.js#L41. I believe that this was a bug in Firefox long ago: https://bugzilla.mozilla.org/show_bug.cgi?id=701353 and has since been fixed, making the extra click redundant. Removing the extra click function fixes Firefox 24, and does not break Chrome 32.0.1700.107. I wanted to confirm the reason for this code block before issuing a pull request to remove it. Let me know if this is the correct way to proceed.

Thanks!

SB

ReferenceError: CKEDITOR is not defined

Hey,

i am new in using the filemanger and after installation I get this error, when using the brwoser inspector:

ReferenceError: CKEDITOR is not defined

Generally, is it possible to use the filemanger in Django 2.1.7?

[ Beginner in Django]Refused to execute script because its MIME type

Hello,

I just tried this plugin, but I have an issue :

Refused to execute script from 'http://127.0.0.1:8000/abc/filemanager/js/script.js' because its MIME type ('image/png') is not executable.

Every script has the same error message in the console log (Chrome for Linux)

In my settings, I have :

STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
MEDIA_ROOT = '/home/steph/Téléchargements/'

I ran collectstatic, and I can see elements from filemanager in the "static" directory. The js url should not contain "static" somewhere ?

Add a CI to the repo

We could use Travis CI, Circle CI or any other CI depending on what is beneficial. Continuous integration is basically used to build the repo and check for errors. Which will play a major role after the tests have been written and make things easier. Just need to add some files which will instruct the CI to do so. #15 needs to be completed as soon as possible.

Add file preview feature

In order to view a particular file, as of now we'll need to download it first. A file preview feature in the browser is something desirable.

Solve setup.py issue

There seems to be issue in installing some package when running python setup.py develop. The goal is to fix it.

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.