-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
23 lines (21 loc) · 864 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
STEPS
*****
- install mysql server
- create a mysql user called cart and a databse called cart for the application.
"CREATE DATABASE cart DEFAULT CHARACTER SET utf8 DEFAULT COLLATE
utf8_general_ci;
CREATE USER 'cart'@localhost IDENTIFIED BY 'cartpassword';
GRANT ALL PRIVILEGES ON cart.* TO 'cart'@localhost;
FLUSH PRIVILEGES;
"
- install python virtualenv
- open terminal and navigate to the folder containing the folder containing the project
- run "source /cart/bin/activate"
- change directory inot cartpassword
- run pip install -r requirements.txt
- change direction to the project root(shopcart)
- run "python manage.py syncdb"
- then run "python manage.py migrate"
- then run "python manage.py rebuild_index"
- then run "python manage.py runserver" to run the development server
- open a browser and go to address "127.0.0.1:8000"