-
Notifications
You must be signed in to change notification settings - Fork 33
Home
Tested on Ubuntu 14.04 with python 3.4
Be sure you have git installed. If not, run sudo apt-get install git-core
create a working directory: mkdir osr
go inside: cd osr/
create a virtual environment: virtualenv -p python3 venv
activate it: source venv/bin/activate
clone the git repo: git clone https://github.com/climu/openstudyroom.git
go to project folder: cd openstudyroom/
install depedency: pip install -r requirements.txt
Edit manage.py file to change dev to local. The line should look like this:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "openstudyroom.settings.local")
run migrations and migrate:
./manage.py makemigrations
./manage.py migrate
Load initial datas:
./manage.py loaddata fixtures/initial_data.json
run the server:
./manage.py runserver
Now you will have errors when visiting the site. It's because wagtail create page object when 1st migrating so the pk are changed.
Let's fix it:
visit: http://127.0.0.1:8000/django-admin/wagtailcore/page/
You can connect with user admin and pass admin
You must change Content type of pages osr, blog, 1st blog page and League with the folowing:
osr: home page
blog: Blog
1st blog page: stream field entry page
league: full width page
Now the website should work. You can visit the forum at http://127.0.0.1:8000/forum and run the scraper manually at http://127.0.0.1:8000/league/scraper/