Version: 1.2.2 - 24 September 2018.
Django site for Pur'N'Kleen.
- Install Homebrew.
- This project uses Python 3. Make sure you have installed Python 3. One way to install it is:
brew install python3
. - You can verify which version of Python is installed by:
python3 --version
, and run it withpython3
. - Create a new Python virtual environment, for example
python3.7 -m venv purnkleen
. - To activate the new virtual environment,
source purnkleen/bin/activate
. - And you can start Python by typing:
python
. - Next, install
virtualenvwrapper
by first runningpip install virtualenv --user
and thenpip install virtualenvwrapper --user
. - Create a folder that will contain all your virtual environments:
mkdir ~/.virtualenvs
. - Open your .bashrc file and add:
export WORKON_HOME=~/.virtualenvs
andsource /Users/rommel/Library/Python/2.7/bin/virtualenvwrapper.sh
- You can activate these changes by typing
source .bashrc
. - We are ready to create a new virtual environment using Python 3 with
mkvirtualenv --python=/usr/local/bin/python3 purnkleen
. - This creates a folder
purnkleen
inside the environments folder ~/.virtualenvs.The new environment will be active after running the previous command. - To deactivate it, just type
deactivate
. - And to activate it again:
workon purnkleen
. - While being in your python3 virtual environment, if you type
python
you activate python 3! Moreover, you can usepip
to callpip3
and install python3 packages. For example, you can install Django 1.7 usingpip install Django==1.7
.
Now, you’re ready to code!
- Download from here: https://www.postgresql.org/download/macosx/
- Make sure the port matches what is in your
config/settings_local.ini
folder. - Click initialize.
- Install pgAdmin: https://www.pgadmin.org/
- Create a new server using the settings in the
config/settings_local.ini
. - Set up the database using the default
postgres
user. - Create the
pnk_admin
user with full access. - Create
purnkleen
database. python manage.py migrate
That's it. Run the server! (http://127.0.0.1:52046/browser/#)
If you wish to contribute to this repo, please read the Contributing document.
If you need help with this project, please read the Support document.