3 <_name>Django Project</_name>
4 <_description>Python webproject using Django Web Framework</_description>
5 <icon>django-logo.png</icon>
6 <category>Python</category>
9 <page name="basic" _label="Django Project information" _description="General Project Information">
10 <property type="string" name="Name" _label="Project Name:" _description="project name" default="myweb" summary="yes" restriction="filename" mandatory="yes"/>
11 <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" summary="yes"/>
17 <directory source="python" destination="[+Destination+]">
18 <file destination='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta' source="project.anjuta"/>
23 <!-- It seems that Debian package uses django-admin instead of django-admin.py -->
24 <run command="sh -c "cd [+(raw-shell-str (get 'Destination))+] && if [ ""`which django-admin` != "" ]; then `which django-admin` startproject [+(string-substitute (string->c-name! (string-downcase (get 'Name))) (string #\sp) (string #\-))+]; else `which django-admin.py` startproject [+(string-substitute (string->c-name! (string-downcase (get 'Name))) (string #\sp) (string #\-))+]; fi;""/>
25 <open file='[+Destination+]/[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta'/>
26 <open file='[+Destination+]/[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]/settings.py'/>