Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:geany_and_django [2012/08/24 12:42] – Added tags file anonymouse | howtos:geany_and_django [2013/10/19 14:30] – Fix typo enrico | ||
---|---|---|---|
Line 29: | Line 29: | ||
can be found in detail in the [[http:// | can be found in detail in the [[http:// | ||
|Geany manual, section Configuration Files]]. | |Geany manual, section Configuration Files]]. | ||
+ | |||
+ | ==== Fine-tune styling ==== | ||
+ | |||
+ | You can adjust the styling to some extend using the following settings which should be placed in the [styling] section of filetypes.html: | ||
+ | |||
+ | * html_asp | ||
+ | * python_identifier | ||
+ | * python_default | ||
+ | |||
+ | |||
+ | Explanation: | ||
+ | |||
+ | <code html>{% load pages_tags i18n %}</ | ||
+ | |||
+ | '' | ||
+ | will be styled with // | ||
+ | // | ||
+ | |||
+ | For more information about configuring styles, please check the manual [[http:// | ||
Line 81: | Line 100: | ||
Tags for django (version 1.4.1) can be found [[http:// | Tags for django (version 1.4.1) can be found [[http:// | ||
- | {{tag> | + | ===== Live Preview in Geany ===== |
+ | |||
+ | Using the great //Web helper// plugin (from the [[http:// | ||
+ | you can view and test your site directly in Geany without switching to an external browser. | ||
+ | |||
+ | Simply enable the //Web helper// plugin in Geany' | ||
+ | and enable the option " | ||
+ | |||
+ | Then you will get a new tab "Web preview" | ||
+ | to show up) and you can enter any weg page address, e.g. those of your currently edited Django project. | ||
+ | Below is a screenshot demonstrating the plugin: the opened web page on the left, the template code on the right | ||
+ | and in the terminal window at the bottom, Django' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | This way you can edit your Django and template code in Geany as usual and have it automatically shown | ||
+ | as web page in the //Web helper// plugin without the need of switching to an external browser, and | ||
+ | the Django debug server can also be ran in Geany, using the embedded terminal. | ||
+ | |||
+ | |||
+ | ===== Twig/ | ||
+ | |||
+ | If you want to add detection/ | ||
+ | |||
+ | {{tag> |