Giter VIP home page Giter VIP logo

ant-cave's Introduction

ANT Cave ANT 동아리 홈페이지

ANT 동아리 홈페이지를 작성하는 페이지입니다. Django framework를 기반으로 만들어집니다.

장고 따라하기

Html, Css 해보기

웹 관련 doc

Readme 작성법

깃 사용방법

1) 설치


Python Library

선택) Library 의존성 관리를 위해 가상환경으로 설치 추천 (venv)

python -m venv ant-cave
ant-cave/Scripts/activate

필수) 홈 디렉터리에서

pip install -r requirement.txt 

DB

  1. Postgres를 설치한다.

    • Window 유저

      • port 번호 : 5432
      • 비밀번호 : su6407 시스템 환경변수 설정-환경변수-Path-C:\Program Files\PostgreSQL\10\bin - 환경변수 추가(각자 파일 위치 확인하시고 적용하세요)
       psql --username=postgres
    • Linux 유저

       sudo apt-get install postgresql postgresql-contrib
  2. Database 생성한다. 1 ) postgres를 실행한다.

    • Window 유저
    psql --username=postgres
     를 통해 들어가고 이전에 설정한 패스워드를 입력한다.
    
    • Linux 유저
    sudo -u postgres psql
     위의 명령어를 이용해 psql를 관리자 권한으로 연다.
    

    2 ) 데이터베이스를 생성한다.

    CREATE USER khz;
    CREATE DATABASE antcave OWNER khz;
  3. DATABASE migrate 한다.

    python manage.py makemigrations <app_name>
    python manage.py migrate

    app_name은 Board와 Profile을 넣어주면 됩니다. 두 app 을 모두 makemigrations 해준 후 migrate 하면 됩니다.

  4. DB가 제대로 생성되었는지 확인.

    python manage.py dbshell
    \dt

    를 통해서 디비가 잘 생성되었는지 확인 할수 있다.

  • 주의 migrations 폴더를 지우지 마세요.

2) 실행

Console 로 실행 ANT-Cave 폴더에서 python manage.py runserver 127.0.0.1:8000 실행 만약 8000 port가 사용중이거나 다른 포트를 쓰고 싶으면 python manage.py runserver 포트번호 127.0.0.1: Script 로 저장 (디버깅 가능) pycharm 상단 메뉴에서 Run -> edit configuration 선택 + 버튼 누르고 python 추가 , script 에 manage.py 위치 넣고 script parameter에 runserver 입력 후 실행

ant-cave's People

Contributors

hyeockjinkim avatar inspire12 avatar goodluckday avatar

Watchers

James Cloos avatar

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.