Coder Social home page Coder Social logo

my-first-blog's Introduction

Project documentation for a Django Girls tutorial blog

Introduction

The blog project was created using the Django framework, SQLite database, and deployed on pythonanywhere.com at https://marekdrag.pythonanywhere.com/. The aim of the project was to learn the basics of programming in Django and create a functional blog with the ability to add posts, comments, and edit/delete them by the administrator.

Application Description

The project consists of two applications: blog and accounts. The blog application implements the functionality of adding posts and comments. Users can browse posts and add comments, but only logged-in users can add posts. The administrator can edit and delete posts and comments. The accounts application allows users to log in and register on the website.

Cloning the repository

Clone the repository using the command below :

git clone https://github.com/UserMarekDrag/my-first-blog.git

Move into the directory where we have the project files :

cd my-first-blog

Create a virtual environment :

# Create our virtual environment
python -m venv venv

Activate the virtual environment :

windows

venv\scripts\activate

linux

source venv/bin/activate

Install the requirements :

pip install -r requirements.txt

Migrate Database

python manage.py migrate

Create Super User

python manage.py createsuperuser

Running the App

To run the App, we use :

python manage.py runserver

โš  Then, the development server will be started at http://127.0.0.1:8000/

Deploying on pythonanywhere.com

To deploy the project on pythonanywhere.com, follow these steps: Create an account on pythonanywhere.com and go to the Dashboard tab. In the Files tab, create a new directory for project files. Import the project from the Git repository: https://github.com/UserMarekDrag/my-first-blog.git In the Web tab, create a new virtual application and configure its settings. In the application settings, add paths to static files and media. Update the database using the command: python manage.py migrate Run the application server and check if the website works correctly.

Summary

The blog project created using the Django framework and SQLite database was deployed on pythonanywhere.com. The project allows users to browse posts and add comments, and the administrator can edit and delete posts and comments. The project was a good tool for learning programming in Django and deploying on a web server.

my-first-blog's People

Contributors

usermarekdrag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.