Setup a new project

Install django-intranet

Create a project folder and enter it. Type these command lines.

$ sudo pip install django-intranet south
$ startproject myintranet

Configure the database

Configure the database and add ‘intranet’ and ‘south’ to your INSTALLED_APPS in myintranet/myintranet/

Go to myintranet/ and type:

$ python migrate

Now you can install one of the contrib module or your own.

Setup the URLs

# -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
from django.core.urlresolvers import reverse_lazy
from django.conf import settings
from django.views.generic import RedirectView
from django.contrib import admin

from intranet.urls import urlpatterns as intranet_urlpatterns


# Default URLs patterns from intranet
urlpatterns = intranet_urlpatterns

# Add specific patterns
urlpatterns += patterns('',

                url(r'^$', RedirectView.as_view(url=reverse_lazy('dashboard'))),

                # Apps
                url(r'^prospect/', include('prospect.urls')),

                # Admin URLs
                url(r'^admin/', include(,
                url(r'^admin_tools/', include('admin_tools.urls')),


if settings.DEBUG:
    from django.conf.urls.static import static
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns

    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    urlpatterns += staticfiles_urlpatterns()

Configure the navbar

Create the file templates/intranet/navbar.html:

{% load intranet_extra i18n %}
{% load url from future %}

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container-fluid">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      <a class="brand" href="{% url 'dashboard' %}">{% intranet_title %}</a>
      <div class="nav-collapse">
        <ul class="nav">
          <li class="divider-vertical"></li>
          <li><a href="#"><i class="icon-user icon-white"></i>&nbsp;{% trans "Profile" %}</a></li>
          <li class="divider-vertical"></li>
          <li><a href="{% url 'prospect-list' %}">
              <i class="icon-road icon-white"></i>&nbsp;{% trans "Prospects" %}</a></li>
          <li class="divider-vertical"></li>
        {% if request.user.is_authenticated %}
        <p class="navbar-text pull-right"><a href="{% url 'logout' %}">{% trans "Logout" %}</a></p>
        <ul class="nav pull-right"><li class="divider-vertical"></li></ul>
        <p class="navbar-text pull-right">{% trans "Logged in as" %}&nbsp;<a href="#">{{ request.user.username }}</a></p>
        {% endif %}
      </div><!--/.nav-collapse -->