Commit 204c4343 authored by jayaprakash-a's avatar jayaprakash-a

Installation steps updated

parent b5cb14b3
...@@ -42,27 +42,31 @@ Laksh Sharma: Creating various forms and also the database models ...@@ -42,27 +42,31 @@ Laksh Sharma: Creating various forms and also the database models
``` bash ``` bash
$ git clone https://jayaprakash@git.cse.iitb.ac.in/sairam/e-Auction_for_sports_events.git $ git clone https://jayaprakash@git.cse.iitb.ac.in/sairam/e-Auction_for_sports_events.git
``` ```
2. We have to create django super user. 2. Install the required packages as follows.
``` bash
$ pip install -r requirements.txt
```
3. We have to create django super user.
``` bash ``` bash
$ python manage.py createsuperuser $ python manage.py createsuperuser
``` ```
​ Enter details and password. ​ Enter details and password.
3. Setup the database. We have to make migrations and import the data into the database. 4. Setup the database. We have to make migrations and import the data into the database.
```bash ```bash
$ python manage.py makemigrations $ python manage.py makemigrations
$ python manage.py migrate $ python manage.py migrate
``` ```
4. To run the server on our machine and make our system as host. Find out the ipaddress of the system 5. To run the server on our machine and make our system as host. Find out the ipaddress of the system
```bash ```bash
$ ifconfig $ ifconfig
``` ```
Add the ipaddress address to ```ALLOWED_HOSTS``` in ```config/settings.py``` file. You may also need to add ```127.0.0.1```, ```localhost``` to that list. Add the ipaddress address to ```ALLOWED_HOSTS``` in ```config/settings.py``` file. You may also need to add ```127.0.0.1```, ```localhost``` to that list.
5. Run the server as 6. Run the server as
```bash ```bash
$ python manage.py runserver 0.0.0.0:8000 $ python manage.py runserver 0.0.0.0:8000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment