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.pyusing default redis port -6379 - Run
setup.bat. It make migrations, apply it thensetup.batrunmanage.py createsuperuserand you must input username/email/password - Default DB - default sqlite3
- Enter
SECRET_KEYinMess\settings.py
- Same as on Windows but instead of
.batfiles usemake installandmake 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_dbby superuser (I heard that it is bad practice, will be fixed later) - Then it must work