If you have to write a code thrice; make a function. If you have to explain something thrice; write to gitalltech.
git clone https://github.com/gitalltech/gitall
cd project_madara
M virtualenv
virtualenv
venv source venv/bin/activate
pip install -r requirements.txt
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
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'gitalldb',
'USER': 'gitalluser',
'PASSWORD': 'gitall@12345',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
cd projectMadara
python manage.py migrate
python manage.py runserver
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
Want to contribute to the project? Mail us at: [email protected]