Skip to content

pascaline-m/python_p09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO Project - LIT REVIEW

OVERVIEW

Beta version of a website made with Django. Allows you to post reviews to respond to the reviews of other user, to post your own review and to follow users and their posts.

REQUISITORIES

Python3
Django3
Flake8-html

INSTALLATION

Start by closing the repository :

git clone https://github.com/pascaline841/python_p09

Start access the project folder

for Window

Create a virtual environment

python -m venv env

Enable the virtual environment

cd env/scripts
source activate

for Linux or macOS

Create a virtual environment

python3 -m venv env

Activate the virtual environment with

source env/bin/activate 

. . .

Install the python dependencies to the virtual environment

pip install -r requirements.txt
  • Create the database structure by using sqlite3
python manage.py migrate
  • Create an administrative account :
    You will be asked to select a username, provide an email address, and choose and confirm a password for the account.
winpty python manage.py createsuperuser
  • Create and open a file named .env then paste :
DJANGO_SETTINGS_MODULE="litreview.settings.development"
DB_SECRET_KEY= 

Then complete DB_SECRET_KEY with the key you receive in private.

LAUNCH

Run the program

python manage.py runserver

Launch :

http://127.0.0.1:8000

To access to the admin account :

http://127.0.0.1:8000/admin

Use FLAKE8

In order to generate a flake8 report, run the following command :

flake8 --ignore=E501,W503 --format=html --htmldir=flake-report --exclude=venv,manage.py,db.sqlite3,litreview

Open the html file into the flake-report repertory to show the report.

SCREENSHOT

screenshot0
screenshot1
screenshot2
screenshot3

About

Beta version of a social website using Django and Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors