Giter Club home page Giter Club logo

fabl-writer's Introduction

FABL WRITER

Django'yu sistemde çalıştırabilmek için ilk önce izole bir ortam oluşturmamız lazım. İlk olarak virtual environmenti sisteme kuruyoruz.

apt-get install python3-pip
pip3 install virtualenv

Şimdi de sanal ortamlarımızı tuttuğumuz bir dizin oluşturalım. Ardından dizine sanal ortamımızı kuralım.

mkdir env
cd env
virtualenv myenv --python=python3

Ardından sanal ortamımızı aktifleştiriyoruz.

source myenv/bin/activate

Konsolun en başına sanal ortamın adı gelmesi gerekiyor. Eğer gelmiyorsa önceki adımları bir daha gözden geçirin.

(myenv) ┌─[hello@parrot]─[~/env]
└──╼ $

Şimdi projemizi locale çekelim.

cd ~
git clone https://github.com/lyk2018-python/fabl-writer

Projeyi çalıştırmak için gerekli paketleri kuralım.

cd fabl-writer/fablwriter/
pip3 install -r requirements.txt

Şimdi projenin çalışabilmesi için localde database oluşturmamız lazım.

python manage.py makemigrations
python manage.py migrate

Admin paneline erişim için bir kullanıcı oluşturuyoruz.

(myenv) ┌─[hello@parrot]─[~/fabl-writer/fablwriter]
└──╼ $ python manage.py createsuperuser
Username (leave blank to use 'hello'): lyk
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.

Artık projeyi çalıştırabiliriz.

(myenv) ┌─[hello@parrot]─[~/fabl-writer/fablwriter]
└──╼ $ python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
August 01, 2018 - 15:26:55
Django version 2.0.7, using settings 'fablwriter.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

NOT: Admin paneline erişmek için -> http://127.0.0.1:8000/admin

fabl-writer's People

Contributors

huseyince avatar busesavci avatar ekalem avatar sevilayerkan avatar kemalbsoylu 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.