Skip to content

carloscadena/django-imager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Imager Build Status Coverage Status

Simple image management website using Django

Authors

  • Ely Paysinger
  • Carlos Cadena

To Install:

Clone this repository

git clone https://github.com/carloscadena/django-imager.git

Start up a new virtual environment.

$ cd django-imager
$ python3 -m venv ENV
$ source ENV/bin/activate

Once your environment has been activated, install Django and required packages.

(ENV) $ pip install -r requirements.pip

Navigate to the project root, imagersite, and apply the migrations for the app.

(ENV) $ cd imagersite

(ENV) $ ./manage.py migrate

Run the server in order to server the app on localhost

(ENV) $ ./manage.py runserver

Django serves on port 8000

Routes

  • /
  • /login
  • /logout
  • /account/register
  • /profile
  • /profile/
  • /admin
  • /images/albums
  • /images/albums/
  • /images/albums/add
  • /images/photos/
  • /images/photos/add
  • /library

Models

User

  • username
  • email
  • password

Profile

  • user
  • location
  • creation date
  • birthday
  • photog_level
  • website
  • headline
  • active

Photo

  • title
  • description
  • profile
  • image
  • date_uploaded
  • date_modified
  • date_published
  • published =

Album

  • profile
  • title
  • date_uploaded
  • date_modified
  • date_published
  • published
  • cover_photo
  • photos

Ansible repo

Requirements

Usage

  • clone ansible repo: git clone https://github.com/W-Ely/ansible.git
  • cd into dir: cd ansible
  • create a "hosts" file with your variables inside following the format in hosts_template
  • run ansible playbook to deploy: ansible-playbook -i hosts playbooks/django-project.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published