小编Oli*_*kin的帖子

使用openshift部署本地django应用程序

我用django构建了一个webapp.为了主持它,我正在尝试使用openshift,但是很难让任何工作.对此,似乎缺乏一步一步的措施.到目前为止,我有git工作正常,该应用程序适用于本地开发环境,我已成功在openshift上创建了一个应用程序.

在openshift创建URL后,我只需获得标准页面"欢迎使用您的Openshift应用程序".

我已经按照https://developers.openshift.com/en/python-getting-started.html#step1尝试更改wsgi.py文件.将其更改为hello world,推送它然后我仍然获得openshift默认页面.

是否有一个很好的综合资源可以让本地Django应用程序在Openshift上运行?我在谷歌上找到的大部分内容都只是示例应用程序,这些应用程序并不像我已经构建的那样有用.

python git django openshift

21
推荐指数
2
解决办法
1万
查看次数

Django 1.7 - 更新base_site.html无法正常工作

我正在关注django 1.7的教程(再次).我无法让管理网站更新.我跟着这个:

Django:覆盖base_site.html

这个:

自定义base_site.html无法在Django中工作

和一些异地的东西链接.

我的设置文件如下所示:

""" Django settings for website project.

For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """

# Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = ''

# SECURITY WARNING: don't run with debug …
Run Code Online (Sandbox Code Playgroud)

python django django-templates django-admin

13
推荐指数
1
解决办法
3659
查看次数

如果没有安装谷歌地球插件切换到谷歌地图

我正在使用ge插件制作一些谷歌地球网络应用程序.然而,并非每个人都安装它,但你还是无法获得移动设备的插件.我已经进行了js检查,看看用户是否有ge插件.我想做的是提供继续和下载插件或切换到页面的谷歌地图版本的选项.

关于如何最好地做到这一点的任何想法?

javascript google-maps google-earth google-earth-plugin dom-events

2
推荐指数
1
解决办法
690
查看次数