| AMMAN-JORDAN

How to install wagtail cms on windows 10 or ubuntu 20.04

By

How to install wagtail cms On Windows 10 with pycharm or on ubuntu 20.04

installing wagtail cms on Windows 10 or ubuntu 20.04
How to install wagtail cms on Windows 10 or ubuntu 20.04
By

How to install wagtail cms on windows 10 with pycharm configured :-

Wagtail is free, open source CMS(Content Management System).It is using the Django framework, developed using python programming language. There is a lot of sites and apps made by Wagtail CMS you can check it throw made with wagtail site.

Follow these steps to install Wagtail CMS on windows 10 with pycharm :-

  1. Install Python 3.8.5 from Python website.

  • Python 3.8.5 - July 20, 2020, Windows x86-64 executable installer.
  • Add python 3.8 to path (check box).
  • select install now.

2. Open CMD (Command Propmet) : to install wagtail.

  • cd Desktop
  • pip3 install wagtail #(note that pip installed by default with python 3.8.5)
  • wagtail start website #(to start new wagtail project with name website)

start wagtail cms project on windows 10

  • cd website #enter project directory.
  • pip3 install -r requirements.txt # to install project requirements (python packages)
  • python manage.py migrate #to execute SQL commands in database file(migrate table)
  • python manage.py createsuperuser # to create a user who can login to the admin site

Now you can run wagtail throw CMD :

  • python manage.py runserver

OR configure it using pycharm ide so you can start development :-

3. Install pycharm IDE throw Pycharm Website :-

  • Run pycharm
  • Start
  • Select File then open
  • Select open file or project
  • open your wagtail project (website).

After select the project, you need to add python interpreter. follow these steps : To configure running environment :

Open file -> settings -> project:website -> add python interpreter -> virtualenv Environment

how to add python interpreter for project in pycharm ide

Add you python3.8 path -> apply.

How to add configuration to run wagtail cms :

click on run -> run -> edit configurations -> from Templates click + button -> python -> (name your running configuration)

  • add script path which is : manage.py file (path)
  • add parameters which is : runserver

configure parameters for wagtail in pycharm ide

Done!

How to install wagtail cms on ubuntu 20.04 :-

Follow these steps to install Wagtail CMS on ubuntu 20.04 with pycharm :- open Terminal

  • sudo apt-get update

  • sudo apt-get upgrade

  • sudo apt install python3-pip
  • pip3 install wagtail
  • wagtail start website #(to start new wagtail project with name website)

wagtail start project

  • cd website
  • pip3 install -r requirements.txt #to install project requirements (python packages)
  • python3 manage.py migrate #to execute SQL commands in database file(migrate table)
  • python3 manage.py createsuperuser

Now you can run wagtail throw Terminal:

  • python3 manage.py runserver

OR configure it using pycharm ide so you can start development :- (Using Pycharm)

To install pycharm ide on ubuntu 20.04 go to ubuntu software , search for pycharm and install it.

  • Open pycharm
  • confirm user agreement
  • open projects
  • select your project directory (website)
  • it will ask you for virtual environment which is python3.8 interpreter

How to add configuration to run wagtail cms in pycharm :

click on run -> run -> edit configurations -> from Templates click + button -> python -> (name your running configuration)

  • add script path which is : manage.py file (path)
  • add parameters which is : runserver

configure parameters for wagtail in pycharm ide on ubuntu 20.04

Apply.

Done !

© 2020 PyOdoo.

TOPICS:  Technology-blog