Giter Club home page Giter Club logo

zajednica's Introduction

Installation

To run this application on linux in local you need python3.7.9 or 3.8.0, pip and virtalenv or venv.

Python, pip and virtualenv

Install python and pip (comes built in with python 3.8.0 or higher)

Create and activate a virtual environment.

Clone project from github:

git clone https://github.com/Matje1979/zajednica.git

cd into zajednica folder (the root project folder)

Install dependencies:

pip3 install -r requirements.txt

Settings

Create .env file in the root of the project (zajednicastanara)

Copy in it the content of .env.example file.

Set database:

python manage.py migrate (or python3 manage.py migrate)

Go to zajednica/users/apps.py and comment out the ready function.

This is to prevent creating new profiles for users when records are imported.

Import data:

python manage.py loaddata db.json

Uncomment ready function in zajednica/users/apps.py

Set static files:

python3 manage.py collectstatic

Run project:

python3 manage.py runserver

Check website at localhost:8000

Create admin user

python manage.py createsuperuser

Contribute to the project

Create local copy of the branch you want to work on:

git checkout -b name_of_the_branch origin/name_of_the_branch

Work on the branch, save, commit and push changes to remote repository.

git status

(checks the status of git repository)###

git add *

(adds all changes to the staging area)

git commit -m "Your commit message"

(commits changes in the local repository)

git push -u origin name_of_branch

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.