this repo handles backend of akaskhoone project
- python 3.6
- django 2.1
- djangorestframework 3.8
- djangorestframework_simplejwt 3.2.3
- redis 2.10.6
- requests 2.19.1
- mysqlclient
macOS / Linux / Windows:
pip install virtualenv
macOS / Linux / Windows
virtualenv env_akaskhoone
macOS / Linux:
source env_akaskhoone/bin/activate
Windows:
.\env_akaskhoone\Scripts\activate
macOS / Linux / Windows:
pip install -r akaskhoone/requirements.txt
in root directory of project run this command for migrating models
macOS / Linux / Windows:
export DJANGO_SETTINGS_MODULE=“akaskhoone.settings.base”
python manage.py makemigrations --settings=akaskhoone.settings.base
python manage.py migrate --settings=akaskhoone.settings.base
macOS / Linux / Windows:
python manage.py loaddata user profile tag post board --settings=akaskhoone.settings.base
and then:
mkdir media
cp -r accounts/fixtures/profile_photos media
cp -r social/fixtures/posts media
in root directory of project run this command:
change the
DEBUG = Truefor testing project with local Django server.
macOS / Linux / Windows:
python manage.py runserver --settings=akaskhoone.settings.base
and then checkout 127.0.0.1:8000