<commit_before># django-imager
 simple image management website using Django.

**Authors:** <NAME> and <NAME>

##Getting Started

Clone this repository into whatever directory you want to work from.
```
https://github.com/clair3st/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 ENV
$ source ENV/bin/activate
```
Once your environment has been activated, make sure to install Django and all of this project's required packages.
```
(django-imager) $ pip install -r requirements.pip
```
Navigate to the project root, lending_library, and apply the migrations for the app.
```
(django-imager) $ cd lending_library
(django-imager) $ ./manage.py migrate
```
Finally, run the server in order to server the app on localhost
```
(django-imager) $ ./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.


##Current Models (outside of Django built-ins):

This application allow users to store and organize photos. 

**The `UserProfile` model contains:**

- What type of camera they have (Nikon, iPhone 7, Canon)
- Address
- Bio
- Personal Website
- Hireable
- Travel Radius
- Phone
- Type of Photography (nature, urban, portraits)

The model also supports the following API:

- ImagerProfile.active: provides full query functionality limited to profiles for users who are active (allowed to log in)
- profile.is_active: a property which returns a boolean value indicating whether the user associated with the given profile is active

**The `Photo` model contains:**

- Image_file
- Title
- Description
- Date Uploaded, Date Modified and Date Published
- Photographer - linked to a UserProfile
- Shared or Public

**The `Album` model contains:**

- Contents - Instance of Photo model
- Title
- Description
- Date Uploaded, Date Modified and Date Published
- Owner - linked to a UserProfile
- Shared or Public
- Cover Photo - Photo model


##Current URL Routes
```
/admin
```


##Running Tests

Running tests for the django-imager is fairly straightforward. Navigate to the same directory as the manage.py file and type:
```
(django-imager) $ coverage run manage.py test
```
This will show you which tests have failed, which tests have passed. If you'd like a report of the actual coverage of your tests, type
```
(django-imager) $ coverage report
```
This will read from the included .coverage file, with configuration set in the .coveragerc file. Currently the configuration will show which lines were missing from the test coverage.
<commit_msg>Added routes<commit_after># django-imager
 simple image management website using Django.

**Authors:** <NAME> and <NAME>

##Getting Started

Clone this repository into whatever directory you want to work from.
```
https://github.com/clair3st/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 ENV
$ source ENV/bin/activate
```
Once your environment has been activated, make sure to install Django and all of this project's required packages.
```
(django-imager) $ pip install -r requirements.pip
```
Navigate to the project root, imagersite, and apply the migrations for the app.
```
(django-imager) $ cd imagersite
(django-imager) $ ./manage.py migrate
```
Finally, run the server in order to server the app on localhost
```
(django-imager) $ ./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.


##Current Models (outside of Django built-ins):

This application allow users to store and organize photos. 

**The `UserProfile` model contains:**

- What type of camera they have (Nikon, iPhone 7, Canon)
- Address
- Bio
- Personal Website
- Hireable
- Travel Radius
- Phone
- Type of Photography (nature, urban, portraits)

The model also supports the following API:

- ImagerProfile.active: provides full query functionality limited to profiles for users who are active (allowed to log in)
- profile.is_active: a property which returns a boolean value indicating whether the user associated with the given profile is active

**The `Photo` model contains:**

- Image_file
- Title
- Description
- Date Uploaded, Date Modified and Date Published
- Photographer - linked to a UserProfile
- Shared or Public

**The `Album` model contains:**

- Contents - Instance of Photo model
- Title
- Description
- Date Uploaded, Date Modified and Date Published
- Owner - linked to a UserProfile
- Shared or Public
- Cover Photo - Photo model


##Current URL Routes
- `/admin` Superuser admin page.
- `/` Home page.
- `/login` Login page.
- `/logout` Logout route, no view.
- `/accounts/register` Register a user form.
- `/accounts/activate/complete/` Activation complete view.
- `/accounts/register/complete/` Registration complete, email sent.


##Running Tests

Running tests for the django-imager is fairly straightforward. Navigate to the same directory as the manage.py file and type:
```
(django-imager) $ coverage run manage.py test
```
This will show you which tests have failed, which tests have passed. If you'd like a report of the actual coverage of your tests, type
```
(django-imager) $ coverage report
```
This will read from the included .coverage file, with configuration set in the .coveragerc file. Currently the configuration will show which lines were missing from the test coverage.

{'fraction_non_alphanumeric': 0.08559685489635453, 'fraction_numerical': 0.004288777698355968, 'mean_word_length': 4.230841121495327, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '158628', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1464, 'n_words': 736}