Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmahmud/djangoblog
Django blog is a beginner friendly blog application. This project illustrate Django Class Based views, How to use django models with custom model manager, how to use custom template tags, django Forms and model form, how to send mail with django, how to add rss syndication, and generate sitemap and unit test for model, view, form and template tags.
https://github.com/devmahmud/djangoblog
django-application django-blog django-bootstrap4 django-for-beginners django-project django-templatetags django-testing
Last synced: 18 days ago
JSON representation
Django blog is a beginner friendly blog application. This project illustrate Django Class Based views, How to use django models with custom model manager, how to use custom template tags, django Forms and model form, how to send mail with django, how to add rss syndication, and generate sitemap and unit test for model, view, form and template tags.
- Host: GitHub
- URL: https://github.com/devmahmud/djangoblog
- Owner: devmahmud
- License: mit
- Created: 2020-05-13T08:35:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T06:03:05.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T07:24:36.488Z (about 1 month ago)
- Topics: django-application, django-blog, django-bootstrap4, django-for-beginners, django-project, django-templatetags, django-testing
- Language: Python
- Homepage:
- Size: 656 KB
- Stars: 31
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Django-Blog
Django blog is a beginner friendly blog application. This project illustrate Django Class Based views, How to use django models with custom
model manager, how to use custom template tags, django Forms and model form, how to send mail with django, how to add rss syndication,
and generate sitemap and unit test for model, view, form and template tags and also how to seed database with Factory Boy, Faker and management commands.## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.## Installing
```
open terminal and type
git clone https://github.com/devmahmud/DjangoBlog.git
```#### or simply download using the url below
```
https://github.com/devmahmud/DjangoBlog.git
```## Requirements
```
Create a virtual environment and active it
and install requirements type:pip install -r requirements.txt
```### In this project i have used postgres as a database, change db information in settings with your database information
## To migrate the database open terminal in project directory and type
```
python manage.py makemigrations
python manage.py migrate
```## Static files collection
```
python manage.py collectstatic
```## Creating Superuser
```
python manage.py createsuperuser
```## Creating Dummy data using faker
```
python manage.py seed --posts number_of_post
example: python manage.py seed --posts 50
```## For sharing post with email change the email configuration
```
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'your email'
EMAIL_HOST_PASSWORD = 'your email password'
```## To run the program in local server use the following command
```
python manage.py runserver
Then go to http://127.0.0.1:8000 in your browser
```## To test the project
```
python manage.py test
```## To test the project and pep8 style guide
```
python manage.py test && flake8
```
or you can simple run `flake8`## Project snapshot
### Home Page
![image](https://user-images.githubusercontent.com/19981097/81924503-08809680-9601-11ea-9df2-2096f265b0e1.png)### Detail Page
![image](https://user-images.githubusercontent.com/19981097/81924659-37970800-9601-11ea-8433-8b21e75594b1.png)### Comment Page
![image](https://user-images.githubusercontent.com/19981097/81924734-51d0e600-9601-11ea-9df9-14b9c47c11ac.png)### Post share page
![image](https://user-images.githubusercontent.com/19981097/81926022-2a7b1880-9603-11ea-9cd6-3f465389f250.png)## Author
```
Mahmudul alam
Email: [email protected]
```
========Thank You !!!=========