Some questions from a beginner

Hello folks,

I just installed the RC of PyCharm and it looks very good. Just some questions:

  1. How can I get autocomplete for Django project? Also if I write something like models.Char I don't get any suggestions.
  2. How can I add a new application for a Django project?

Thx

Luca

4 comments

Hello Luca,

I just installed the RC of PyCharm and it looks very good. Just some

questions:

1. How can I get autocomplete for Django project? Also if I write

something like models.Char I don't get any suggestions.

Do you already have the 'from django.db import models' statement in your

class? If you don't, you need to use Ctrl-Alt-Space (class name completion)

to complete the identifiers you haven't imported yet.

2. How can I add a new application for a Django project?

We don't have any specific UI for that yet. You can use the "Run manage.py

task" action to run the startapp task.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

yole ha scritto:

Hello Luca,

I just installed the RC of PyCharm and it looks very good. Just some

questions:

1. How can I get autocomplete for Django project? Also if I write

something like models.Char I don't get any suggestions.

Do you already have the 'from django.db import models' statement in your

class? If you don't, you need to use Ctrl-Alt-Space (class name completion)

to complete the identifiers you haven't imported yet.


Hello Yole,

I am using GeoDjango and so the import is:

from django.contrib.gis.db import models

with the "standard" import all is fine.

Thx

Luca

0

Hello Luca,

I am using GeoDjango and so the import is:

from django.contrib.gis.db import models

with the "standard" import all is fine.

Which Django version are you using? Did you install GeoDjango separately,

or are you using the version inside the Django distribution?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

yole ha scritto:

Hello Luca,

I am using GeoDjango and so the import is:

from django.contrib.gis.db import models

with the "standard" import all is fine.

Which Django version are you using? Did you install GeoDjango separately,

or are you using the version inside the Django distribution?

Django 1.2.3 and GeoDjango from Django distribution.

Thx

Luca

0

Please sign in to leave a comment.