Skip to content

Basic blog site written in Django (based on MDN Django module assessment).

Notifications You must be signed in to change notification settings

AsoTora/django-diy-blog

 
 

Repository files navigation

Django DIY Blog

Basic blog site written in Django with some added functionality.

This web application creates an very basic blog site using Django. The site allows blog authors to create text-only blogs using the Admin site, and any logged in user to add comments via a form. Any user can list all bloggers, all blogs, and detail for bloggers and blogs (including comments for each blog).

Added:

  • css and fonts
  • editing user/ blog information
  • docker-compose
  • sidebar
  • godmode (generates data and creates superuser==admin)
  • email reset

Here is how it looks:

The models for this site are as shown below: Models

For more information see the associated MDN assessment page.

Quick Start

With docker

  1. Run docker-compose up
  2. Go to http://127.0.0.1:8000/godmode/, you will be signed in as an admin. Password is, you guessed it, admin.

Any code changes will be automatically reloaded onto the running app.

Without docker

To get this project up and running locally on your computer:

  1. Set up the Python development environment. We recommend using a Python virtual environment.
  2. Assuming you have Python setup, run the following commands (if you're on Windows you may use py or py -3 instead of python3 to start Python):
    pip3 install -r requirements.txt
    python3 manage.py makemigrations
    python3 manage.py migrate
    python3 manage.py collectstatic
    python3 manage.py test # Run the standard tests. These should all pass.
    python3 manage.py createsuperuser # Create a superuser
    python3 manage.py runserver
    
  3. Open a browser to http://127.0.0.1:8000/admin/ to open the admin site
  4. Create a few test objects of each type.
  5. Open tab to http://127.0.0.1:8000 to see the main site, with your new objects.

About

Basic blog site written in Django (based on MDN Django module assessment).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.3%
  • HTML 26.6%
  • CSS 9.3%
  • Dockerfile 0.8%