Simple image management website using Django
- Ely Paysinger
- Carlos Cadena
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
- /
- /login
- /logout
- /account/register
- /profile
- /profile/
- /admin
- /images/albums
- /images/albums/
- /images/albums/add
- /images/photos/
- /images/photos/add
- /library
- username
- password
- user
- location
- creation date
- birthday
- photog_level
- website
- headline
- active
- title
- description
- profile
- image
- date_uploaded
- date_modified
- date_published
- published =
- profile
- title
- date_uploaded
- date_modified
- date_published
- published
- cover_photo
- photos
Ansible repo
- EC2, RDS, and S3 setup. <--- more complicated than I can layout here
- EC2, RDS resource -- Irreverently Me - From 0 to 60 with Django on AWS
- S3 resources -- Dan Poirier - Using Amazon S3 to Store your Django Site's Static and Media Files -- Jorge Chang - HOWTO: Deploy a fault tolerant Django app on AWS – Part 2: Moving static and media files to S3
- 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