A basic personal CRUD blog
A simple blog application in Django with create, read, update and delete functionality for posts. Build followed the Django Girls Tutorial with added style customization.
Thanks to PythonAnywhere for free hosting :)
Make sure you have installed Git and Python 3.7 on your system before proceeding.
- Download/Clone the code:
git clone https://github.com/ameybhavsar24/django-blog.git
cd django-blog
- Create a virtual environment to install dependencies (recommended):
python3 -m venv env
source env/bin/activate
These commands are focused on Bash users, you should be able to find equivalent commads for MacOS and Windows system easily.
- Install the requirements
pip install -r requirements.txt
- Start the application
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
The development server should have started on 127.0.0.1:8000
- Create a super user
python manage.py createsuperuser
- Login as super user at 127.0.0.1:8000/admin.
- Go to homepage at 127.0.0.1:8000
You should be able to add new posts and then edit or delete posts. All created posts will be seen on the homepage.
Here is a list of users who already contributed to this repository:
This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details