Closed tanyewei closed 9 years ago
i fixed that but never updated the version in flask-cms requirements.txt file, if you do
pip install --upgrade flask-xxl
from your virtualenv it should install correctly and work.
what is the mean no testing ? not testing, are you sure you want to continue... [n]: y
Configuration provided:
[variables] from ~/.mrbob [variables] from --config file [defaults] from ~/.mrbob [defaults] from --config file [mr.bob] from ~/.mrbob [mr.bob] from --config file [mr.bob] from command line interface non_interactive = False quiet = False remember_answers = True verbose = True
Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered.
Answer with a question mark to display help. Values in square brackets at the end of the questions show the default value if there is no answer.
--> What will you name this webapp: wireshark
--> Will this webapp need database support [no]:
--> recaptcha public key:
--> recaptcha public key:
Generated file structure at /private/tmp/1/app
only one file :.mrbob.ini??
im not sure where your going wrong, are you using a clean virtualenv? look:
root@kyle-vm 11:54 PM $ ~ mkdir cms
root@kyle-vm 11:54 PM $ ~ cd cms
root@kyle-vm 11:54 PM $ ~/cms virtualenv venv
New python executable in venv/bin/python
Installing setuptools, pip...done.
(venv) root@kyle-vm 11:54 PM $ ~/cms . ./venv/bin/activate
(venv) root@kyle-vm 11:54 PM $ ~/cms ./venv/bin/pip install flask-xxl -q
(venv) root@kyle-vm 11:55 PM $ ~/cms ./venv/bin/flaskxxl-manage.py start_project
not testing, are you sure you want to continue... [n]: y
Configuration provided:
[variables] from ~/.mrbob
[variables] from --config file
[defaults] from ~/.mrbob
project.virtualenv = /root/.virtualenvs/duicentral
[defaults] from --config file
[mr.bob] from ~/.mrbob
[mr.bob] from --config file
[mr.bob] from command line interface
non_interactive = False
quiet = False
remember_answers = True
verbose = True
Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered.
Answer with a question mark to display help.
Values in square brackets at the end of the questions show the default value if there is no answer.
--> What will you name this webapp: projects
--> Will this webapp need database support [no]:
--> recaptcha public key:
--> recaptcha public key:
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/__init__.pyc to /root/cms/__init__.pyc
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/__init__.py to /root/cms/__init__.py
mkdir /root/cms/projects
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/__init__.py.bob to /root/cms/projects/__init__.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/__init__.pyc to /root/cms/projects/__init__.pyc
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/urls.py.bob to /root/cms/projects/urls.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/__init__.py to /root/cms/projects/__init__.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/manage.py.bob to /root/cms/projects/manage.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/app.py.bob to /root/cms/projects/app.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/context_processors.py.bob to /root/cms/projects/context_processors.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/ext.py.bob to /root/cms/projects/ext.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/settings.py.bob to /root/cms/projects/settings.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/imports.py.bob to /root/cms/projects/imports.py
Rendering /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/local_settings.py.bob to /root/cms/projects/local_settings.py
mkdir /root/cms/projects/projects
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/models.py to /root/cms/projects/projects/models.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/urls.py to /root/cms/projects/projects/urls.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/__init__.py to /root/cms/projects/projects/__init__.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/context_processors.py to /root/cms/projects/projects/context_processors.py
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/urls.pyc to /root/cms/projects/projects/urls.pyc
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/context_processors.pyc to /root/cms/projects/projects/context_processors.pyc
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/views.pyc to /root/cms/projects/projects/views.pyc
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/models.pyc to /root/cms/projects/projects/models.pyc
Copying /root/cms/venv/lib/python2.7/site-packages/flask_xxl/templates/project/+project.name+/+project.name+/views.py to /root/cms/projects/projects/views.py
Generated file structure at /root/cms
(venv) root@kyle-vm 11:55 PM $ ~/cms tree projects/
projects/
├── app.py
├── context_processors.py
├── ext.py
├── imports.py
├── __init__.py
├── __init__.pyc
├── local_settings.py
├── manage.py
├── projects
│ ├── context_processors.py
│ ├── context_processors.pyc
│ ├── __init__.py
│ ├── models.py
│ ├── models.pyc
│ ├── urls.py
│ ├── urls.pyc
│ ├── views.py
│ └── views.pyc
├── settings.py
└── urls.py
1 directory, 19 files
it's work!
thanks.
no problem, happy to help. have fun.
➜ ox flaskxxl-manage.py start_project not testing, are you sure you want to continue... [n]: n ➜ ox flaskxxl-manage.py start_project not testing, are you sure you want to continue... [n]: y Configuration provided: [variables] from ~/.mrbob [variables] from --config file [defaults] from ~/.mrbob [defaults] from --config file [mr.bob] from ~/.mrbob [mr.bob] from --config file [mr.bob] from command line interface non_interactive = False quiet = False remember_answers = True verbose = True
usage: flaskxxl-manage.py [-h] [-O TARGET_DIRECTORY] [-v] [-c CONFIG] [-V] [-l] [-w] [-n] [-q] [template] flaskxxl-manage.py: error: ConfigurationError: Template directory does not exist: /Library/Python/2.7/site-packages/flask_xxl-0.4.5-py2.7.egg/flask_xxl/templates/project