Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Strawberry | 3,241 | a day ago | 379 | mit | Python | |||||
A GraphQL library for Python that leverages type annotations 🍓 | ||||||||||
Zappa | 2,487 | 389 | 6 | 4 days ago | 129 | November 11, 2021 | 487 | mit | Python | |
Serverless Python | ||||||||||
Ariadne | 2,021 | 10 | 29 | a day ago | 34 | April 22, 2022 | 55 | bsd-3-clause | Python | |
Python library for implementing GraphQL servers using schema-first approach. | ||||||||||
Server | 1,240 | 4 months ago | 41 | agpl-3.0 | Python | |||||
The Etebase server (so you can run your own) | ||||||||||
Imooc Django | 845 | a year ago | 4 | Python | ||||||
高仿慕课网:py3.5 + Django1.10 + xadmin 搭建的在线课程教育平台 | ||||||||||
Django Sslserver | 596 | 337 | 7 | 3 years ago | 13 | December 10, 2019 | 34 | mit | Python | |
A SSL-enabled development server for Django | ||||||||||
Fastwsgi | 361 | a month ago | 7 | February 23, 2022 | 5 | other | C | |||
An ultra fast WSGI server for Python 3 | ||||||||||
Django Docker | 340 | 5 years ago | 2 | mit | Python | |||||
A framework for deploying Django projects on Docker | ||||||||||
Django Livereload Server | 339 | 36 | 3 months ago | 10 | December 14, 2021 | 17 | bsd-3-clause | Python | ||
Livereload functionality integrated with your Django development environment. | ||||||||||
Chatire | 312 | 2 years ago | 14 | JavaScript | ||||||
:speech_balloon: Real time Chat application built with Vue, Django, RabbitMQ and uWSGI WebSockets. |
Filemanager is a simple Django app to browse files on server. You can also integrate this filemanager with CKEditor.
Install it by
pip install -e git+https://github.com/IMGIITRoorkee/django-filemanager.git#egg=django-filemanager
Add "filemanager"
to your INSTALLED_APPS
setting like this::
INSTALLED_APPS = (
...
'filemanager',
)
As a filemanager : To upload files on server by a user to a directory and let him manage his directory by adding, renaming and deleting files and folders inside it.
Integrating it with CKEditor for the functionality of "Browse Server".
In urls.py
of your app to make filemanager run at url /abc/
.
from django.conf.urls import url
from filemanager import path_end
from views import view
urlpatterns = (
.
.
url(r'^abc/' + path_end, view, name='view'),
)
Then write the view in views.py
of your app:
from django.conf import settings
from filemanager import FileManager
def view(request, path):
extensions = ['html', 'htm', 'zip', 'py', 'css', 'js', 'jpeg', 'jpg', 'png']
fm = FileManager(settings.MEDIA_ROOT, extensions=extensions)
return fm.render(request, path)
And it is done, you can find above code in tests
directory.
Adding constraints to Filemanager :
FileManager __init__
is defined as:
def __init__(self, basepath, ckeditor_baseurl='', maxfolders=50, maxspace=5 * 1024, maxfilesize=1 * 1024,
public_url_base=None, extensions=None):
"""
basepath: User's directory basepath in server.
maxfolders: Maximum number of total nested folders allowed inside the user directory.
maxspace (in KB): Maximum space allowed for the user directory.
maxfilesize (in KB): Limit for the size of an uploaded file allowed in user directory.
extensions: List of extensions allowed. Ex. ['pdf','html'] etc.
public_base_url: A base_url if given there will be an option to copy file url with the given url_base.
"""
Hence one should also pass arguments like maxfolders
, maxspace
, maxfilesize
if one doesn't want to use the default ones.
If extensions list is not passed then all file-extensions are allowed for upload.
Use filemanager.models.CKEditorField
field in you model. Or you can use filemanager.widgets.CKEditorWidget
as a
widget for CKEditor in forms.
Both classes can take an extra argument filemanager_url
while making instances from them.
Suppose you want to run filemanager at url /abc/
in your app then make changes in urls.py
and views.py
like above.
Then in CKEditorField
or CKEditorWidget
pass the url of filemanager as argument filemanager_url
.
For example in models.py
:
from django.db import models
from filemanager.models import CKEditorField
class MyModel(models.Model):
content = CKEditorField(filemanager_url='/app/abc/')