Skip to content

mshirdel/gapbug

Repository files navigation

gapbug

QA site with Python/Django

Gapbug is a Question and Answers Django project like stackoverflow created for personal learning web application development with python.

The mechanisms used here are almost similar to Stockflow, which makes the focus more on the question and the answer, rather than on forums, a place to discuss issues.

We will be happy to report any problems with the code or any idea to make this project better. User Github Discussions

Tech Stack:

Install locally

python -m venv env
source env/bin/activate
git clone https://github.com/mshirdel/gapbug.git
cd gapbug
pip install -r requirements.txt
pip install -r dev-requirements.txt

For local development setting use this config as gapbug/settings/development.py

SECRET_KEY = '[your-secret-key]'

ALLOWED_HOSTS = []

DEBUG = True

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'gapbug',
        'USER': '[your-database-user]',
        'PASSWORD': '[your-database-password]',
        'HOST': '',
        'PORT': '5432',
    }
}

INSTALLED_APPS.append('rosetta')
INSTALLED_APPS.append('django_extensions')
INSTALLED_APPS.append('debug_toolbar')

MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
EMAIL_INFO = '[email protected]'
DEFAULT_FROM_EMAIL = '[email protected]'

Migrate database and run project:

python manage.py migrate
python manage.py runserver