- Notifications
You must be signed in to change notification settings - Fork0
😍 😮 💚 A social network where expressions speak and things talk
License
NotificationsYou must be signed in to change notification settings
hohosInc/hohos
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Clone the repo and follow these steps
git clone https://github.com/dbads/hohos.git
Install Requirements
sudo apt-get install python3sudo apt-get install python3-pip python3-dev libpq-dev postgresqlsudo apt-get install python3-setuptoolspip3 install -r requrements.txtif pip doesn't work, easy_install is there for you e.g.$ easy_install package_name
Database configuration
If you use postgresql thenChange name of databse, db user, db password, localhost, and you can leave port blankIf you want to use sqlite3 then just uncomment the sqlite configuration.
Configuring Settings.py file
you can make DEBUG=True while you are working locallyALLOWED_HOSTS=['*'] in local
Sensitive Information
There are some variables which are coming from either environment variables or from a file sensitive.py so you just create this file and pust those variables in that file or you can use environment variables too. #SENSITIVE DATABASE INFORMATIONDB_NAME='xyz'DB_PASS='your_DB_PASS'DB_PORT=5432DB_USER='abc'#SENSITIVE EMAIL DATASECRET_KEY='7yl&y17r&7h*#fk&whgdhgyys#^m$0+k$)l!-idm*md%w_ldcj'EMAIL_HOST='smtp.gmail.com' EMAIL_HOST_USER='your Email'EMAIL_HOST_PASSWORD='your email password'EMAIL_PORT='587'
Now Use the following commands to build the required tables
python3 manage.py migratepython3 manage.py makemigrationspython3 manage.py collectstaticpython3 manage.py createsuperuser to make a super uservisit ip:domain/admin to see admin panel
Commands to run server
python3 manage.py runserver <ip>:<port>default port is 8000 and default address is 127.0.0.1ctrl+c to stop the server
I will soon update readme telling how to deploy hohos on Heroku and Digital Ocean.
Want to add some feature in hohos, fork the hohos, make changes and create a Pull Requestyou can always email me or come on gitter in case of any query
About
😍 😮 💚 A social network where expressions speak and things talk
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published