[wingide-users] 4.0.1-1 - Django beheavior

Wing IDE Support support at wingware.com
Mon Apr 4 08:18:45 MDT 2011


On 4/2/11 5:58 PM, Fabio Fornaro wrote:
> class Accountant(models.Model):
>      def __init__(self):
>          name = models.CharField(max_length=10)
>          surname = models.CharField(max_length=20)
>
> First Problem: I get no auto-completion for the models.CharField(...)
> parameters (ie. max_length, unique etc...) --- I tried also to force
> "site-packages\django" path in project's python path but with no luck.

Potential keyword arguments aren't included in the autocomplete lists 
right now.  We plan to add support for them soon.

> Second Problem: on issuing the "Django" -> "Generate SQL" command menu I
> only get:
>
> BEGIN;
> CREATE TABLE "ApplicationOne_Accountant" (
> "id" integer NOT NULL PRIMARY KEY
> )
> ;
> COMMIT;
>
> with  no "name" nor "surname" table columns definition. I tried both
> sqlite & mssql django backends with the same behavior.

I think this is more of a django question.  Do you get the same result 
if you run this outside of Wing?

Thanks,

John


More information about the wingide-users mailing list