- Python 3.6+
- Git
- Virtualenv (Recommended)
-
clone the project
git clone https://github.com/cmhedrick/ifoundadog.git
-
navigate to the
ifoundadog
directorycd ifoundadog
-
create a virtual environment with python3
virtualenv -p python3 env
-
activate the virtual environment
source env/bin/activate
-
use pip to install the needed dependencies into your virtual environment
pip install -r requirements.txt
-
navigate to the
site_ifoundadog
directorycd site_ifoundadog/
-
create a copy of the
settings_config.py.example
and name it settings_config.pycp settings_config.py.example settings_config.py
-
open the
settings_config.py
file and edit the SECRET_KEY with one generated from the site provided in the source comment. -
navigate to the
app_ifoundadog
directorycd ../app_ifoundadog
-
make a copy of the
config-example.py
and name the copyconfig.py
cp config-example.py config.py
-
open the
config.py
file and edit the API_KEY, make it to the one you generate from the url mentioned in the source. -
navigate back into the main directory
cd ..
-
run the migrate command from the
manage.py
file to apply migrations to the databasepython manage.py migrate
-
create a superuser for the application for the initial login
python manage.py createsuperuser
-
run the local server
python manage.py runserver
-
in your browser go to
0.0.0.0:8000/admin/
and attempt to login -
Explore the rest of the site by going back to the initial screen at
0.0.0.0:8000/
When running the app in OS X, and looking up dogs by license, you may run into errors related to validating the SSL certificate. The urllib library of Python 3.6 depends on a different cert store than OS X's default. More information can be found in the readme.rtf file accompanying the installation. The fix is to obtain the Python-specific store by running: /Applications/Python 3.6/Install Certificates.command SSL certificate verification should then function as expected.
- clone the project
git clone https://github.com/cmhedrick/ifoundadog.git
- navigate to the ifoundadog directory
cd ifoundadog
- create a virtual environment, once created you'll be in the virtual environment already. This can be observed when you see "(env)" at the beginning of the command prompt.
mkvirtualenv env
- bind the virtual environment to the
ifoundadog
directorysetprojectdir .
- next install the python module dependencies using pip
pip install -r requirements.txt
- navigate to the
site_ifoundadog
directorycd site_ifoundadog/
- create a copy of the
settings_config.py.example
and name itsettings_config.py
cp settings_config.py.example settings_config.py
- open the
settings_config.py
file and edit the SECRET_KEY with one generated from the site provided in the source comment. - navigate to the
app_ifoundadog
directorycd ../app_ifoundadog
- make a copy of the
config-example.py
and name the copyconfig.py
cp config-example.py config.py
- open the
config.py
file and edit the API_KEY, make it to the one you generate from the url mentioned in the source. - change back into the main directory
cd ..
- run the migrate command from the
manage.py
file to apply migrations to the databasepython manage.py migrate
- create a superuser for the application for the initial login
python manage.py createsuperuser
- run the local server
python manage.py runserver
- in your browser go to
http://127.0.0.1:8000/admin/
and attempt to login - explore the rest of the site by going back to the initial screen at
http://127.0.0.1:8000/