bde_website

Created: 2014-05-18 17:02
Updated: 2018-07-31 15:13

README.md

EURECOM BDE Website Build Status

Here are developped main apps of the EURECOM BDE Website, including housing app.

Development

If you're working on a UNIX system, install virtualenv here

In case you're using the Windows Powershell environment, follow these instructions:

Install pip

$ python get-pip.py

Install virtualenv for Powershell

$ pip install virtualenv
$ pip install virtualenvwrapper-powershell

Then (on both systems), set up a new virtualenv:

$ virtualenv venv
$ .venv/Script/activate

Install the dependencies:

$ pip install -r requirements.txt

Setup the wsgi & manage files:

$ cp bde_eurecom/setup/wsgi.py bde_eurecom/

Setup the dev database:

$ cd bde_eurecom/setup
$ sh ./setup.sh

Start the devserver:

$ python manage.py runserver

There's now a user called 'WTFO' with password 'company' you can use for development.

Test

Install virtualenv and set up a new virtualenv:

$ virtualenv venv
$ . venv/bin/activate

Install the dependencies:

$ pip install -r requirements/test.txt

Setup the dev database:

$ cd bde_eurecom/setup
$ ./test.sh

Start the devserver:

$ python manage.py runserver --settings=bde_eurecom.settings.test
or 
$ export DJANGO_SETTINGS_MODULE=bde_eurecom.settings.test
$ python manage.py runserver
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more