Git Product home page Git Product logo

crimereportingsystem's Introduction

  1. Create a virtual environment by using the following command:

    • for windows
      python -m venv env
      
    • for mac
      python3 -m venv env
      
  2. Next you need to activate the virtual environment as:

    • for windows
      env\Scripts\activate
      
    • for mac
      source env/bin/activate
      
  3. Clone the repository using the following command:

    git clone https://github.com/tkarotra/CrimeReportingSystem.git
    
  4. We now need to move into our project folder. Do this by running the following command:

    cd CrimeReportingSystem
    
  5. Now we need to install all the dependencies of the project. This can be done using the following command:

    pip install -r requirements.txt
    
  6. Next you need to run the following command to setup our database:

    python manage.py makemigrations
    

    or

    python manage.py makemigrations app
    
  7. Then we simply need to apply these migrations by running:

    python manage.py migrate
    
  8. Next we need to create a super user to acess the database and all its tables:

    python manage.py createsuperuser
    
  9. Now finally to run the development server as follows:

    python manage.py runserver
    

Now you have setup the project successfully!!

NOTE : You can refer the below table for the shortcuts to all the commands that were used above and more.

Just remeber to run pip install django-shortcuts command to use the bellow shortcuts.


Original Command Shortcut
python manage.py runserver django r
python manage.py makemigrations django mm
python manage.py migrate django m
python manage.py createsuperuser django csu
python manage.py collectstatic django c
python manage.py shell django s
python manage.py changepassword django cpw

crimereportingsystem's People

Contributors

teesha-13 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.