Giter VIP home page Giter VIP logo

django_boilerplate's Introduction

Django base boilerplate

PostgreSQL

Configuration

  • Install PostgreSQL with homebrew $ brew install

$ psql - administer PostgreSQL from the command line

$ \du - shows your users for PostgreSQL

$ \q - exist PostgreSQL cli

  • Download pgAdmin to manage PostgreSQL
  • Launch pgAdmin and login
  • From the menu options on the top bar select Object -> create -> Database
  • Create a new database called supertuber
  • Connect Django to PostgreSQL by going to the SuperTuber project settings.py and add the following
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'supertuber',
        'USER': 'yourusername',
        'PASSWORD': 'yourpassword',
        'HOST': 'localhost',
        'PORT': '',
    }
}
  • Create a new database migration $ python manage.py makemigrations

  • Create the database tables $ python manage.py migrate

Resources

PostgreSQL Installation

Resources

https://dev.to/coderasha/create-advanced-user-sign-up-view-in-django-step-by-step-k9m https://github.com/raszidzie/django-advanced-signup-tutorial https://www.youtube.com/watch?v=FdVuKt_iuSI https://simpleisbetterthancomplex.com/series/2017/10/09/a-complete-beginners-guide-to-django-part-6.html https://django.cowhite.com/blog/adding-and-editing-model-objects-using-django-class-based-views-and-forms/ https://www.youtube.com/watch?v=9-ALutreCkE&list=PLLxk3TkuAYnryu1lEcFaBr358IynT7l7H&index=2 https://django-book.readthedocs.io/en/latest/index.html

django_boilerplate's People

Stargazers

 avatar

Watchers

 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.