Search This Blog

Saturday, January 28, 2017

Wagtail CMS (new site setup UBUNTU 16.04)

cd

sudo apt install virtualenv

virtualenv -p /usr/bin/python3 py3wt

source py3wt/bin/activate

pip install wagtail
 
wagtail start gchen 

cd gchen
 
setup database
 
sudo apt-get install postgresql-client
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install pgadmin3
sudo apt install libpq-dev 
sudo -u postgres psql postgres
sudo apt-get install python3-dev  
 
\password postgres 
sudo -u postgres createdb gchen   (gchen is the database name)
 





pip install psycopg2
 
 
python manage.py migrate

python manage.py createsuperuser
python manage.py runserver




==

connect to database
sudo -u postgres psql postgres
(username postgres, databasename postgres) 

=====

change password:

alter user postgres password 'postgres';


=======
list database
\l

=====


deployment
sudo apt install supervisor
pip install gunicorn
python manage.py collectstatic

====
sudo apt install nodejs

No comments: