Skip to content

lyncas/photolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 

Repository files navigation

#photo-log-generator

A Simple django project that does the following:

  1. Allows user to input a zip file of photos.
  2. User can preview the photos, add caption on each photo, change the photo order and save.
  3. After saving project, user can generate photo log report.
  4. User can also choose to download tempfile to resume the project later.

#Database Configuration if mysql has not been configured

  1. sudo apt-get update
  2. sudo apt-get install mysql-server
  3. sudo mysql_secure_installation
  4. sudo mysql_install_db
  5. sudo apt-get install mysql-client
  6. sudo apt-get install libmysqlclient-dev

#Updating Python

  1. pip install --upgrade pip
  2. pip install --upgrade pillow
  3. sudo apt-get install libjpeg8-dev
  4. pip install xlrd orbit python-docx docx2txt

##Installation

  1. Clone the repo.
  2. pip install -r requirements.txt
  3. sudo mysql -p
  4. create database photoreport;
  5. exit;
  6. update mysql credentials in photoreport/settings.py line 80.

##Running the server

  1. python manage.py makemigrations
  2. python manage.py migrate
  3. python manage.py runserver 4.optional python manage.py runserver 0.0.0.0:8000 (allows computers external to access)
  4. View 127.0.0.1:8000 on the local computer or use the ipaddress of the computer to access externally.

##git quick instructions: %: git clone repoAddress %: git pull origin %: git add files %: git commit -am 'what i changed' %: git push origin master