Comments (5)
@chrisdev make test can also be included in the list
from wagtail-cookiecutter-foundation.
Correct!!
If you think we need to add any more stuff?
from wagtail-cookiecutter-foundation.
@chrisdev working on makefile will be adding things as encountered
from wagtail-cookiecutter-foundation.
@Parbhat The make file should also cover the static sites
Here are the manual instructions
Generating a static site
For this project we will generate a static site using django medusa
_ and the
wagtail.contrib.wagtailmedusa
.
Note the official django medusa
_ repo is broken
_ so we have to use this fork
_
which is specified in the requirements file.
.. _django medusa: https://github.com/mtigas/django-medusa
.. _this fork: https://github.com/ctxis/django-medusa
.. _broken: wagtail/wagtail#1183
Installing django-medusa
First, install django medusa from pip:
.. code::
pip install django-medusa
Then add ``django_medusa`` and ``wagtail.contrib.wagtailmedusa`` to ``INSTALLED_APPS``:
.. code:: python
INSTALLED_APPS = [
...
'django_medusa',
'wagtail.contrib.wagtailmedusa',
]
Add the following to the settings file
.. code:: python
MEDUSA_RENDERER_CLASS = "django_medusa.renderers.DiskStaticSiteRenderer"
MEDUSA_MULTITHREAD = True
MEDUSA_DEPLOY_DIR = 'wesleyan_static_site'
Rendering
Start by loading the initial data for the site
.. code:: bash
./manage.py loaddata core/fixtures/core_data.json
Make your changes using the admin as with a normal site. You may want to store
your changes
.. code:: bash
./manage.py loaddata core/fixtures/core_data.json
To render a site, first
.. code:: bash
./manage.py staticsitegen
This will render the the html for the entire website and place the HTML in
a folder called wesleayn_static_site
. Next run
.. code:: bash
./manage.py collectstatic
This will bundle all the static files used by your app into the static folder
at the root of the project.
Finally, copy the static and media folders to wesleyan_static_site
.
To test.
.. code:: bash
cd wesleyan_static_site
python -m SimpleHTTPServer
from wagtail-cookiecutter-foundation.
@chrisdev great adding it
from wagtail-cookiecutter-foundation.
Related Issues (20)
- Add sentry.io Celery and Redis integration
- Documentation on provisioning VPS via Ansible is inaccurate
- TemplateSyntaxError 'wagtailmarkdown' is not a registered tag
- User model crash when django-all-auth is not selected
- 'auth.User' has been swapped for 'users.User'
- Set the COMPRESS_ENABLED
- Make Provision Sticking at Generate CSR
- Command make static_site fails, documentation outdated
- cli.ini file contains invalid challenges
- wagtail updatemodulepaths needs to be added to deployment script
- Ansible deployment scripts need updating
- Support for Docker Containers
- Wagalytics Django ImportError HOT 3
- Photo Gallery should use Collections
- wagtail latest is not compatible with django latest HOT 1
- Sentry implementation refers to the deprecated client
- Redis not installed on Ubuntu release 18.0
- wrong crontab command for certbot renewal HOT 2
- Ansible cron task needs string escaping HOT 1
- make requirements raises incompatibilities HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wagtail-cookiecutter-foundation.