Giter Site home page Giter Site logo

nippokun's Introduction

にっぽうくん

概要

「日報は投稿して終わりじゃない!フィードバックをもらってこそ!」をテーマにした日報アプリです。 日報を投稿するのはもちろん、読者が読んだ日報を評価する機能を実装しています。

デモ

日報作成

日報一覧(色がついている投稿が自身の投稿)

日報採点

Requirements

Python 3.5
PostgreSQL 9.6

SetUp

必要なライブラリのインストール

pip install -r requirements.txt

データベースの作成

PostgreSQLでユーザ作成を行う。
create user 'ユーザー名';
alter role ユーザー名 with password 'パスワード';
create database 'データベース名' owner 'ユーザー名';

作成したデータベースの情報をsecret.pyに以下のように記述し、setting.pyと同じ階層に記述する。ユーザ名とパスワードは使用するデータベース作成時に登録したものを記述

db_user = 'ユーザ名'
db_pass = 'パスワード'
db_host = 'localhost'
db_port = '5432'

SECRET_KEYをsecret.pyに以下のように記述

secret_key = 'シークレットキーにする情報(他人から推測されない文字列)'

Djangoのセットアップ

manage.pyのある階層に移動し、以下の順で実行する

1.python manage.py makemigrations
2.python manage.py migrate

3.管理者を作成する場合、python manage.py createsuperuser

Djangoの起動

manage.pyのある階層に移動し、以下を実行する

python manage.py runserver

License

MIT

Author

KIKUYA-Takumi

nippokun's People

Contributors

kikuya-takumi avatar

Watchers

 avatar  avatar

nippokun's Issues

Phantom Report

If user access to 127.0.0.1:8000/report/xx/score/(xx is ID of report not exist), he/she can access to score page.

Index error

When user don't login access to index page, it happens error.

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.