Implemented a tiny blogging application while going through Django tutorial at Django Girls.
git clone https://github.com/samiralibabic/my-first-blog.git django-blog
cd django-blog
Update 2023: You can run the project in a Docker container.
Make sure Docker is running and:
docker build -t django-blog .
docker run -p 8000:8000 django-blog
Update 2023: I added the steps to run the project manually, by installing the required dependencies using Python virtual environment.
Install pyenv
to manage Python versions, as we need an older one for this project:
brew install pyenv
brew install pyenv-virtualenv
Use pyenv
to install compatible Python version:
pyenv install 3.5.10
Create new Python virtual environment:
pyenv virtualenv 3.5.10 django-blog
pyenv activate django-blog
Install Django 1.9 inside virtual environment:
pip install Django==1.9
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
The project runs on http://localhost:8000
.