All Projects → VelinGeorgiev → Django Photo Gallery

VelinGeorgiev / Django Photo Gallery

Licence: apache-2.0
Responsive Django Image Gallery Site Sample optimized for performance and mobile devices

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Photo Gallery

Django Antd Tyadmin
类似 xadmin 的基于Model 快速生成前后台管理增删改查,筛选,搜索的后台管理自动化工具。Antd 界面好看现代化!前后端分离!无损二次开发!由Django Restful Framework 和 Ant Design Pro V4 驱动
Stars: ✭ 171 (-4.47%)
Mutual labels:  django
Tiebaproject
贴吧云签到,贴吧云回复,贴吧机器人,百度贴吧
Stars: ✭ 176 (-1.68%)
Mutual labels:  django
Musicx Music Player
Simple, Elegant ,Beautiful Material Android Music Player.
Stars: ✭ 179 (+0%)
Mutual labels:  album
Django Blog It
django blog - complete customization and ready to use with one click installer
Stars: ✭ 172 (-3.91%)
Mutual labels:  django
Crud App Vuejs Django
This is simple crud app and searchFilter made using vuejs and django. Used to explain the tutorial present on https://medium.com/@shubhambansal_89125/crud-app-using-vue-js-and-django-516edf4e4217 https://medium.com/@shubhambansal_89125/searchfilter-using-django-and-vue-js-215af82e12cd
Stars: ✭ 174 (-2.79%)
Mutual labels:  django
Bootcamp
An enterprise social network
Stars: ✭ 2,110 (+1078.77%)
Mutual labels:  django
Niji
A pluggable Django forum APP
Stars: ✭ 173 (-3.35%)
Mutual labels:  django
Justchat
A chat application built with Django channels.
Stars: ✭ 183 (+2.23%)
Mutual labels:  django
Mygpo
The gpodder.net webservice
Stars: ✭ 176 (-1.68%)
Mutual labels:  django
Django Suit
Modern theme for Django admin interface
Stars: ✭ 2,136 (+1093.3%)
Mutual labels:  django
Sugardough
A web application template based on Django.
Stars: ✭ 173 (-3.35%)
Mutual labels:  django
Django Vue.js Book
django rest framework + vue 的图书管理小项目,前后端分离教程
Stars: ✭ 173 (-3.35%)
Mutual labels:  django
Django Import Export
Django application and library for importing and exporting data with admin integration.
Stars: ✭ 2,265 (+1165.36%)
Mutual labels:  django
Graphene Django Subscriptions
This package adds support to Subscription's requests and its integration with websockets using Channels package.
Stars: ✭ 173 (-3.35%)
Mutual labels:  django
Misago
Misago is fully featured modern forum application that is fast, scalable and responsive.
Stars: ✭ 2,170 (+1112.29%)
Mutual labels:  django
Viewflow
Reusable workflow library for Django
Stars: ✭ 2,136 (+1093.3%)
Mutual labels:  django
Django Tracking2
django-tracking2 tracks the length of time visitors and registered users spend on your site. Although this will work for websites, this is more applicable to web _applications_ with registered users. This does not replace (nor intend) to replace client-side analytics which is great for understanding aggregate flow of page views.
Stars: ✭ 176 (-1.68%)
Mutual labels:  django
Django dramatiq
A Django app that integrates with Dramatiq.
Stars: ✭ 181 (+1.12%)
Mutual labels:  django
Django Rest Framework Serializer Extensions
Extensions to help DRY up Django Rest Framework serializers
Stars: ✭ 180 (+0.56%)
Mutual labels:  django
Dailyfresh B2c
dailyfresh mall based on B2C model
Stars: ✭ 177 (-1.12%)
Mutual labels:  django

Django Photo Gallery Sample

Django Photo Gallery Sample Version

Summary

This sample contains a Django 2.0.x Image Gallery Site. The album images are optimized for performance. The Django Photo Gallery Sample is responsive and mobile/device friendly.

Django Photo Gallery Sample

Create an album from the Django admin panel

Albums can be created from the Django admin panel where one zip file with all the images should be selected from the PC. The Django Photo Gallery will resize the images to improve the picute load times and will also create thumbnail for every image in the zip.

Django Photo Gallery Sample

Tested with Django / Python

Python Django

Additional Django apps dependencies

  • Pillow
  • django-imagekit

Additional JavaScript apps dependencies

  • jquery
  • photoswipe

Prerequisites

Solution

Solution Author(s)
Django Photo Gallery Velin Georgiev (@VelinGeorgiev)

Version history

Version Date Comments
0.0.1 April 30, 2017 Initial commit
0.0.2 April 06, 2018 Updated to python 3.6 and Django 2.0.4
0.0.3 December 31, 2018 Updated to Django 2.1.4 and Django-material 1.4.3
0.0.4 July 19, 2019 Updated to Django 2.2.3

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository.
  • Open the command line, navigate to the django app folder and execute:
    • virtualenv env (requires virtualenv), Mac virtualenv yourenv -p python3.6
    • Linux: source env/bin/activate, Windows: call env/Scripts/activate.bat, Mac source env/bin/activate
    • navigate to the django_photo_gallery folder using cd django_photo_gallery
    • execute pip install -r requirements.txt or pip3 install -r requirements.txt depending on your python installation.
    • If the Pillow fail to install on Windows, then install it manually pip install ../whl/Pillow-5.0.0-cp36-none-win32.whl (if you are not using python 3.6 32 bit then download the Pillow wheel for your python version).
    • Run python manage.py migrate or python3 manage.py migrate
    • Run python manage.py runserver or python3 manage.py runserver depending on your python installation
    • Open http://127.0.0.1:8000/ in web browser.
    • To access the admin forms go to http://127.0.0.1:8000/admin/ and enter user: admin, password: administrator

Features

This Sample illustrates the following concepts on top of the Django Framework:

  • Using django-material and materializecss for building Django UI.
  • Using django-imagekit for building resizing images.
  • Using photoswipe javascript library for more rich image gallery user experience.

Control the image size and quality

The picture size and quality can be controlled programatically from the models.py. Just change the processors. For more information see django-imagekit.

class AlbumImage(models.Model):
    image = ProcessedImageField(upload_to='albums', processors=[ResizeToFit(1280)], format='JPEG', options={'quality': 70})
    thumb = ProcessedImageField(upload_to='albums', processors=[ResizeToFit(300)], format='JPEG', options={'quality': 80})
    ...

Sample data cleanup

To cleanup the sample data delete the sql lite database and the media folder files. Create new database and run the sample again.

No validation on the form

This is sample. I decided to keep it simple and let the validation to be added by you.

Sharing is Caring

Star if you like it :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].