-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup-guild.txt
44 lines (25 loc) · 1.08 KB
/
Setup-guild.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
########################### Basic setup ---->
## First go to .env file and replace the values with your database details
## Optional you can use your email details to replace mine
## To verify if the database is connected run
$ python manage.py dbshell
##If your database settings are correct, this command should open a command-line interface to your ##PostgreSQL database. You can then run SQL queries directly in the terminal.
## Activating the virtual environment:
$ env/Scripts/activate
## installing the dependencies
$ pip install -r requirements.txt
## Making migrations and migrating
$ python manage.py makemigrations
$ python manage.py migrate
## Creating a superuser (the admin user)
$ python manage.py createsuperuser
## Enter your credentials
## You can now startUp the server
$ python manage.py runserver
########################### Setup for Tasks ---->
#
##
### Starting Celery server
$ celery -A dyingearthcode worker --pool=solo -l INFO
### Starting a beat server **Note:: Make sure you have beat installed and running
celery -A dyingearthcode beat -l INFO