Flask Documentation (1.1.x)
Application Setup Define and Access the Database Blueprints and Views Templates Static Files Blog Blueprint Make the Project Installable Test Coverage Deploy to Production Keep Developing! Templates Jinja Setup aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those decisions that it does make, such as what templating engine to use, are easy to change ensures approved extensions do not break with future releases. As your codebase grows, you are free to make the design decisions appropriate for your project. Flask will continue to provide a very simple glue0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those decisions that it does make, such as what templating engine to use, are easy to change ensures approved extensions do not break with future releases. As your codebase grows, you are free to make the design decisions appropriate for your project. Flask will continue to provide a very simple glue message we want to display in the user’s browser. Just save it as hello.py or something similar. Make sure to not call your application flask.py because this would conflict with Flask itself. To run0 码力 | 291 页 | 1.25 MB | 1 年前3django cms 3.3.x Documentation
flag; note that this may overwrite existing files. Windows users may need to do a little extra to make sure Python files are associated correctly if that doesn’t work right away: assoc .py=Python.file Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise the look of urlpatterns in the project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls'))0 码力 | 386 页 | 1.56 MB | 1 年前3django cms 3.10.x Documentation
Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise the look of project, but not into django CMS itself. The two applications are completely independent. They cannot make use of each other’s data or functionality. Let’s create the new Polls/CMS Integration application html template we created) which might not be correct for a different project. Also, we’d have to make sure that polls_cms_integration came before polls in INSTALLED_APPS, otherwise the templates in p0 码力 | 296 页 | 1.79 MB | 1 年前3PyArmor Documentation v8.5.10
projects/ └── src/ └── mypkg/ ├── __init__.py ├── utils.py └── config.json First make output path projects/dist6 for obfuscated package: $ cd projects $ mkdir dist6 Then copy package Python interpreter: $ python tool.py 1.2.9. Clean uninstallation Run the following commands to make a clean uninstallation: $ pip uninstall pyarmor $ pip uninstall pyarmor.cli.core $ pip uninstall prevents obfuscated modules from being replaced with plain script. It checks each import statement to make sure the modules are obfuscated. Using --restrict makes sure the obfuscated module is only available0 码力 | 193 页 | 154.05 KB | 1 年前3django cms 3.5.x Documentation
activate the virtualenv you’ll need: env\Scripts\activate Update pip pip is the Python installer. Make sure yours is up-to-date, as earlier versions can be less reliable: pip install --upgrade pip Use flag; note that this may overwrite existing files. Windows users may need to do a little extra to make sure Python files are associated correctly if that doesn’t work right away: assoc .py=Python.file Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise the look of0 码力 | 403 页 | 1.69 MB | 1 年前3django cms 3.7.x Documentation
env\Scripts\activate 1.2.2. Update pip inside the virtual environment pip is the Python installer. Make sure yours is up-to-date, as earlier versions can be less reliable: pip install --upgrade pip 1 flag; note that this may overwrite existing files. Windows users may need to do a little extra to make sure Python files are associated correctly if that doesn’t work right away: assoc .py=Python.file Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. 2.1. Templates You can use HTML templates to customise the look0 码力 | 409 页 | 1.67 MB | 1 年前3Django CMS 3.9.x Documentation
env\Scripts\activate 1.2.2. Update pip inside the virtual environment pip is the Python installer. Make sure yours is up-to-date, as earlier versions can be less reliable: pip install --upgrade pip 1.2 flag; note that this may overwrite existing files. Windows users may need to do a little extra to make sure Python files are associated correctly if that doesn’t work right away: assoc .py=Python.file Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. 2.1. Templates You can use HTML templates to customise the look0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.9.x Documentation
venv env env\Scripts\activate Update pip inside the virtual environment pip is the Python installer. Make sure yours is up-to-date, as earlier versions can be less reliable: pip install --upgrade pip Use flag; note that this may overwrite existing files. Windows users may need to do a little extra to make sure Python files are associated correctly if that doesn’t work right away: assoc .py=Python.file Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise the look of your0 码力 | 298 页 | 1.79 MB | 6 月前3Django CMS 3.11.10 Documentation
style [https://github.com/django-cms/djangocms- admin-style]. This provides some styling that helps make django CMS administration components easier to work with. Technically it’s an optional component and Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates Templates in django CMS work just like templates in django project, but not into django CMS itself. The two applications are completely independent. They cannot make use of each other’s data or functionality. Let’s create the new Polls/CMS Integration application0 码力 | 493 页 | 1.44 MB | 6 月前0.03
共 529 条
- 1
- 2
- 3
- 4
- 5
- 6
- 53