-
Notifications
You must be signed in to change notification settings - Fork 0
/
installation.txt
45 lines (27 loc) · 1.33 KB
/
installation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Download the repository:
`git clone [email protected]:munaris1/wsd_project.git`
Create a virtual environment:
`mkvirtualenv levelup`
Activate the environment:
`workon levelup`
Install requirements:
`pip install -r requirements.txt`
Create first database migrations:
`python manage.py makemigrations`
Apply migrations:
`python manage.py migrate`
Apply fixtures (load data):
`python manage.py loaddata groups.json`
In development environment, to distinguish how we start the app from the production environment, we need to set an
environment variable which tell Django to use a different configuration.
`export DJANGO_DEVELOPMENT=true`
Finally, start the server:
`python manage.py runserver`
Third party authentication configuration:
- Create a site with the domain name (CHANGE the default site "example.com" to this):
+ '127.0.0.1:8000' in development
+ 'level-up-eu.herokuapp.com' in production
- Add 'social applications' (these cliendIDs and secrets are for local only, production will be configured later):
+ FB: clientID: 1002345393243744 - secret: 33b4bc0f78ed644dd08dfd96ea671e7a
+ Google: cliendID: 245364129880-53uqutp3uiu8qbfpjt9inroou30r0p2n.apps.googleusercontent.com - secret: O-MSYOS2w7aOvDDZEVsVIwNP
+ Twitter: cliendID: yLAEnc4I4hPtlUsn0RXo5cU9k - secret: MsBLDGfxlau1O0AJmewYhxdDSluuOdi0C9srmwpzppTmw4K6pd