Giter Club home page Giter Club logo

blog_application_django's Introduction

Blog_application_django

A Blog application developed using Django framework 3.1. See live at: https://blog-app-pydj.herokuapp.com/

Features:

  • User Authentication - Users can register, login and logout
  • Create, Edit and Delete Posts
  • Users can Like and Comment on posts.
  • Connections - Follow/Unfollow other users.

Steps to be followed for first time use

  • Set these Environment variables along with AWS Credentials

DEBUG_VALUE = True
DJANGO_ENV = DEV
SECRET_KEY_BLOG = <Your Secret Key>
  • Run these commands - This will create your application tables (by the Model definition) in the Database.

python manage.py makemigrations

python manage.py migrate
  • Create an admin user by running these following commands

python manage.py createsuperuser
  • Run Tests to ensure everything is set up and working correctly.

python manage.py test

Blog Application API Endpoints

  • GET https://blog-app-pydj.herokuapp.com/api/v1/viewset/users - Returns the list of all users registered.

Blogposts API Endpoints

  • GET https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts - Returns the list of all posts by all users.
  • POST https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts - Creates a new post.

    Data required = {"title": "Title", "description": "Description", "author": "Author ID"}

  • GET https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id> - Returns a post by it's post ID.
  • PUT https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id> - Updates a post by it's post ID.
  • DELETE https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id> - Deletes a post by it's post ID.
  • GET https://blog-app-pydj.herokuapp.com/api/v1/posts/?username=<username> - Returns a list of all posts by a specific user by his username.

This will be updated regularly....

blog_application_django's People

Contributors

ram-95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blog_application_django's Issues

Error message while Running `python manage.py migrate`

% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting TEMPLATES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

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.