This project is aimed to be used as an empty web site example of Django Ninecms.
The commmit history mostly follows the steps described in the full guide.
You can find more information on https://github.com/Wtower/django-ninecms
Download or clone and start with python manage.py runserver
.
Install Python
Ninecms is based on Django for Python, thus it requires Python and Django to be installed. For a full list of dependencies see Ninecms Dependencies. To obtain a Python version see Download Python.
Install pip
Pip is the Python package manager. It is a very convenient piece of software that allows the installation and management of Python packages. To obtain pip download get-pip.py and run in its location:
python get-pip.py
Create a virtualenv (optional)
You can optionally isolate the specific Python packages that 9cms requires to a Python virtual environment. To install virtualenv:
pip install virtualenv
Then to create a virtualenv:
virtualenv <location>
where
<location>
can be any directory where the installed packages can go, such asvirtualenvs/django-ninecms-starter
.To switch to the new virtualenv (linux):
source <location>/bin/activate
Or Windows:
<location>\Scripts\activate
Download Ninecms starter
`Download Ninecms starter<https://github.com/Wtower/django-ninecms-starter/archive/master.zip>`_ and extract to a desired folder.
Install requirements
Switch to the folder and install requirements:
pip install -r requirements.txt
Migrate
Run migrate in order for the installed packages to reflect to the database. Sqlite is used here, but any database supported by Django can be used:
python manage.py migrate
Create superuser
Create a super user to allow to login to
/admin/
:python manage.py createsuperuser
Run server
Run Django server:
python manage.py runserver
Add a new page type and a node.
Make a copy of the
index.html
template totemplates/
and customize. Consult the files inninecms/templates
(such asblock_static.html
) to see how to present various fields in the overridden template. Different templates per page type can be provided (read NineCMS documentation).