https://github.com/stdevteam/python-social-test
https://github.com/stdevteam/python-social-test
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/stdevteam/python-social-test
- Owner: stdevteam
- Created: 2021-05-07T12:49:41.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T12:41:21.000Z (about 5 years ago)
- Last Synced: 2025-01-20T10:48:08.444Z (over 1 year ago)
- Language: Python
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-social-test
Development setup
-----------------
Install required system packages:
sudo apt-get install python3-pip
Create www directory where project sites and environment dir
mkdir /var/www && mkdir /var/envs && mkdir /var/envs/bin
Install virtualenvwrapper
sudo pip3 install virtualenvwrapper
sudo pip3 install --upgrade virtualenv
Add these to your bashrc virutualenvwrapper work
export WORKON_HOME=/var/envs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.8
export PROJECT_HOME=/var/www
export VIRTUALENVWRAPPER_HOOK_DIR=/var/envs/bin
source /usr/local/bin/virtualenvwrapper.sh
Create virtualenv
cd /var/envs && mkvirtualenv --python=/usr/bin/python3.8 python-social-test
Install requirements for a project.
cd /var/www/python-social-test && pip install -r requirements.txt
Configure DB
Import .sql file to the database
Configure .env file
An example of .env is named '.env.example'
Running
$ flask run -p 5000