Django Web Messenger
- Download repo
- Run
install.bat
, it contains a few instalations throughtenv\Scripts\pip.exe
(Yea I know about setuptools. I will fix it) - Install Redis
- Base config in
Mess\settings.py
using default redis port -6379
- Run
setup.bat
. It make migrations, apply it thensetup.bat
runmanage.py createsuperuser
and you must input username/email/password - Default DB - default sqlite3
- Enter
SECRET_KEY
inMess\settings.py
- Same as on Windows but instead of
.bat
files usemake install
andmake setup
You can switch db on postgre (it works more faster):
- document this lines
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
- undocument this lines
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'mess_db',
'USER' : 'postgres',
'PASSWORD' : '',
'HOST' : '127.0.0.1',
'PORT' : '5432',
}
}
- Create db
mess_db
by superuser (I heard that it is bad practice, will be fixed later) - Then it must work