The goal of efficiency is more slack.

Sunday, June 16, 2019

FeinCMS installation

Following directions at https://feincms-django-cms.readthedocs.io/en/stable/installation.html, I ran into some problems, probably due to a Django version mismatch. I'm using Django 1.11.x. This second tutorial helped fill in some blanks: https://www.digitalocean.com/community/tutorials/how-to-install-and-get-started-with-feincms . Below are my additions to the first documentation link.

Don't add context processors to the default set Django startproject created.

Create a folder for templates. Add it to settings.py:
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            os.path.join(BASE_DIR, 'my_project/templates'),
        ],

Create a template base.html with at least the following:
{% block content %} {% for content in feincms_page.content.main %} {{ content.render }} {% endfor %} {% endblock %}

Related Posts:

  • Django in a subdirectoryHow to serve a Django project as a subdirectory of another Django project's URL. For example, the first Django site is at www.example.com/ and the sec… Read More
  • Install Django on a development MacNotes on installing a Django development environment on a Mac. Install Python Install Python 3 from www.python.org. Run Install Cerltificates.comm… Read More
  • FeinCMS installationFollowing directions at https://feincms-django-cms.readthedocs.io/en/stable/installation.html, I ran into some problems, probably due to a Django vers… Read More
  • Django settings in wsgi.pyIn wsgi.py, don't use os.environ.setdefault because another uwsgi vassal may have set the environ already. Set the dictionary directly. os.environ['D… Read More
  • Create a new Django project in VSCode Go to user settings (cmd-,): "python.venvPath": "~/.virtualenvs", Quit VSCode. Open a Python file in VSCode. Select virtualenv in bottom ba… Read More

0 comments:

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Powered by Blogger.
Scroll To Top