Giter VIP home page Giter VIP logo

gitall_test's Introduction

project_madara

Basic Principle

If you have to write a code thrice; make a function. If you have to explain something thrice; write to gitalltech.

Run Locally

1. Get it onto your system | we prefer ubuntu

git clone https://github.com/gitalltech/gitall

2. Basic set up

cd project_madara

2.1 Creating a virtual environment

M virtualenv 
virtualenv 
venv source venv/bin/activate

2.2 Installing the requirements

pip install -r requirements.txt

2.3 Setting up the database | we use postgres

sudo apt-get install libpq-dev postgresql postgresql-contrib

sudo -i -u postgres

psql

# this should bring you in a console.
create database <database_name>;

create user <username> with password '<password>';

grant all privileges on database <database_name> to <username>;

\q

exit

2.4 Do the corresponding changes to ProjectMadara/settings.py [line 109]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'gitalldb',
        'USER': 'gitalluser',
        'PASSWORD': 'gitall@12345',
        'HOST': '127.0.0.1',
        'PORT': '5432',
    }
}

3. Running django

cd projectMadara

python manage.py migrate

python manage.py runserver

Access the site at 127.0.0.1:8000/

4. Creating a superuser

ctrl+c # this exits you from the running django local-server

python manage.py createsuperuser

# proceed accordingly by adding a username and password

python manage.py runserver

4.1 Access the admin panel at 127.0.0.1:8000/admin

5. Happy Coding. No mames!

Want to contribute to the project? Mail us at: [email protected]

gitall_test's People

Contributors

harshit8858 avatar nayan2000 avatar

Watchers

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