A simple blog made with django
- admin can create post
- user can see posts
- user can share post through email
- user can search post
- user can comment on a post
- post uses markdown
To run this project simply download this repo, then create a virtual environment in the directory.
more info on virtualenv and how to make one at here
then install all dependencies
pip install -r requirements.txt --no-index --find-links file:///tmp/packages
more info at here
after that create a .env file in the directory
it should have the following things
DB_USER=""
DB_NAME=""
DB_PORT=""
DB_PASSWORD=""
EMAIL_ADRESS=""
EMAIL_HOST=""
EMAIL_PASSWORD=""
DB_USER ,DB_NAME,DB_PORT,DB_PASSWORD are database info that u need to provide , this projects uses postgresql
Also this project uses gmail to send emails , so you have to use a gmail account and put in the credentials here , you can ofcourse use other smtp servers
The project uses postgresql , you can change it to sqlite or others in settings.py
then run
python manage.py makemigrations blog
python manage.py migrate
python manage.py runserver
then visit to http://127.0.0.1:8000/blog/ and you should see the website
single post
comments
share post