(Ideally you should only have to do this once)
-
Install python 3.5
-
Install postgreSQL
-
Set up a database and database user
Use pgAdmin to create a new database and new user, then give the user full access to the database.
-
Clone this repository
git clone https://github.com/bomjacob/htxaarhuslan.git
-
Open terminal/cmd and cd into cloned directory
cd htxaarhuslan
-
Install required dependencies
pip install -r requirements.txt
-
Copy the file
.env.base
and rename the copied file to.env
cp .env.base .env
-
Fill out configuration in the newly created
.env
fileYou can get a recaptcha key from Google, or just give it an empty string, but then you can't create users via the form on site (do it via the admin site instead).
-
Run database migrations (also always do this if you've pulled new changes from the repository)
python manage.py migrate
(Do this everytime you want to run the local dev server)
-
Optionally run a local mail server by running (in another terminal/cmd)
python -m smtpd -n -c DebuggingServer localhost:1025
-
You should now be able to run the development server
python manage.py runserver