ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Shabalin <a.shabalin@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Упаковка django приложений
Date: Thu, 10 May 2012 11:55:29 +0400
Message-ID: <CAEdvWkSHm6Gpnufe0Y6ZWmDZPU+QP67sYm2XhDG-dWhc7cpvpA@mail.gmail.com> (raw)
In-Reply-To: <4FAB4B0D.1020301@tangramltd.com>

10 мая 2012 г., 8:58 пользователь Dubrovskiy Viacheslav написал:
> Здравствуйте.
>
> Есть django приложение www.cdr-stats.org
> Дело в том, что это питоновские модули и естественно они должны
> располагаться в /usr/lib/python2.7/site-packages/. Но после установки
> нужно запустить серию команд:
>
>    python manage.py syncdb --noinput
>    python manage.py migrate
>    python manage.py createsuperuser
>    python manage.py collectstatic -l --noinput
>
> Которые прямо в этой директории создают базу, статические ссылки и т.д.
> Хочется чтобы модули были отдельно, а все данные и т.д. отдельно где-то
> в районе /var/lib или /var/www
> Подскажите, как правильно упаковывать django приложения?
> Это зависит от настроек самого приложения или может есть типичный пример?

День добрый.
При упаковке web-приложений, надо пользоваться web-полиси.
Не все web-приложения получается легко адаптировать к полиси.
Django приложения адаптировать очень проблематично.
Для примера, посмотрите на noc. Да, там есть проблемы, я о них знаю.
А серию команд, лучше запускать администратору самостоятельно. Просто
опишите это в README.ALT

-- 
Alexey Shabalin

      reply	other threads:[~2012-05-10  7:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10  4:58 Dubrovskiy Viacheslav
2012-05-10  7:55 ` Alexey Shabalin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEdvWkSHm6Gpnufe0Y6ZWmDZPU+QP67sYm2XhDG-dWhc7cpvpA@mail.gmail.com \
    --to=a.shabalin@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git