Coder Social home page Coder Social logo

sg434_radical-1's Introduction

Update 30-07-2020

Run python manage.py createcachetable after pulling from upstream. (Required only once)

Update 26-07-2020

Package django-import-export added to Pipfile.

Run pipenv install command to install package from pipfile.

Important Guidelines

  1. Write code and commit on your own branch only. (No commits on master branch). Feel free to make as many branches as you like.
  2. Do not modify existing code blocks(classes, functions, models, api, views, etc.) to fit your task needs. If you want to reuse a code block, reuse as it is. Or else make your own. Then code optimization and refactoring will be done later at the end of an iteration.
  3. Always comment your code blocks such that other devs can understand its purpose. Example:- 1 or 2 line description about a function.
  4. Avoid using (Shift+Delete). Recycle Bin is a friend in need, indeed......
  5. After pulling, check for any python package updates. If any, run pipenv install to install the new packages. Also, run database migrations.
  6. Thoroughly test before opening a Pull Request.
  7. Any other important guideline for the team should be highlighted here in Readme.md in bold.
  8. As a convention, prefix model fields and form fields with model name. Eg:- class Stud(models.Model): stud_name, stud_age.

Setting up The Repo 1st Time on Local System

  1. Fork the repo to your account.

  2. Clone the repo on your computer.

  3. Add remote upstream for fetching / pulling from the original project repo.(Fetch/Pull Updates from upstream. And Push your commits to origin)

    git remote add upstream https://github.com/dhruvparekh12/sih-sikkim.git

  4. Checkout to Your own branch.

    git checkout -b br_name

  5. Setup Environment and dependencies. (Requires python 3.7 and pipenv installed). Enter these commands in the repo root directory.(where Pipfile exist.)

    pipenv install

    pipenv shell

  6. Setup Database.

    cd src

    python manage.py makemigrations

    python manage.py migrate

    python manage.py import_bl_dr

    python manage.py createsuperuser

  7. Run Server.

    python manage.py runserver

Additional Notes

  • Django Admin Panel can be accessed at:

    /admin-control-panel/

  • Default Accounts:-

    District Admin (East Sikkim) username:- east_admin

    Block Admin (Gangtok) username:- gangtok_admin

    Password (for all above accounts):- Pass@123

  • MDBootstrap Documentation

    https://mdbootstrap.com/docs/standard/forms/overview/

sg434_radical-1's People

Contributors

deepak-kharah avatar dhruvparekh12 avatar kane-99 avatar nitu22499 avatar pawan43563 avatar viveksingh120300 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.