Skip to content

Commit

Permalink
add app knowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
iankin committed Dec 5, 2012
1 parent a358a6e commit 1cc52db
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ env
base.sqlite
python.bat
local_settings.py
.project
.pydevproject
.settings/
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "suvitatwork.settings")
os.environ["DJANGO_SETTINGS_MODULE"] = "suvitatwork.settings"

from django.core.management import execute_from_command_line

Expand Down
1 change: 1 addition & 0 deletions suvitatwork/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ Unipath
PyYAML
git+https://github.com/suvit/django-mailer.git#egg=django-mailer
django-userena
django-knowledge

#django-websmsru
3 changes: 3 additions & 0 deletions suvitatwork/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.markup',

'knowledge',

'suvitatwork.theme',

Expand Down
5 changes: 3 additions & 2 deletions suvitatwork/theme/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% block styleextra %}
{% endblock %}
</style>

{% block headextra %}
{% endblock %}
</head>
Expand Down Expand Up @@ -78,6 +78,7 @@
<li class="active"><a href="{% url 'home' %}">Главная</a></li>
<li><a href="{% url 'contacts' %}">Контакты</a></li>
<li><a href="{% url 'support' %}">Поддержка сайта</a></li>
<li><a href="{% url 'knowledge_index' %}">Центр поддержки</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
Expand Down Expand Up @@ -133,7 +134,7 @@ <h1>{% block content_title %}{% if params.content_title %}{{params.content_title
w.yaCounter17288095 = new Ya.Metrika({id:17288095, enableAll: true, webvisor:true});
} catch(e) { }
});

var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
Expand Down
1 change: 1 addition & 0 deletions suvitatwork/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
url(r'^', include('suvitatwork.theme.urls')),
url(r'^accounts/', include('userena.urls')),
url(r'^messages/', include('userena.contrib.umessages.urls')),
url(r'^knowledge/', include('knowledge.urls')),

# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
Expand Down

0 comments on commit 1cc52db

Please sign in to comment.