-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Python 2.7 Django 1.6
There are two options of hosting the application: With or without virtualenv
If you intend to use virtualvenv, navigate to your desired directory and start by:
virtualenv venv source venv/bin/activate
On a production server this probably is located somewhere in /var/www , on a developers computer this normally is located somewhere in your $HOME.
Now you can clone the sourcecode of the application into your directory:
[email protected]:Yonjuni/wason-selection-task.git
After that you should have a subdirectory wason-selection-task/ and if you created a virtualenv also a subdirectory venv/. The actual application is in the wason-selection-task/ directory. Please navigate into the wason-selection-task directory.
The application itself is done, but you need to initialize your database. You can canfigure wason-selection-task/settings.py to use mySQL or PostGreSQL described here. Or you can leave the file as it is to use sqlite. The default language is Japanese, so please also change LANGUAGE_CODE to your desired language.
Initialize your database with
python manage.py syncdb python manage.py collectstatic
If you would like to add initial task data for testing or so you can do this by
python manage.py initial_data
Sample data can be found in sample_data.json
file in the Wason_Selection_Task
directory (or however you named it), it is written in Jason format and can of course be changed. Sample data which is added by default consists of four abstract and four concrete tasks.
If you intend to make some changes, you can start the application now with
python manage.py runserver
The application can be accessed under the url http://localhost:8000.
On a production server you should change these settings as they might expose information about your server to possible attackers.
Edit wason-selection-task/settings.py and change DEBUG and TEMPLATE_DEBUG to False.