Browse Source

hide prints and tweak url text in titlebar

Nick Sweeting 5 years ago
parent
commit
b8c93889c1
2 changed files with 3 additions and 7 deletions
  1. 2 6
      archivebox/main.py
  2. 1 1
      archivebox/themes/admin/base.html

+ 2 - 6
archivebox/main.py

@@ -1020,15 +1020,11 @@ def server(runserver_args: Optional[List[str]]=None,
         print()
 
     # fallback to serving staticfiles insecurely with django when DEBUG=False
-    if config.DEBUG:
-        print('DEBUG=True')
-    else:
+    if not config.DEBUG:
         runserver_args.append('--insecure')  # TODO: serve statics w/ nginx instead
     
     # toggle autoreloading when archivebox code changes (it's on by default)
-    if reload:
-        print('AUTORELOAD=True')
-    else:
+    if not reload:
         runserver_args.append('--noreload')
 
     config.SHOW_PROGRESS = False

+ 1 - 1
archivebox/themes/admin/base.html

@@ -87,7 +87,7 @@
         {% if has_permission %}
         <div id="user-tools">
             <a href="{% url 'admin:Add' %}">Add ➕</a> /
-            <a href="{% url 'Home' %}">URLs</a> /
+            <a href="{% url 'Home' %}">Snapshots</a> /
             <a href="/admin/auth/user/">Users</a> /
             <a href="{% url 'OldHome' %}">Old UI</a> /
             <a href="{% url 'Docs' %}">Docs</a>