Giter Club home page Giter Club logo

akash1362000 / django_blogapp Goto Github PK

View Code? Open in Web Editor NEW
73.0 5.0 18.0 4.68 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

Python 60.17% HTML 33.14% CSS 5.44% Dockerfile 0.61% Shell 0.65%
django django-project blog blog-app-django blog-app html css javascript bootstrap python

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 zablon-oigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django_blogapp's Issues

Implement Detail Page Logic and Template

Description:

To enhance the application's user experience and provide detailed information about individual items, we need to implement a detail page feature. This issue outlines the tasks required to create the necessary logic and template for displaying detailed information about items within the application.

Tasks:

  1. Detail Page Logic:
  • Define the backend logic to retrieve detailed information about individual items.
  • Implement controller methods to handle requests for displaying item details.
  1. Detail Page Template:
  • Create a new template named "detail" to render detailed information about items.
  • Design the layout of the detail page, including sections for displaying item attributes such as title, description, image, price, etc.
  1. Routing:
  • Define URL routes to map requests for viewing item details to the corresponding controller methods.
  • Ensure proper routing configuration to enable navigation to the detail page from other parts of the application.
  1. Data Retrieval:
  • Retrieve item-specific data from the database or external sources as necessary to populate the detail page.
  • Implement error handling mechanisms to gracefully handle cases where item details are unavailable or invalid.

@Akash1362000 I can tackle this

Not able to create any blog post

Thank you for this project. I can register and sign in. Can see my profile (although not similar to what I see on the gif image). I can also see my information in the database. But I am not able to create blog post. I was expecting something like "Create" in the page after I signed in.

Enhancement: Implement Post Modification Functionality


Issue Description:
I would like to propose the implementation of a post-modification feature on the project. Currently, there is no way for the authors of posts to update their content. I believe adding this functionality will enhance user experience and engagement on the platform.

Suggested Implementation:

  • Create a new template update.html with a form to edit the post content.
  • Include an "Update Post" button on the post details page.
  • Implement server-side logic to handle the update, ensuring that only the original author can modify their post.

Additional Context:
In many scenarios, users may want to correct errors or update information in their posts after publication. This feature would provide a valuable addition to the platform, promoting user autonomy and improving overall content quality.


@Akash1362000 Please assign me to work on it

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.