Giter VIP home page Giter VIP logo

simpledjangoblog's Introduction

Simple Django Blog

Django öğrenirken youtubedaki video derslerden çalışırken yaptığım küçük bir blog projesi. Django 2.1, python 3.6 ve bootstrap 3 kullanılmıştır.

Video dersler hakkında

Tabikide bu derslerin yayınlanma tarihinden bi kaç yıl geçti. Dolayısıyla bende hem yeni sürümlere adapte olmak hemde projenin daha güncel halinin bulunması için video dersleri tekrardan izledim ve projeyi tekrardan kodladım.

Eğer djangoya yeni başladıysanız bu video dersleri izlemenizi tavsiye ederim. Linkler aşağıda.

Proje Özellikleri

  • Blog post ekleme, silme, güncelleme.
  • Yorum ekleme
  • Blog yazısına resim, dosya ekleme.
  • Kullanıcı üyelikleri için kayıt olma ve giriş yapma.
  • Basit bir editörle html bilgisi olmadan yezı yazabilme.

Bağımlılıklar

  • django
  • django-ckeditor
  • django-crispy-forms
  • Pillow

Kurulum

Kurulumları virtualenv içine yapmanızı tavsiye ederiz. Bu sayede proje sistemden soyutlanmış olarak çalışabilecek.

virtualenv venv
source venv/bin/activate

Eğer django kurulu değilse şu komutla kurabilirsiniz.

pip install django

Bağımlılıkları şu komut ile kurabilirsiniz.

pip install -r requirements.txt

Django kurulumunu tamamladıktan sonra proje dizinini istediğiniz bir dizine taşıyın. Ardından terminal üzerinden manage.py nin bulunduğu dizine girin. Veritabanını oluşturmak için şu 2 komutu girin.

python manage.py makemigrations
python manage.py migrate

Veritabanı oluşacaktır. Ardından bir superuser oluşturmalıyız. Admin arayüzüne girmek için.

python manage.py createsuperuser

Gerekli bilgileri girdikten ve admin hesabını oluşturduktan sonra artık projeyi çalıştırabiliriz.

python manage.py runserver

simpledjangoblog's People

Contributors

hatsat32 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.