启动geodjango
我对编程比较陌生,但对 python 和 Python 很熟悉。我掌握了 django 的基础知识。现在我正在努力学习geodjango。
我按照此处的说明成功完成了安装过程(在 Windows XP 上):
https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#windows
现在我想在这里浏览一下教程:
https://docs.djangoproject.com/en/dev/ref/contrib/ gis/tutorial/
,它告诉你要做的第一件事就是输入:
$ createdb -T template_postgis geodjango
Do I type this at the command line?如果我这样做,它会告诉我标准消息(不被识别为命令、批处理文件等...)我需要在路径设置中添加一些内容吗?
谢谢你!
I'm relatively new to programming but am solid on python & have the basics of django under my belt. Now I'm trying to learn geodjango.
I went through the install process (on Windows XP) successfully following the instructions here:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#windows
Now I want to go through the tutorial here:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/
and the first thing it tells you to do is type:
$ createdb -T template_postgis geodjango
Do I type this at the command line? If I do that it tells me the standard message (not recognized as command, batch file etc...) Do I need to put something in my path settings?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不想自己尝试在 Windows 上安装 geodjango(Linux/Mac 开发更为常见,您将能够找到更多答案),但是是的:您必须
在命令行中输入。 createdb 命令是 PostgreSQL 安装的一部分。我假设如果你正确安装了 Postgres 数据库,Windows 会将可执行文件的目录放在 PATH 上。
I wouldn't want to try installing geodjango on windows myself (Linux/Mac development is way more common, and you'll be able to find a lot more answers), but yes: you have to type
at the commandline. The createdb command is part of the PostgreSQL installation. I assume that if you installed the Postgres database correctly, Windows will put the directories with executable on the PATH.