Python wagtail














































Python wagtail



          INTRODUCTION TO WAGTAIL

Wagtail is a Python based CMS made for Django. The Wagtail CMS was released in 2015 by a digital agency named Torchbox, the same agency that created South migrations for Django in 2008. So when we encountered a project that required a content management system, we had an additional reason to give Wagtail CMS a try.
 
     HOW TO INSTALL AND RUN WAGTAIL

Step 1:-

         Install Python

Wagtail supports Python 3.5, 3.6, 3.7 and 3.8.

To check whether you have an appropriate version of Python 3:

  •  $ python3 --version

Note:- If this does not return a version number or returns a version lower than 3.5, you will need to install Python3.

Step 2:-

      Create and activate a virtual environment

Recommend using a virtual environment, which provides an isolated Python environment. This tutorial uses venv, which is packaged with Python 3.

On Windows (cmd.exe):

  •     $ python3 -m venv mysitenv
  •   $ mysitenvScriptsactivate.bat

On Unix or MacOS (bash):

  •    $ python3 -m venv mysite/env
  •    $ source mysite/env/bin/activate

Step 3:-

     Install Wagtail

Use pip, which is packaged with Python, to install Wagtail and its dependencies:

  •    $ pip install wagtail

Step 4:-

   Generate your site
  •   $ wagtail start mysite mysite
Step 5:-

   Install project dependencies

  •  $ cd mysite
  •   install -r requirements.txt
This ensures that you have the relevant versions of Wagtail, Django, and any other dependencies for the project you have just created.

Step 6:-

   Create the database
  

  •  $ python manage.py migrate

  Step 7:-

    Create an admin user
  •   $ python manage.py createsuperuser
Step 8:- 

   Start the server
  •   $ python manage.py runserver
If everything worked, http://127.0.0.1:8000 will show you a welcome page:

You can now access the administrative area at http://127.0.0.1:8000/admin


More Articles of SAYENDEEP MAHANTY:

Name Views Likes
C++ Exception Handling-|| 72 3
C++ Exception Handling 102 3
C++ File Handling EOF 81 5
C++ File Handling Error Handling During file Operation 935 5
C++ File Handling seekp() Function 90 5
C++ File Handling seekg() Function 78 6
C++ File Handling tellg() Function 107 5
C++ File Handling tellp() Function 96 5
C++ File Handling close() Function 69 5
C++ File Handling:: open() 92 5
C++ File Handling Introduction 121 5
C++ Container Library:: std ::array-II 92 4
Top Django Interview Questions and Answers You Need to Know 264 6
C++ Container Library::std::array 85 6
C++ Container Library Introduction 94 5
Essential Engineering Skills for Your Resume 115 5
Mistakes To Avoid During Technical Interview 122 5
Mistakes You Must Avoid During Work From Home 164 6
Seven Common Mistakes that Beginners Should Avoid While Learning to Code 94 6
Simple Linear Regression 89 6
Python wagtailmenus 108 6
Python wagtail application 109 6
Python guppy GSL 119 5
Python wagtail guppy subpackage heapy 163 6
Python guppy Introduction 204 6
Python wagtail Structural Block 242 6
Python wagtail Integrating into Django Project 335 6
Python wagtail testing 265 7
Python wagtail Basic Block 315 7
Python wagtail image tag 209 7
Python wagtail Templates 167 6
Python wagtail Backends 187 6
Python wagtail Indexing 172 6
Python wagtail Search 166 7
Python wagtail Snippets 179 6
Python wagtail Writing your own page models 156 9
Python wagtail model class PageRevision 182 10
Python wagtail model class Site 191 9
Python wagtail wagtail core model 210 9
Python wagtail page models 180 10
Python wagtail 155 11

Comments