# Bee (python 3) ### Setup on Ubuntu 16.04 [install openssl 1.1.1](https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/): This is necessary for python to compile with `ssl`. `ssl` is need for `pip install <packages>`. [install python 3.8](https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/) [Configure python openssl path](https://stackoverflow.com/questions/5937337/building-python-with-ssl-support-in-non-standard-location): ``` LDFLAGS="${LDFLAGS} -Wl,-rpath=/usr/local/ssl/lib" ./configure --with-openssl=/usr/local/ssl ``` Setup venv and install Django, etc. ``` python3.8 -m venv venv source venv/bin/activate pip install django ``` Install mod_wsgi for python 3.8 in venv ``` sudo apt-get install python3.8-venv sudo apt-get install python3.8-dev sudo apt-get install apache2-dev pip install mod_wsgi ``` Setup Apache2: Edit `/etc/apache2/mods-enabled/wsgi.load` ``` LoadModule wsgi_module /home/chao/django-sites/bee3/venv/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-x86_64-linux-gnu.so ``` Then edit the .conf file `/etc/apache2/sites-available/000-default.conf` For developer: ``` django-admin startproject bee . python manage.py startapp events #Edit the Model.py file python manage.py makemigrations python manage.py migrate python manage.py createsuperuser python manage.py runserver 0.0.0.0:8000 ``` [Copy SQLite table from another file](https://www.educative.io/answers/how-to-copy-data-from-one-sqlite-database-to-another)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up