djangocms-installer | Console wizard to bootstrap django CMS projects | Content Management System library
kandi X-RAY | djangocms-installer Summary
kandi X-RAY | djangocms-installer Summary
Console wizard to bootstrap django CMS projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create the project
- Load starting page
- Create a django project
- Copy static files
- Cleanup the project directory
- Ask the user for a question
- Serve documentation
- Build documentation
- Create pages
- Run pip requirements
djangocms-installer Key Features
djangocms-installer Examples and Code Snippets
from django.utils.translation import gettext_lazy as _
# Python 2
sudo apt-get install python-dev python-setuptools
# Python 3
sudo apt-get install python3-dev python3-setuptools
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev
>>> from cms import constants
>>> from cms.constants import TEMPLATE_INHERITANCE_MAGIC
>>> from cms import api
>>> api.create_page(title="Hello World4",language='en',template=TEMPLATE_INHERITANCE_MAGIC,p
output = subprocess.check_output(['pip'] + args, stderr=subprocess.STDOUT)
set PATH=%PATH%;C:\Python34\Scripts
Community Discussions
Trending Discussions on djangocms-installer
QUESTION
I have developed a simple project with DjangoCMS(3.7.2) and it works great in the local. I 'm gonna run it on a ubuntu server, which I have another Django project run on it with no issues. Both of my projects are built using python 3.6 & MySQL database. I took these steps to run my new project:
- Cloned the project from the server via git and updated the
settings.py
file - Created an empty database on the server
- Installed a virtualenv on server by
python3 -m venv venv
- Activated the
venv
and upgradedpip
- Installed requirements successfully using
pip install -r requirements.txt
- Tried to Migrate by
python3 manage.py migrate
But I got this error:
...ANSWER
Answered 2020-May-01 at 06:06As Alasdair mentioned:
I reinstalled the Django-CMS module by running python3 -m pip install "django-cms==3.7.2"
, and surprisingly it worked.
QUESTION
(env) Name-MacBook-Pro-2:site_cms name$ djangocms -f -p . site_cms
Creating the project
Please wait while I install dependencies
If I am stuck for a long time, please check for connectivity / PyPi issues
Dependencies installed
Creating the project
The installation has failed.
*****************************************************************
Check documentation at https://djangocms-installer.readthedocs.io
*****************************************************************
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/djangocms", line 11, in
sys.exit(execute())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/djangocms_installer/main.py", line 44, in execute
django.setup_database(config_data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/djangocms_installer/django/__init__.py", line 407, in setup_database
command, env=env, stderr=subprocess.STDOUT
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 376, in check_output
**kwargs).stdout
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7', '-W', 'ignore', 'manage.py', 'migrate']' returned non-zero exit status 1.
...ANSWER
Answered 2018-Sep-10 at 04:00In case anyone else runs into this issue, or if the OP never solved it, I encountered the same issue tonight and it looks like python 3.7 is indeed the culprit.
djangocms (currently) only supports up to Django 1.11, which does not appear to support python 3.7. Django 1.11 release notes
What tipped me off was re-running the install with the --verbose option and seeing this line:
QUESTION
ANSWER
Answered 2018-Apr-14 at 10:09You can use menu_tags inside your main html template, go to your mainproject/templates then edit base.html. Follow the instruction.
QUESTION
I installed Django CMS through Powershell using the command:
pip install djangocms-installer
I'm new to this, and the tutorial that I've been following suggested that I should be asked questions to set up Bootstrap and the SuperUser account. These questions weren't asked. Does anybody know why and how I could change this by hand? The django docs don't seem to be much help here because they assume that the questions are asked.
It occurs when I create a new project using:
...ANSWER
Answered 2017-Nov-10 at 01:00I don't know if this helps but I had all sorts of headaches the first time I tried to install Django-cms. After much head scratching I did get it to successfully install and I was able to get up and running with it. I also created a crib sheet along the way of all the steps I took.
I have published this crib sheet on my website and you are welcome to go and review it, print it off etc. It will take you right back to the very beginning which may be unnecessary but hopefully you might be able to cherry pick the bits that you need. Hope it helps.
http://www.ubsltd.co.uk/index.php/creating-a-cms-website-with-django
QUESTION
I have a website, currently running with Django==1.8.6 and Django-CMS 3.0.x (running through upgrades at the moment).
My users can not edit any of the frontend plugins. At the moment I am sure that this is not only true for my custom made plugins, but for ones that come with Django-CMS as well. As a test I have made a new User with all rights and staff status (no superuser). But also this user can't edit or add plugins.
For my search I have found this: https://github.com/divio/djangocms-text-ckeditor/issues/78
I also tested the solution given there as I am using ckeditor, but I don't have an entry for text, so this:
...ANSWER
Answered 2017-Jun-07 at 13:00The answer is after some debugging the permissions.py of the cms, that my sitepermissions where not set properly in the database. Resetting thos in the backend solved the problem.
QUESTION
Im making an ansible role to install a clean Django CMS instance, when trying to activate my installed Virtual Env I'm getting a permission error, I have read up that sometimes this can be caused when making the env with different permissions to when you try and activate it. I have tried with and without root sudo in both instances.
I am using a Ubuntu/Trusty64
box.
Here is the error im getting from my task:
TASK [dependancies : Activate Venv] ********************************************
fatal: [default]: FAILED! => {"changed": false, "cmd": ". env/bin/activate", "failed": true, "msg": "[Errno 13] Permission denied", "rc": 13}
Here is my role file:
...ANSWER
Answered 2017-Mar-15 at 10:09You should not do it this way in the first place!
Use pip
package with virtualenv
parameters. If you still want to activate. See example in this SO question.
If you still want to activate virtual environment inside a shell, you should use shell
module (not command
!) for source bin/activate
to work. source
and .
are bash built-ins, so command
module can't execute them.
QUESTION
I am trying to install Django CMS on windows. I am using following steps.
C:\Python34\Scripts\pip install djangocms-installer
E:\Projects\example>C:\Python34\Scripts\djangocms -p mysite mysite
But throws following error:
...ANSWER
Answered 2017-Jan-10 at 10:30The root cause is this line:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install djangocms-installer
You can use djangocms-installer like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page