Commit dc36032880e72b6b7df0fc4b84e9809fe92cf5c0

Authored by Etienne Pallier
1 parent 0d451927
Exists in dev

Ajout lien vers ADMIN depuis site web pour voir contenu tables agents...

.pydevproject
1 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 2 <?eclipse-pydev version="1.0"?><pydev_project>
3   -
  3 +
  4 +
4 5  
5 6  
6 7  
7 8  
8 9  
9 10 <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
10   -
  11 +
  12 +
11 13  
12 14  
13 15  
14 16  
15 17  
16 18 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
17   -
  19 +
  20 +
18 21  
19 22  
20 23  
21 24  
22 25  
23 26 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
  27 +
24 28 <path>/${PROJECT_DIR_NAME}/src</path>
  29 +
25 30 <path>/${PROJECT_DIR_NAME}/simulators</path>
  31 +
26 32 </pydev_pathproperty>
27   -
  33 +
  34 +
28 35  
29 36  
30 37  
31 38  
32 39  
33 40 <pydev_variables_property name="org.python.pydev.PROJECT_VARIABLE_SUBSTITUTION">
34   -
35   -
36   -
37   -
38   -
39   -
40 41 <key>DJANGO_MANAGE_LOCATION</key>
41   -
42   -
43   -
44   -
45   -
46   -
47 42 <value>src/core/pyros_django/manage.py</value>
48   -
49   -
50   -
51   -
52   -
53   -
54 43 <key>DJANGO_SETTINGS_MODULE</key>
55   -
56   -
57   -
58   -
59   -
60   -
61   - <value>pyros.settings</value>
62   -
63   -
64   -
65   -
66   -
67   -
  44 + <value>core.pyros_django.pyros.settings</value>
  45 + <key>PY</key>
  46 + <value>37</value>
68 47 </pydev_variables_property>
69   -
  48 +
70 49  
71 50  
72 51  
73 52  
74 53  
  54 +
  55 + <pydev_pathproperty name="org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH">
  56 + <path>/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS_SOFT/PYROS201806/venv/venv_py3_pyros/lib/python3.7/site-packages</path>
  57 + </pydev_pathproperty>
75 58 </pydev_project>
... ...
src/core/pyros_django/common/admin.py
... ... @@ -232,6 +232,12 @@ class AlbumAdmin(PyrosModelAdmin):
232 232  
233 233 # Link the models to the admin interface
234 234  
  235 +# (EP added 10/7/19)
  236 +admin.site.register(AgentLogs)
  237 +admin.site.register(AgentSurvey)
  238 +admin.site.register(Command)
  239 +
  240 +
235 241 admin.site.register(Album, AlbumAdmin)
236 242 admin.site.register(Alert)
237 243 admin.site.register(Country, CountryAdmin)
... ...
src/core/pyros_django/misc/templates/base.html
... ... @@ -146,6 +146,7 @@ a {
146 146 <li><a href="{% url "current_schedule" %}">Schedule</a></li>
147 147 <li><a href="#">Images</a></li>
148 148 <li><a href="{% url "system" %}">System</a></li>
  149 + <li><a href="/admin">ADMIN</a></li>
149 150 </ul>
150 151 <ul class="nav navbar-nav navbar-right navbar-user navbar-expand-lg">
151 152 <li><a id="plc_state"></a></li>
... ...