a django based fully featured blog
- pip install pip by running the following command in your terminal:
[sudo] apt-get update
apt-get -y install python-pip
- virtualenv install the virtual environment by running the following commands:
$ [sudo] pip install virtualenv
- create a virtual environment by running the following command in your terminal:
virutalenv name
- change directory into the created virtual environment by typing
cd name
into the terminal. - activate the virtual environment by running the command
source bin/activate
- install django by running the command
pip install django==1.8.6
in your terminal. - install pytz into the virtual environment by running the command
pip install pytz
in your terminal.
- given that your directory is in the
name
folder. you can clone your project into this folder by running the following command in your terminalgit clone
https://github.com/iankang/djangoBlog.git - change the name of the project to avoid confusion by running the following command
mv djangoBlog src
- change the directory into the src folder by running the following command
cd src
- run the project by running the following command :
python manage.py runserver
if all is well, it should output an adress where you can view your blog. in most cases it is http://127.0.0.1:8000/