Skip to content

Commit e9a11aa

Browse files
committed
1.3 Version
1 parent 9cdd154 commit e9a11aa

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ To set up the project locally, please follow these steps:
3333
### Terminal: **(Before starting run [Configure your .env](#configure-env))**
3434
```
3535
cd WebApi
36+
python manage.py migrate
3637
python manage.py runserver
3738
```
3839

3940
### Dockerfile: **(Before starting run [Configure your .env](#configure-env))**
4041
```
42+
cd WebApi
43+
python manage.py migrate
44+
cd ..
4145
docker build -t image_name
4246
docker run -p 8000:8000 image_name
4347
```

WebApi/frontend/templates/home.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ <h3 id="#how-work">How Work</h3>
1212
<p>Once connected, you can access the configuration interface where you </p>
1313
<p>provide the relevant user and password information, </p>
1414
<p>specify the equipment (Host) you want to access, and define the commands to be executed (Playbook).</p>
15+
{% if user.is_staff %}
1516
<h3 id="#security" style="color: rgb(134, 13, 13);">Security</h3>
1617
<p>For your security, we recommend creating a new user as an administrator and removing the default admin from the system.</p>
18+
<p>To do this, simply <a href="{% url 'userCreate' %}">access the link</a> and check the administrator option.</p>
19+
{% endif %}
1720
<h1>How we build this</h1>
1821
<p>The SwitchSetup was developed using the Django Framework and ansible libraries,
1922
<p>leveraging the power of Python and software engineering principles.</p>

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,16 @@ DEBUG=True
7474

7575
```
7676
cd WebApi
77+
python manage.py migrate
7778
python manage.py runserver
7879
```
7980

8081
#### Dockerfile:
8182

8283
```
84+
cd WebApi
85+
python manage.py migrate
86+
cd ..
8387
docker build -t image_name
8488
docker run -p 8000:8000 image_name
8589
```

0 commit comments

Comments
 (0)