cost 359 ms
如何在具有 mysql 数据库和 costum 域的 windows 服务器 ec2 实例上运行 django 应用程序 - How to run django app on windows server ec2 instance with mysql database and costum domain

我已经将我的文件复制到服务器并在 53 号路由中设置了域并且现在还安装了 xampp 服务器当我尝试使用命令Python manage.py runserver 0.0.0.0:80启动服务器时它给了我以下错误Error: [WinError 10013] An attempt was made t ...

安装 django 主机后,带有 ajax 的 POST 请求不起作用 - POST request with ajax not working after installing django hosts

您好,我刚刚熟悉 django 主机,我正在尝试在我正在构建的电子商务网站上设置它。 所以基本上我会有主网站 - www.shop.com 我想要一个子域 - sell.shop.com - 卖家可以在其中注册和访问他们的仪表板。 以前我在www.shop.com/sell上设置了卖家网站,我认为这 ...

如何在开发中的 django 子域(使用 django-hosts)中正确提供媒体文件? - How to serve media files correctly in django subdomains (using django-hosts) in development?

赏金明天到期。 此问题的答案有资格获得+50声望赏金。 Rob想引起对这个问题的更多关注。 我有这个 model 博客,并在使用“django-hosts”创建的“博客”子域中使用它。 我在“hosts.py”中的子域: 和博客 model - 请注意,由 'sorl.thumbnail' 和 ...

使用 django-host 创建的子域未在生产中设置样式 - Subdomain created with django-host not styled on prodluction

我最近在 digitalocean 上部署了一个 django 项目。 这个项目有一些 django 应用程序并实现了 django-hosts 用于子域配置。 虽然这在本地运行良好,但在部署到 digitalocean 后导航到子域时找不到静态文件。 网站的所有其他部分的样式都正确。 问题: ...

有没有人成功地将 Reverse 与命名空间、rest_framework 和主机模式一起使用? - Has anyone successfully used Reverse with namespaces, rest_framework and host patterns?

几个月来,我一直在尝试解决/忽略这个问题,但我无法正确测试,也无法继续前进。 我试过使用命名空间和硬编码,但我仍然得到同样的错误。 'django.urls.exceptions.NoReverseMatch: 'users' 不是注册的命名空间' 如果您能看到我看不到的解决方案,请帮助我。 我 ...

django_hosts - NoReverseMatch:未找到“家”的反转。 “home”不是有效的视图函数或模式名称 - django_hosts - NoReverseMatch: Reverse for 'home' not found. 'home' is not a valid view function or pattern name

版本: 我已经按照本文档成功安装了 django_hosts。 我现在可以成功访问https://blog.mysite.com 之类的页面 然而,页面上的URL不正确地解析。 我遵循了django_hosts 官方文档中显示的示例。 这是我的设置的样子: 我的网站/urls.py ...

django-hosts - 如何管理子域中的无效 url.django.urls.exceptions.Resolver404? - django-hosts - How to manage invalid urls in a subdomain .django.urls.exceptions.Resolver404?

我已经在我的系统中实现了 django-hosts 库。 当我在我的域中访问无效的 URL 时,它将显示 404 页面并且一切正常。 但是当我在我的子域中访问无效的 URL 时,它会引发 500 错误不去或 404。 基础.py 主机.py api.urls.py 当我向http://api.m ...

如何使用 django-hosts 子域和 DRF 登录 API 级别 - How to log in on API-level with django-hosts subdomain and DRF

我正在使用django-rest-framework (DRF) 来拥有一个可浏览的 API,它应该在api子域下可用,例如api.localhost:8000 。 为了服务子域,我使用django-hosts 。 我无法在 API 级别(即在api子域下)实现登录和注销功能。 子域有效,但我无法 ...

Django2:如何与 localhost:8000 和子域 analysis.localhost:8000 共享“request.user”? - Django2: How to share 'request.user' with localhost:8000 and subdomain analysis.localhost:8000?

我正在使用 Django 构建一个博客,并且我已经实现了一个分析工具,它允许我 plot 关于我的访问者的详细信息(国家来源、设备、浏览器......)。 analysis.localhost:8000是localhost的子域,定义为基于 class 的视图,带有自定义 Mixin Super ...

如何将模板标签从普通django转换为一个django-hosts使用 - How to convert Template tags from normal django to the one django-hosts use

我刚刚将django-hosts添加到我的站点的设置子域中,该子域运行良好。 下一步就是将模板中的所有常规django URL都转换为一个django-hosts。 我知道如何链接页面,但是一旦我需要在URL中添加变量,我就不确定如何为其构建代码。 正常的Django URL有效 ...

django.core.exceptions.ImproperlyConfigured:无法加载 WSGI 应用程序“netfacer.wsgi.application”; 导入模块时出错 - django.core.exceptions.ImproperlyConfigured: WSGI application 'netfacer.wsgi.application' could not be loaded; Error importing module

我只是 django 的初学者。 我尝试按照此链接创建子域。 当我运行我的项目时,它显示以下错误 django.core.exceptions.ImproperlyConfigured:无法加载 WSGI 应用程序“netfacer.wsgi.application”; 导入模块时出错。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM