1. Daniel Greenfeld
  2. django-visitor-pydanny


Daniel Greenfeld  committed ad35210

Add visitor utils reference

  • Participants
  • Parent commits acf238e
  • Branches default

Comments (0)

Files changed (4)

File docs/conf.py

View file
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
+import settings
+from django.core.management import setup_environ
 # -- General configuration -----------------------------------------------------

File docs/index.rst

View file
     python manage.py syncdb
 Custom Settings
 Add the following two properties to your settings file::
         Default = 31536000 # or 1 year.
         # This is how long the cookie will live in your visitors browser before it expires on it's own
         COOKIE_MAX_AGE = 31536000 # 1 year
+.. toctree::
+    :maxdepth: 2
+    ref_visitor_utils
 Indices and tables

File docs/ref_visitor_utils.rst

View file
+Visitor Utils Reference
+.. automodule:: visitor.visitor_utils
+  :members:
+  :undoc-members:

File visitor/visitor_utils.py

View file
+import itertools
+import time
 import uuid
-import time
-import itertools
+from django.conf import settings
 from visitor.models import Visitor
 from visitor import visitor_constants as constants
-from django.conf import settings
 # this is a counter to make sure our uuid's are unique.
 counter = itertools.count(0).next