Skip to content

Commit

Permalink
Demo project updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Apr 8, 2017
1 parent 2c22909 commit 26549b8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions demo/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
django-sitetree demo
====================
http://github.com/idlesign/django-sitetree


This Django project demonstrates sitetree basic features and bundled templates.

Expects Django 1.11+


How to run
----------

1. From sitetree root sources directory:

.. code:: bash
$ demo/manage.py runserver
2. Go to http://localhost:8000

3. Admin (http://localhost:8000/admin/) credentials:

Login: `demo`
Password: `demodemo`
Binary file modified demo/db.sqlite3
Binary file not shown.
6 changes: 6 additions & 0 deletions demo/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import os
import sys


PATH_DEMO = os.path.dirname(__file__)
PATH_SITETREE = os.path.dirname(PATH_DEMO)

sys.path = [PATH_DEMO, PATH_SITETREE] + sys.path

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
try:
Expand Down

0 comments on commit 26549b8

Please sign in to comment.