小编pyt*_*ngo的帖子

Postgresql配置文件在哪里:Windows上的'postgresql.conf'?

我收到此消息但我找不到postgresql.conf文件:

OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "???" and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "???" and accepting
    TCP/IP connections on port 5432?
Run Code Online (Sandbox Code Playgroud)

postgresql

61
推荐指数
2
解决办法
8万
查看次数

“Account”对象没有属性“get_absolute_url”

当尝试访问我的 sitemap.xml 时,我收到此错误:

'Account' object has no attribute 'get_absolute_url' on line 112.

109.    def get_absolute_url(self):
110.        if self.group is None:
111.            return reverse('wiki_article', args=(self.title,))
112.        return self.group.get_absolute_url() + 'wiki/' + self.title
Run Code Online (Sandbox Code Playgroud)

我在回溯中找不到这个“帐户”对象。我在这里导入东西失败了吗?如果您需要更多信息,请告诉我。

sitemap django

4
推荐指数
1
解决办法
6546
查看次数

德尔福XE2.如何编译.exe?

我有我的Delphi程序编码并准备摇滚,但我找不到编译.exe的选项.

我确定这很明显,有什么帮助吗?

delphi delphi-xe2

0
推荐指数
1
解决办法
2789
查看次数

连接和递归

#Calculates to the index position of a fib number.
def f3(n):
    if n < 2:
        return n
    return f3(n-2) + f3(n-1)
Run Code Online (Sandbox Code Playgroud)

该函数只接受一个参数,但在返回中发送了两个参数,但是,它有效!这里发生了什么事?

如果我返回f3(n-3),则该函数会崩溃.串联有什么影响?

python recursion operators

-3
推荐指数
1
解决办法
729
查看次数