Coder Social home page Coder Social logo

django-template's Introduction

Django Template Project

This template is for use to kick in fast into a Django Project.

Getting Started with Django Template Project


Fork Repository

Press the fork button in top-right corner

Clone repository

$ git clone "https://github.com/username/Django-Template.git

Making Virtual Environment

python3 -m venv <name>

Activating virtual environment

Linux $ source <name>/bin/activate
Windows > source <name>/Scripts/activate

Installing required python packages

Navigate to requirements folder in the root directory

pip install -r base.txt

Install Postgresql, Create a User and Database. Also, grant all privileges of that db to User

Linux
$ sudo apt install postgresql postgresql-contrib
$ sudo -u postgres psql

Windows
http://www.postgresqltutorial.com/install-postgresql/
CREATE DATABASE yourdbname;
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;

Create a .env file based on env.example in root directory changing the database credentials and leave other fields as it is.

Creating Django SuperUser

$ python manage.py createsuperuser

Implementing Database

$ python manage.py migrate

Contributing Guidelines



  • Fork the repository

  • Clone the repository with

$ git clone "https://github.com/username/Django-Template.git
  • Create a branch to work upon
$ git checkout -b branchname
  • Add your changes and commit them
$ git add -A
$ git commit -m"meaningful commit message"
  • Push your changes to your forked copy
$ git push origin master
  • Make a Pull Request

django-template's People

Contributors

akshat0047 avatar xinghalok 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.