将本地Django网站导出为Open Shift

时间:2015-09-15 09:34:31

标签: django hosting web-hosting

最近我在Python上用本地服务器(MySQL)上的Django框架创建了一个网站。 (background information)现在我的网站已经完成了,(html,css和jQuery工作得很好)我想把它带到一个在线主机上从那里运行它,并最终在一些域名网站上获取网站。

我找到了Open Shift for Python和Django支持,我浏览了' Getting Started' -tutorial:安装客户端工具,克隆了git - 存储库,创建了一个应用程序带有盒式Python的Django,反之亦然,它的工作原理!或者至少在Finder中出现了一个名为Django的新文件夹(我相信这是我项目的名称)并且克隆了#39;我的本地框架的文件(__init__.pysettings.pyurls.pywsgi.py)。

现在我不知道如何将我的.css.html.js文件发送到网络托管服务商。我认为它们必须通过git - 命令在在线Django框架中导入?但如果是这样,static_files(仅.css.html.js)将如何相互关联?

本地项目目录结构:

PyhtonWeb/
+---wget-1.15
+---WebsiteName/
|   +----manage.py
|   +----JFP/    (local, website is inhere)
|        +----__init__.py and .pyc
|        +----settings.py and .pyc
|        +----urls.py and .pyc
|        +----wsgi.py and .pyc
|        +----blog/
|             +----__init__.py and .pyc
|             +----admin.py and .pyc
|             +----models.py and .pyc
|             +----tests.py
|             +----views.py and .pyc
|             +----migrations/
|                  +----__init__.py and .pyc
|                  +----0001_initial.py and .pyc
|             +----templates/
|                  +----Site.py
|                  +----staticfiles/
|                       +----main.css
|                       +----site.py
|                       +----apps.js
|                  +----static_root/
|                       +----main.css
|                       +----site.py
|                       +----apps.js
|                       +----admin/
|                            +----css/
|                            +----img/
|                            +----cs/
|   +----django/    (created on Open Shift) (git-repository)
|        +----requirements.txt
|        +----setup.py
|        +----wsgi.py
|        +----JFP/
|             +----manage.py
|             +----JFP/
|                  +----__init__.py
|                  +----settings.py
|                  +----urls.py
|                  +----wsgi.py

我很可能以错误的方式或背景使用某些术语,我只是一个初学者。 ;-)提前谢谢!

0 个答案:

没有答案
相关问题