Full-Featured Blog with Django web framework.
- User Registration
- User Login & Logout
- User Profile
- Create, Update, Edit & Delete Posts
- Search
- User Change Password
- Password Reset
- Customized admin panel
Make sure you have already installed python3 and git.
$ git clone https://github.com/amanasati11/Django-Blog.git && cd django-blog
$ pip install -r requirements.txt
$ cd src && python manage.py migrate
$ python manage.py collectstatic
$ python manage.py createsuperuser
$ python manage.py runserver
Enter your browser http://localhost:8000/. You can login via admin in http://localhost:8000/admin/.
First add one another user from blog register page or admin panel.
$ python manage.py shell
>>> from blog.models import Post
>>> import json
>>> with open('posts.json') as f:
... json_posts = json.load(f)
...
>>> for post in json_posts:
... Post(title=post['title'], content=post['content'], author_id=post['user_id']).save()
...
>>> exit()
You can edit posts via admin panel or from corrent user added post.