Sign inSign up

yefryf/speakky-backend

By yefryf

•Updated about 7 years ago

Speakky backend / admin / API management repository

Image
0

1.6K

yefryf/speakky-backend repository overview

⁠Basic Requirements:

>= Python 3x

⁠Virtual environment

⁠Step 1

virtualenv <path> --python=python3

⁠Step 2

source <path>/bin/activate

⁠Step 3

pip install -r requeriments.txt

⁠Step 4

sudo apt-get install libssl-dev libffi-dev

⁠Creat DataBase (postgres):

'NAME': 'speakky'

modify file name: local.example by local.conf

⁠path /speakky/config/
⁠Enter your configuration correctly.
'NAME': 'name_your_db',
'HOST': 'name_your_host',
'USER': 'your_user_db',
'PASSWORD': 'your_pass',

⁠To generate the database, the following command is executed:

python manage.py migrate

⁠To generate a new super user admin

python manage.py createsuperuser

follow the instructions

⁠To load data from groups defined as:

  • Admin
  • NoGroup
  • Speaker
  • Client
  • Moderator

run command python manage.py loaddata users/loaddata/group.json

⁠To load the currency data.

python manage.py loaddata users/loaddata/currency.json

⁠To load the country data.

python manage.py loaddata users/loaddata/country.json

⁠To load the City and Province data.

python manage.py loaddata users/loaddata/city_province.json

⁠To load the language data.

python manage.py loaddata users/loaddata/language.json

⁠To Compilate the languages.

django-admin.py makemessages -l XX or python django-admin makemessages --locale XX

Ref: Multiple languages in Django⁠

Tag summary

Content type

Image

Digest

Size

400.1 MB

Last updated

about 7 years ago

docker pull yefryf/speakky-backend