Skip to content

nanobox-io/nanobox-v2-example-django

Repository files navigation

Django Blog Sample

This repository contains a simple web application built with the Django web framework.

The project has the next basic apps:

  • Blog (with draft/publish/archive management of posts, pagination and tag filtering)
  • Flatpages
  • Contact

Setting Up a Development Environment

  1. Create a Python 3.6 virtual environment.
  2. Install required dependencies:
pip install -r requirements.txt
  1. Create a MySQL database:
mysql -u root -p
CREATE DATABASE djangoblogsample;
\q
  1. Apply migrations to create database schema:
python manage.py migrate
  1. Load sample data to the database:
python manage.py loaddata sample_db_data.json
  1. Create a superuser that can log in to the admin panel:
python manage.py createsuperuser
  1. Run the local server:
python manage.py runserver

And, enjoy it! 🎉

About

An example django app to run on Nanobox v2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published