Git Product home page Git Product logo

django_imager's Introduction

Django Imager

Build Status Coverage Status

Author: Julien Wilson and Maelle Vance

Django Imager is a full Django app that allows you to upload your personal images and share them with the world. You create and manage albums, add new photos to different albums or edit any of them.

Getting Started

Clone this repository into whatever directory you want to work from.

$ git clone https://github.com/ellezv/django_imager.git

Assuming that you have access to Python 3 at the system level, start up a new virtual environment.

$ cd django_imager
$ python3 -m venv venv
$ source venv/bin/activate

Once your environment has been activated, make sure to install Django and all of this project's required packages.

(venv) $ pip install -r requirements.pip

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

(venv) $ cd imagersite
(venv) $ ./manage.py migrate

Finally, run the server in order to server the app on localhost

(venv) $ ./manage.py runserver

Django will typically serve on port 8000, unless you specify otherwise. You can access the locally-served site at the address http://localhost:8000.

Running Tests

Running tests for the django_imager is fairly straightforward. Navigate to the same directory as the manage.py file and type:

(venv) $ coverage run ./manage.py test

This will show you which tests have failed, which tests have passed.

To get the full coverage report, after you have run the tests, type:

(venv) $ coverage report -m

Current Models (outside of Django built-ins)

ImagerProfile

  • user (related to the built-in User)
  • address (unicode)
  • bio (unicode)
  • website (unicode)
  • hireable (boolean, defaults to True)
  • travel radius (integer)
  • phone number (unicode)
  • camera type (choice field)
  • photography type (choice field)
  • is active (boolean)
  • api "ImageProfile.active" returns a query set of all active users

Image

  • title (unicode)
  • description (unicode)
  • date published (datetime)
  • date modified (datetime)
  • date uploaded (datetime)
  • published (choicefield : private, shared or public)
  • image (imagefield)
  • owner (related to ImagerProfile)

Album

  • title (unicode)
  • description (unicode)
  • date published (datetime)
  • date modified (datetime)
  • date created (datetime)
  • published (choicefield: private, shared or public)
  • cover image : (imagefield)
  • owner (related to ImagerProfile)
  • images (related to Image model)

Current URL Routes

  • /admin
  • /login
  • /logout
  • /registration/register/
  • /profile
  • /profile/username
  • /images/library/
  • /images/photos/
  • /images/albums/
  • /images/photos/(pk)/
  • /images/albums/(pk)/
  • /images/photos/add/
  • /images/albums/add/
  • /images/albums/(pk)/edit/
  • /images/photos/(pk)/edit/

django_imager's People

Contributors

ellezv avatar julienawilson avatar

Stargazers

Ted Callahan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.