Giter Site home page Giter Site logo

athorndia / django_blogapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akash1362000/django_blogapp

0.0 0.0 0.0 4.66 MB

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 ๐Ÿ”

Home Page: https://blog-app-w21y.onrender.com/

License: MIT License

Shell 0.71% Python 60.75% CSS 5.98% HTML 31.89% Dockerfile 0.67%

django_blogapp's Introduction

Django Blog App

Blog App Banner

Hits Maintenance

Demo ๐ŸŽฅ

BlogApp Demo

Checkout the live website here

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?):

$ 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: [email protected]

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
  • 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
  • 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

Stargazers

Leave a โญ from here if you like ๐Ÿ˜


License โœ

MIT License

Copyright (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.

django_blogapp's People

Contributors

akash1362000 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.