Quantcast
Channel: Zumbrennen Gyan
Viewing all articles
Browse latest Browse all 10

Getting new functionality in Google App Engine with Django

$
0
0

Q1.Getting new functionality in Google App Engine with Django

 

 

 

I am perplexing to get some HTML5 components into Django controlling a GAE. we conclude that it's not supported, though sites such as

http://forrst.com/posts/HTML5_Form_Widgets_in_Django-mTT

imply that we can do it a Django way. Which should somehow of removing towards this rather than controlling a unprotected HTML. However we can't seem to arrangement a right modules on loading with

from django.forms.widgets import Input

I get a following:

django undefined, Input capricious    <type 'exceptions.ImportError'>: No way named widgets        args =          summary = 'No way named widgets'     However is one does help      NAME      django.newforms.widgets - HTML Widget classes    FILE      /home/xxx/google_appengine/lib/django_0_96/django/newforms/widgets.py    CLASSES      __builtin__.object          Widget              CheckboxInput              MultiWidget                  SplitDateTimeWidget              Select                  NullBooleanSelect                  RadioSelect              SelectMultiple                  CheckboxSelectMultiple              Textarea      Input           FileInput          HiddenInput              MultipleHiddenInput          PasswordInput          TextInput

What am we doing wrong?

Thanks.

 

 

Answer:

 

 

 

You'll need to use a repremand chronicle of Django, mention controlling use_library , documented here: http://code.google.com/appengine/docs/python/tools/libraries.html

You many approaching wish to use 1.3

However, note that Django models don't work on App Engine. It looks like you're controlling forms, that should be ok on their own, though if you're controlling ModelForms, you'll have to use djangoforms.ModelForm instead, that work with a App Engine db models.

The other choice is to use Django-nonrel, that allows we to use Django models on App Engine, nonetheless there are some boundary to a functionality.

 

 

Q2.Editor that can autocomplete CSS/Javascript/Jquery?/HTML inside a PHP echo

 

 

 

So distant i attempted Aptana and CofeeCup an sure, they work glorious with autocompleting functions and maby even variables, havent attempted them so throughly, though what im about to news dont work…

Im now operative in NPP and iv incited on a non-static autocomplete though with that on i can have duty finish unless i press ctrl + spacebar. And i havent notised any CSS impression completion.

example:

<?php      $variable = "My text...";      relate '<html>        <-- Fixing tags for me.                  <head>                      <style>                          physique {                              padding: 0px;       <-- Autocomplete CSS inside a styletags within a                               relate and maby a popup with options like aptana.                      </style>                      <script type="text/javascript">                              warning ;       <-- Autocomplete Javascript inside a scripttag within                      </script>                   <-- a relate maby even jquery.                  </head>                  <body>'.$variable.'             <-- Autocomplete formerly used non-static names would be                       good here, .                      <div style="width:100%;height200px;" ></div>   <-- And maby even CSS                  </body>                         <-- Autocomplete on "style" atributes.          </html>';   ?>

 

 

Answer:

 

 

 

Take a feeling during phpstorm

 

 

 


Viewing all articles
Browse latest Browse all 10

Trending Articles