Skip to content

Jliezed/oc_project_9_litreview

Repository files navigation

oc web django crud


OC - PROJECT N°9 - Web Application Using Django Framework

LITReview is a django web application allowing users to create or asked for books reviews.

By Susan Q Yin

About The Project

Authentication

Authentication

CRUD

Create a Ticket

Create Ticket

Create a Review

Create Review

Update a post

Update Post

Delete a post

Update Post

Followers

Followers

(back to top)

Built With

  • HTML
  • CSS & SASS
  • Python - Django Framework

(back to top)

Getting Started

Installation & Running the script

  1. Clone the repo
    git clone https://github.com/Jliezed/oc_project_9_litreview.git

Create and activate a virtual environment

  1. Go to your project directory
    cd oc_project_9_litreview
  2. Install venv library (if not yet in your computer)
    pip install venv
  3. Create a virtual environment
    python -m venv env
  4. Activate the virtual environment
    source env/bin/activate

Install packages

  1. Install the packages using requirements.txt
    pip install -r requirements.txt

Set environment variables

  1. Create a copy of the file ".env.default" and rename it ".env"
  2. Set value to the .env file:
    1. Define a secret key

    2. Debug to True for local development or False for production

    3. Allowed host equal to 127.0.0.1 for local environment

      SECRET_KEY='YOUR SECRET KEY'
      DEBUG=True
      ALLOWED_HOSTS=['127.0.0.1']

Run the server

  1. Access to the app: http://127.0.0.1:8000/accounts/login/
    python manage.py runserver
  2. Access to the Admin: http://127.0.0.1:8000/admin/login/?next=/admin/
User: toto
Password: secret

(back to top)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published