Skip to content

Implemented a tiny blogging application while going through Django tutorial at Django Girls.

License

Notifications You must be signed in to change notification settings

samiralibabic/my-first-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First time using Django

Implemented a tiny blogging application while going through Django tutorial at Django Girls.

Screenshot

Clone repository

git clone https://github.com/samiralibabic/my-first-blog.git django-blog
cd django-blog

Run in Docker container

Update 2023: You can run the project in a Docker container.

Build Docker image

Make sure Docker is running and:

docker build -t django-blog .

Run Docker container

docker run -p 8000:8000 django-blog

Manual install

Update 2023: I added the steps to run the project manually, by installing the required dependencies using Python virtual environment.

Install Python 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

Migrate the database

python manage.py migrate

Create a superuser

python manage.py createsuperuser

Run the development server

python manage.py runserver

The project runs on http://localhost:8000.

About

Implemented a tiny blogging application while going through Django tutorial at Django Girls.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published