https://github.com/akash1362000/django_blogapp
A blog app ✍ developed using Python Django 🌐 with many features such as - View Blogs written by community 👨👩👦 | Write your own blogs by creating an account ✔ | View, Update your profile 💇♂️ | Upload Profile Picture 🤳 | Password reset feature 🔐
https://github.com/akash1362000/django_blogapp
blog blog-app blog-app-django bootstrap css django django-project html javascript python
Last synced: 4 months ago
JSON representation
A blog app ✍ developed using Python Django 🌐 with many features such as - View Blogs written by community 👨👩👦 | Write your own blogs by creating an account ✔ | View, Update your profile 💇♂️ | Upload Profile Picture 🤳 | Password reset feature 🔐
- Host: GitHub
- URL: https://github.com/akash1362000/django_blogapp
- Owner: Akash1362000
- License: mit
- Created: 2020-04-22T06:01:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T02:02:41.000Z (over 1 year ago)
- Last Synced: 2025-04-10T21:36:29.794Z (6 months ago)
- Topics: blog, blog-app, blog-app-django, bootstrap, css, django, django-project, html, javascript, python
- Language: Python
- Homepage: https://blog-app-w21y.onrender.com/
- Size: 4.57 MB
- Stars: 91
- Watchers: 4
- Forks: 23
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Blog App

[](https://hits.seeyoufarm.com) [](https://github.com/Akash1362000/Django_BlogApp/graphs/commit-activity)
### Demo 🎥

### Checkout the live website [here](https://blog-app-w21y.onrender.com)
### Development 👨💻
**Note** : Make sure you have Python version 3.8+### Environment Setup 🚀
`$ git clone https://github.com/Akash1362000/django_project_blogapp.git`
`$ cd django_project_blogapp/`
If virtualenv is not installed [(What is virtualenv?)](https://www.youtube.com/watch?v=N5vscPTWKOk&t=313s):
`$ pip install virtualenv`
Create a virtual environment
`$ virtualenv venv`
Activate the environment everytime you open the project
`$ source venv/Scripts/activate`
Install requirements 🛠
`$ pip install -r requirements.txt`
`$ pre-commit install`
Run migrations for Database
`$ python manage.py migrate`
Create superuser for Admin Login 🔐
`$ python manage.py createsuperuser`
Enter your desired username, email and password. Make sure you remember them as you'll need them in future.
eg.
Username: admin
Email: admin@admin.com
Password: HighlyConfidentialPassword
All Set! 🤩
Now you can run the server to see your application up & running 🚀
`$ python manage.py runserver`
To exit the environment ❎
`$ deactivate`
Every time you want to open the application in browser, make sure you run:
`$ source venv/Scripts/activate`
`$ python manage.py runserver`
---
## Docker Setup (Optional) If you want to use Docker to run this project, you need to do the following steps:
- Install Docker for your OS from [here](https://www.docker.com/products/docker-desktop/)
- Run `docker --version` and `docker compose --version` [In Windows, you need to run `docker-compose --version` to check the version]
- If you see both the versions, then Docker is successfully installed on your system and you can follow along
- If you don't see the version, check with your Docker installation
- Run `docker compose up -d`
- Run `docker exec -it blog_app sh -c "python manage.py createsuperuser"` to create a new superuser
- Access the app at [http://localhost:8000](http://localhost:8000)
- To stop the container, run `docker compose stop` from the project root
- To restart the container, run `docker compose start` from the project root
- To delete the container, run `docker compose down` from the project root---
## Stargazers
[](https://github.com/Akash1362000/Django_BlogApp/stargazers)
Leave a ⭐ from [here](https://github.com/Akash1362000/Django_BlogApp) if you like 😁
---
### License ✍
```
MIT LicenseCopyright (c) 2020 Akash Shrivastava
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```