Closed puntonim closed 10 years ago
Strange, that's what I did in production actually and it worked for me :/
neurostars-org:/srv/biostar-codebase$ git diff
diff --git a/biostar/settings/base.py b/biostar/settings/base.py
index e1dd2f4..1dec2b8 100644
--- a/biostar/settings/base.py
+++ b/biostar/settings/base.py
@@ -23,12 +23,13 @@ START_CATEGORIES = [
# These should be the most frequent (or special) tags on the site.
NAVBAR_TAGS = [
- "RNA-Seq", "ChIP-Seq", "SNP", "Assembly",
+# XXX: This should be parametrized on env files instead
+ "fmri", "eeg", "t1",
]
# The last categories. These tags have special meaning internally.
END_CATEGORIES = [
- "Tutorials", "Tools", "Jobs", "Forum",
+# "Tutorials", "Tools", "Jobs", "Forum",
]
# These are the tags that always show up in the tag recommendation dropdown.
@@ -390,9 +391,9 @@ SITE_STYLE_CSS = "biostar.style.less"
SITE_LATEST_POST_LIMIT = None
# How many recent objects to show in the sidebar.
-RECENT_VOTE_COUNT = 7
-RECENT_USER_COUNT = 7
-RECENT_POST_COUNT = 12
+RECENT_VOTE_COUNT = 5
+RECENT_USER_COUNT = 5
+RECENT_POST_COUNT = 5
# Time between two accesses from the same IP to qualify as a different view.
POST_VIEW_MINUTES = 5
diff --git a/biostar/static/favicon.ico b/biostar/static/favicon.ico
index b6975fc..01c4660 100755
Binary files a/biostar/static/favicon.ico and b/biostar/static/favicon.ico differ
I restarted the container via docker restart webapp
and done :/
I noticed that, but editing base.py
is not probably a good solution. That file is meant to be imported by a machine-specific settings file, biostar/settings/production.py
in this case. production.py
overrides some settings in base.py
and this works for many things like database, emails, google analytics, ... but it does not work for tags in the top navigation bar. I didn't spend any time on it, it is probably a minor thing; I need to investigate further.
Changing those in
production.py
dos not work. Not even when running amanage.py initilize_site
.