Augustinetharakan12 / excelplay-dalalbull

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DalalBull

STEPS

1-Virtual environment

Create a virtual environment($ virtualenv -p python3 env_name)
Activate the environment ($ source env_name/bin/activate)

2-Install the requirements

pip install -r requirements.txt

3-Set up the Database

Create a user (>>>CREATE USER <username> IDENTIFIED BY 'password';)
Grant all privileges (>>>GRANT ALL PRIVILEGES ON * . * TO 'USER';)
Create a database (>>>CREATE DATABASE <databasename>;)
Create a file named database.conf(Inside the directory where settings.py is present)
The contents of database.conf should be in the same format as it is give in database.conf.example

4-Migrations

$ python manage.py makemigrations
$ python manage.py migrate

5-Setting up Redis Server

( for production : pip install -U channels_redis )

$ sudo apt-get install redis-server
$ redis-server

6-Start the worker in a new terminal

celery -A excelplay_dalalbull beat

To see the status
	celery -A excelplay_dalalbull worker -l info 

7-Run the server

$ python manage.py runserver

About


Languages

Language:Python 93.5%Language:HTML 5.0%Language:Shell 0.9%Language:Dockerfile 0.6%