1
0
Fork
You've already forked PyArtistsGallery
0
Standalone web-gallery for arts and photos, written on the Python 3
  • Python 85.4%
  • HTML 10.9%
  • JavaScript 3.3%
  • Mako 0.2%
  • CSS 0.2%
Find a file
h0rr0rrdrag0n b751149558 Add information about application and database version to the admin panel.
Move application version string from setup.py to obsolete version.py file.
Closes #16 issue.
2015年08月06日 01:16:46 +03:00
migrations Add gallery's description. 2015年07月13日 18:28:26 +03:00
pagapp Add information about application and database version to the admin panel. 2015年08月06日 01:16:46 +03:00
static Remove borders around picture. Show pictures in fullscreen. 2015年06月14日 18:37:06 +03:00
templates Add some configs and descriptive test for application deployment with the Nginx. 2015年06月21日 01:08:25 +03:00
tests Gallery title and description is editable in admin panel. 2015年08月01日 11:05:52 +03:00
.gitignore Added pyc files to ignore list 2015年02月17日 22:15:30 +00:00
.travis.yml Merge remote-tracking branch 'origin/develop' into develop 2015年07月17日 00:11:29 +03:00
config.py Add information about application and database version to the admin panel. 2015年08月06日 01:16:46 +03:00
db_ops.py Create infrastructure to perform database migrations. 2015年05月22日 03:29:12 +03:00
LICENSE Add LICENSE file. 2015年05月26日 13:57:13 +03:00
pagapp.ini Add some configs and descriptive test for application deployment with the Nginx. 2015年06月21日 01:08:25 +03:00
pagapp.py Application switched to release mode. 2015年06月21日 21:22:48 +03:00
README.md Arrange repository status badges. Add badge from requires.io. 2015年06月23日 18:46:47 +03:00
requirements.txt Add some configs and descriptive test for application deployment with the Nginx. 2015年06月21日 01:08:25 +03:00
setup.py Add information about application and database version to the admin panel. 2015年08月06日 01:16:46 +03:00
version.py Add information about application and database version to the admin panel. 2015年08月06日 01:16:46 +03:00

PyArtistsGallery

PyPI PyPI PyPI PyPI

About PyArtistsGallery

There is standalone web-gallery for arts and photos. Based on Python 3, Flask and SQLite.

I have searched for small standalone web-gallery without big monsters like MySQL in dependencies (because I cannot run MySQL in my RaspberryPi without liters of liquid nitrogen). I found bunch of galleries, like sfpg (https://sye.dk/sfpg/), but they looks not so nice for me or generate thumbnails for new pictures then user tries to load main page of gallery.

That's why I wrote my own gallery, which looks like I want and do what I want.

Repository status:

Requirements

  • Python 3.3+
  • Pillow
    • python3-dev
    • libjpeg-dev
    • zlib1g-dev
  • flask
  • flask-wtf
  • flask-sqlalchemy
  • flask-login
  • flask-migrate
  • flask-script
  • uWSGI

Install requirements for Pillow before you install pip and virtualenv as described below.

Installation

  1. Install pip and virtualenv.
  2. Create virtualenv (virtualenv -p python3.x .), and activate it (source bin/activate).
  3. Install PyArtistsGallery via pip install PyArtistsGallery. Application will be installed in the virtualenv/lib/python3.x/site-packages. I will refer to this path as /path/to/site-packages/

uWSGI

Execute uWSGI server with next command (virtualenv should be activated):

uwsgi --ini /path/to/site-packages/pagapp.ini

Nginx

There is configuration for Nginx (assume, you cloned this repository to the /usr/share/nginx/www/artgallery):

server {
 listen 8080;
 server_name "server.example";
 client_max_body_size 50M;
 access_log /path/to/access.log;
 error_log /path/to/error.log;
 location /static {
 alias /path/to/site-packages/static;
 }
 location / {
 include uwsgi_params;
 uwsgi_pass unix:/tmp/uwsgi-pagapp.sock;
 }
}

After adding this configuration - do not forget to restart Nginx.