Coder Social home page Coder Social logo

mucciz / django-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roychela/django-gallery

0.0 1.0 1.0 9.55 MB

A django personal gallery application that displays my photos for others to see.

Home Page: https://roy1gallery.herokuapp.com/

License: MIT License

Python 49.02% HTML 50.98%

django-gallery's Introduction

TITLE

Django-Gallery

AUTHOR

Roy Chela

DESCRIPTION

A django personal gallery application that displays my photos for others to see.

DATE

21/07/2019

BEHAVIOUR DRIVEN DEVELOPMENT(BDD)

Behaviour Input Output
Navigate to website Click on an image Image is expanded and further details of the image displayed
Navigate to locations in navbar Click on a location Photos from that location are displayed
Navigate to search input Type in a photo category e.g cars Photos of that particular category are displayed

SETUP

Requirements

  • Django 1.11
  • Python 3.5 and above

Installation

  • Fork the data onto your own personal repository.
  • Clone Project to your machine
  • Activate a virtual environment on terminal: source virtual/bin/activate
  • Install all the requirements found in requirements file.
  • Access the live site using the local host provided

Prerequisites

  1. Python3.6 )
  2. virtualenv
  3. Pip

Clone the Repo and rename it to suit your needs.

git clone https://github.com/Roychela/DJANGO-GALLERY.git

Initialize git and add the remote repository

git init
git remote add origin <your-repository-url>

Create and activate the virtual environment

python3.6 -m virtualenv virtual
source virtual/bin/activate

Setting up environment variables

Create a .env file and paste the following filling where appropriate:

SECRET_KEY='your_Secret_key'
DEBUG=True
DB_USER='your_database_username'
DB_PASSWORD='your_database_password'
DB_HOST='127.0.0.1'
MODE='dev' 
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
DISABLE_COLLECTSTATIC=1

Install dependancies

Install dependencies that will create an environment for the app to run pip install -r requirements.txt

Make and run migrations

python3.6 manage.py makemigrations && python3.6 manage.py migrate

Run the app

python3.6 manage.py runserver

Open localhost:8000

LIVE SITE

Click Live site to view the deployed application

KNOWN BUGS

None

TECHNOLOGIES

  • Python3.6
  • Django
  • Javascript
  • Css
  • Scss

LICENSE

MIT

django-gallery's People

Contributors

roychela avatar

Watchers

James Cloos avatar

Forkers

willyowi

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.