Django boilerplate for any scalable WebApp project. Equipped with users app, celery, django-debug-toolbar, lightbox.js, dropzone.js and cropper.js.
- To avoid the repetitive tasks of setting up a new Django Web App project. If a project requires image upload, and user login/register functionalities, this boilerplate can be used for easy start up.
-
Separate app folder containing all apps
- Apps details:
-
singleimages: To upload single image at a time using django forms and models.
-
multipleimages: To upload multiple images using django forms and models.
-
croppedimages: To upload single original image using django forms and models, and then cropping that image(using cropperjs) and storing all cropped images corresponding to the orig image.
-
dropzoneimages: To upload multiple images using dropzonejs.
-
Users: A users app with login, logout and sign up pages.
-
- Apps details:
-
Reusable/Pluggable Apps
- All apps can be added to other projects with tweaking a little.(Yes few lines need to be added or deleted from settings, urls, and views if an app is removed.)
-
Settings.py
- base.py
- development.py
- production.py
- test.py
-
Secrets.json (For boilerplate only. Preferably add in .gitignore)
- To store database, email backend credentials and the secret-key
-
static
- Local static files with, bootstrap
-
Templates folder
- base.html
- partials folder contains _nav, _paginator, _scripts and other html file
-
Requirements folder
- Separate for base, development, production & testing
- Login through django admin after createsuperuser command, in users model check active box.
- Logout from django admin
- Restart app and login again.
- django-crispy-forms
- Pillow
- Django-cleanup
- OpenCV
- Celery
-
Ekko-lightbox: To display images in a lightbox.
-
Dropzonejs: To upload multiple images
-
Cropperjs: To crop an image at front-end
This boilerplate relies on the following plugins, libraries and frameworks:
- Bootstrap
- Django
- django-registration
- django-crispy-forms
- Pillow
- Opencv2
- Dropzone
- CropperJs
- Ekko-lightbox-BS5
- django-debug-toolbar
amqp==5.1.1
asgiref==3.5.2
autopep8==1.6.0
backports.zoneinfo==0.2.1
billiard==3.6.4.0
celery==5.2.7
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.5
Django==4.0.6
django-celery-beat==2.3.0
django-celery-results==2.4.0
django-cleanup==6.0.0
django-crispy-forms==1.14.0
django-debug-toolbar==3.5.0
django-timezone-field==5.0
kombu==5.2.4
numpy==1.23.1
opencv-contrib-python==4.6.0.66
Pillow==9.2.0
prompt-toolkit==3.0.30
pycodestyle==2.8.0
python-crontab==2.6.0
python-dateutil==2.8.2
pytz==2022.1
six==1.16.0
sqlparse==0.4.2
toml==0.10.2
tzdata==2022.1
vine==5.0.0
wcwidth==0.2.5