• Объясните, как работают сессии в django?

    @DaniPy Автор вопроса
    Попробую перефразировать первый вопрос, потому что со вторым разобрался уже, а второй важнее:)
    У нас есть user, мы логинимся, в промеж. слое делается хеш и записывается куда-то в приложуху sessions, ставится кука с хешом, дальше идет валидация. Как все эти хеши удалить, закончить все сеансы?
  • Проблема с проверкой изменения полей в Django. В чем проблема?

    @DaniPy Автор вопроса
    Pavel Denisov: почему это важно? Но окей, я редактнул тот gist
  • Как работает django с разными архитектурами серверов?

    @DaniPy Автор вопроса
    sim3x: разве это не затратит много памяти? И как расчитать среднее количество, когда еще сайт не запущен?
  • Как работает django с разными архитектурами серверов?

    @DaniPy Автор вопроса
    И большой ли профит, когда 4 процесса могут загрузить всё, а остальные 500 человек будут только начинать грузить стартовую страничку какую-нибудь?
  • Как работает django с разными архитектурами серверов?

    @DaniPy Автор вопроса
    А если делать чат, то как быть?
  • Как прописать PATH к postgres?

    @DaniPy Автор вопроса
    strelmax: find / -name 'pg_config'
    find: ‘/proc/vz/vzaquota’: Permission denied
    find: ‘/proc/1/task/1/fd’: Permission denied
    find: ‘/proc/1/task/1/fdinfo’: Permission denied
    find: ‘/proc/1/task/1/ns’: Permission denied
    find: ‘/proc/1/fd’: Permission denied
    find: ‘/proc/1/fdinfo’: Permission denied
    find: ‘/proc/1/ns’: Permission denied
    find: ‘/proc/2/task/2/fd’: Permission denied
    find: ‘/proc/2/task/2/fdinfo’: Permission denied
    find: ‘/proc/2/task/2/ns’: Permission denied
    find: ‘/proc/2/fd’: Permission denied
    find: ‘/proc/2/fdinfo’: Permission denied
    find: ‘/proc/2/ns’: Permission denied
    find: ‘/proc/3/task/3/fd’: Permission denied
    find: ‘/proc/3/task/3/fdinfo’: Permission denied
    find: ‘/proc/3/task/3/ns’: Permission denied
    find: ‘/proc/3/fd’: Permission denied
    find: ‘/proc/3/fdinfo’: Permission denied
    find: ‘/proc/3/ns’: Permission denied
    find: ‘/proc/75/task/75/fd’: Permission denied
    find: ‘/proc/75/task/75/fdinfo’: Permission denied
    find: ‘/proc/75/task/75/ns’: Permission denied
    find: ‘/proc/75/fd’: Permission denied
    find: ‘/proc/75/fdinfo’: Permission denied
    find: ‘/proc/75/ns’: Permission denied
    find: ‘/proc/93/task/93/fd’: Permission denied
    find: ‘/proc/93/task/93/fdinfo’: Permission denied
    find: ‘/proc/93/task/93/ns’: Permission denied
    find: ‘/proc/93/fd’: Permission denied
    find: ‘/proc/93/fdinfo’: Permission denied
    find: ‘/proc/93/ns’: Permission denied
    find: ‘/proc/151/task/151/fd’: Permission denied
    find: ‘/proc/151/task/151/fdinfo’: Permission denied
    find: ‘/proc/151/task/151/ns’: Permission denied
    find: ‘/proc/151/task/170/fd’: Permission denied
    find: ‘/proc/151/task/170/fdinfo’: Permission denied
    find: ‘/proc/151/task/170/ns’: Permission denied
    find: ‘/proc/151/task/171/fd’: Permission denied
    find: ‘/proc/151/task/171/fdinfo’: Permission denied
    find: ‘/proc/151/task/171/ns’: Permission denied
    find: ‘/proc/151/fd’: Permission denied
    find: ‘/proc/151/fdinfo’: Permission denied
    find: ‘/proc/151/ns’: Permission denied
    find: ‘/proc/160/task/160/fd’: Permission denied
    find: ‘/proc/160/task/160/fdinfo’: Permission denied
    find: ‘/proc/160/task/160/ns’: Permission denied
    find: ‘/proc/160/fd’: Permission denied
    find: ‘/proc/160/fdinfo’: Permission denied
    find: ‘/proc/160/ns’: Permission denied
    find: ‘/proc/161/task/161/fd’: Permission denied
    find: ‘/proc/161/task/161/fdinfo’: Permission denied
    find: ‘/proc/161/task/161/ns’: Permission denied
    find: ‘/proc/161/fd’: Permission denied
    find: ‘/proc/161/fdinfo’: Permission denied
    find: ‘/proc/161/ns’: Permission denied
    find: ‘/proc/162/task/162/fd’: Permission denied
    find: ‘/proc/162/task/162/fdinfo’: Permission denied
    find: ‘/proc/162/task/162/ns’: Permission denied
    find: ‘/proc/162/fd’: Permission denied
    find: ‘/proc/162/fdinfo’: Permission denied
    find: ‘/proc/162/ns’: Permission denied
    find: ‘/proc/164/task/164/fd’: Permission denied
    find: ‘/proc/164/task/164/fdinfo’: Permission denied
    find: ‘/proc/164/task/164/ns’: Permission denied
    find: ‘/proc/164/fd’: Permission denied
    find: ‘/proc/164/fdinfo’: Permission denied
    find: ‘/proc/164/ns’: Permission denied
    find: ‘/proc/165/task/165/fd’: Permission denied
    find: ‘/proc/165/task/165/fdinfo’: Permission denied
    find: ‘/proc/165/task/165/ns’: Permission denied
    find: ‘/proc/165/fd’: Permission denied
    find: ‘/proc/165/fdinfo’: Permission denied
    find: ‘/proc/165/ns’: Permission denied
    find: ‘/proc/166/task/166/fd’: Permission denied
    find: ‘/proc/166/task/166/fdinfo’: Permission denied
    find: ‘/proc/166/task/166/ns’: Permission denied
    find: ‘/proc/166/fd’: Permission denied
    find: ‘/proc/166/fdinfo’: Permission denied
    find: ‘/proc/166/ns’: Permission denied
    find: ‘/proc/190/task/190/fd’: Permission denied
    find: ‘/proc/190/task/190/fdinfo’: Permission denied
    find: ‘/proc/190/task/190/ns’: Permission denied
    find: ‘/proc/190/fd’: Permission denied
    find: ‘/proc/190/fdinfo’: Permission denied
    find: ‘/proc/190/ns’: Permission denied
    find: ‘/proc/413/task/413/fd’: Permission denied
    find: ‘/proc/413/task/413/fdinfo’: Permission denied
    find: ‘/proc/413/task/413/ns’: Permission denied
    find: ‘/proc/413/fd’: Permission denied
    find: ‘/proc/413/fdinfo’: Permission denied
    find: ‘/proc/413/ns’: Permission denied
    find: ‘/proc/431/task/431/fd’: Permission denied
    find: ‘/proc/431/task/431/fdinfo’: Permission denied
    find: ‘/proc/431/task/431/ns’: Permission denied
    find: ‘/proc/431/fd’: Permission denied
    find: ‘/proc/431/fdinfo’: Permission denied
    find: ‘/proc/431/ns’: Permission denied
    find: ‘/proc/834/task/834/fd’: Permission denied
    find: ‘/proc/834/task/834/fdinfo’: Permission denied
    find: ‘/proc/834/task/834/ns’: Permission denied
    find: ‘/proc/834/fd’: Permission denied
    find: ‘/proc/834/fdinfo’: Permission denied
    find: ‘/proc/834/ns’: Permission denied
    find: ‘/proc/838/task/838/fd’: Permission denied
    find: ‘/proc/838/task/838/fdinfo’: Permission denied
    find: ‘/proc/838/task/838/ns’: Permission denied
    find: ‘/proc/838/task/877/fd’: Permission denied
    find: ‘/proc/838/task/877/fdinfo’: Permission denied
    find: ‘/proc/838/task/877/ns’: Permission denied
    find: ‘/proc/838/task/878/fd’: Permission denied
    find: ‘/proc/838/task/878/fdinfo’: Permission denied
    find: ‘/proc/838/task/878/ns’: Permission denied
    find: ‘/proc/838/task/879/fd’: Permission denied
    find: ‘/proc/838/task/879/fdinfo’: Permission denied
    find: ‘/proc/838/task/879/ns’: Permission denied
    find: ‘/proc/838/task/880/fd’: Permission denied
    find: ‘/proc/838/task/880/fdinfo’: Permission denied
    find: ‘/proc/838/task/880/ns’: Permission denied
    find: ‘/proc/838/task/881/fd’: Permission denied
    find: ‘/proc/838/task/881/fdinfo’: Permission denied
    find: ‘/proc/838/task/881/ns’: Permission denied
    find: ‘/proc/838/task/882/fd’: Permission denied
    find: ‘/proc/838/task/882/fdinfo’: Permission denied
    find: ‘/proc/838/task/882/ns’: Permission denied
    find: ‘/proc/838/task/883/fd’: Permission denied
    find: ‘/proc/838/task/883/fdinfo’: Permission denied
    find: ‘/proc/838/task/883/ns’: Permission denied
    find: ‘/proc/838/task/884/fd’: Permission denied
    find: ‘/proc/838/task/884/fdinfo’: Permission denied
    find: ‘/proc/838/task/884/ns’: Permission denied
    find: ‘/proc/838/task/885/fd’: Permission denied
    find: ‘/proc/838/task/885/fdinfo’: Permission denied
    find: ‘/proc/838/task/885/ns’: Permission denied
    find: ‘/proc/838/task/886/fd’: Permission denied
    find: ‘/proc/838/task/886/fdinfo’: Permission denied
    find: ‘/proc/838/task/886/ns’: Permission denied
    find: ‘/proc/838/task/887/fd’: Permission denied
    find: ‘/proc/838/task/887/fdinfo’: Permission denied
    find: ‘/proc/838/task/887/ns’: Permission denied
    find: ‘/proc/838/task/888/fd’: Permission denied
    find: ‘/proc/838/task/888/fdinfo’: Permission denied
    find: ‘/proc/838/task/888/ns’: Permission denied
    find: ‘/proc/838/fd’: Permission denied
    find: ‘/proc/838/fdinfo’: Permission denied
    find: ‘/proc/838/ns’: Permission denied
    find: ‘/proc/839/task/839/fd’: Permission denied
    find: ‘/proc/839/task/839/fdinfo’: Permission denied
    find: ‘/proc/839/task/839/ns’: Permission denied
    find: ‘/proc/839/task/889/fd’: Permission denied
    find: ‘/proc/839/task/889/fdinfo’: Permission denied
    find: ‘/proc/839/task/889/ns’: Permission denied
    find: ‘/proc/839/task/890/fd’: Permission denied
    find: ‘/proc/839/task/890/fdinfo’: Permission denied
    find: ‘/proc/839/task/890/ns’: Permission denied
    find: ‘/proc/839/task/891/fd’: Permission denied
    find: ‘/proc/839/task/891/fdinfo’: Permission denied
    find: ‘/proc/839/task/891/ns’: Permission denied
    find: ‘/proc/839/task/892/fd’: Permission denied
    find: ‘/proc/839/task/892/fdinfo’: Permission denied
    find: ‘/proc/839/task/892/ns’: Permission denied
    find: ‘/proc/839/task/893/fd’: Permission denied
    find: ‘/proc/839/task/893/fdinfo’: Permission denied
    find: ‘/proc/839/task/893/ns’: Permission denied
    find: ‘/proc/839/task/894/fd’: Permission denied
    find: ‘/proc/839/task/894/fdinfo’: Permission denied
    find: ‘/proc/839/task/894/ns’: Permission denied
    find: ‘/proc/839/task/895/fd’: Permission denied
    find: ‘/proc/839/task/895/fdinfo’: Permission denied
    find: ‘/proc/839/task/895/ns’: Permission denied
    find: ‘/proc/839/task/896/fd’: Permission denied
    find: ‘/proc/839/task/896/fdinfo’: Permission denied
    find: ‘/proc/839/task/896/ns’: Permission denied
    find: ‘/proc/839/task/897/fd’: Permission denied
    find: ‘/proc/839/task/897/fdinfo’: Permission denied
    find: ‘/proc/839/task/897/ns’: Permission denied
    find: ‘/proc/839/task/898/fd’: Permission denied
    find: ‘/proc/839/task/898/fdinfo’: Permission denied
    find: ‘/proc/839/task/898/ns’: Permission denied
    find: ‘/proc/839/task/899/fd’: Permission denied
    find: ‘/proc/839/task/899/fdinfo’: Permission denied
    find: ‘/proc/839/task/899/ns’: Permission denied
    find: ‘/proc/839/task/900/fd’: Permission denied
    find: ‘/proc/839/task/900/fdinfo’: Permission denied
    find: ‘/proc/839/task/900/ns’: Permission denied
    find: ‘/proc/839/fd’: Permission denied
    find: ‘/proc/839/fdinfo’: Permission denied
    find: ‘/proc/839/ns’: Permission denied
    find: ‘/proc/868/task/868/fd’: Permission denied
    find: ‘/proc/868/task/868/fdinfo’: Permission denied
    find: ‘/proc/868/task/868/ns’: Permission denied
    find: ‘/proc/868/fd’: Permission denied
    find: ‘/proc/868/fdinfo’: Permission denied
    find: ‘/proc/868/ns’: Permission denied
    find: ‘/proc/870/task/870/fd’: Permission denied
    find: ‘/proc/870/task/870/fdinfo’: Permission denied
    find: ‘/proc/870/task/870/ns’: Permission denied
    find: ‘/proc/870/fd’: Permission denied
    find: ‘/proc/870/fdinfo’: Permission denied
    find: ‘/proc/870/ns’: Permission denied
    find: ‘/proc/926/task/926/fd’: Permission denied
    find: ‘/proc/926/task/926/fdinfo’: Permission denied
    find: ‘/proc/926/task/926/ns’: Permission denied
    find: ‘/proc/926/fd’: Permission denied
    find: ‘/proc/926/fdinfo’: Permission denied
    find: ‘/proc/926/ns’: Permission denied
    find: ‘/proc/928/task/928/fd’: Permission denied
    find: ‘/proc/928/task/928/fdinfo’: Permission denied
    find: ‘/proc/928/task/928/ns’: Permission denied
    find: ‘/proc/928/fd’: Permission denied
    find: ‘/proc/928/fdinfo’: Permission denied
    find: ‘/proc/928/ns’: Permission denied
    find: ‘/etc/pki/rsyslog’: Permission denied
    find: ‘/etc/pki/CA/private’: Permission denied
    find: ‘/etc/sudoers.d’: Permission denied
    find: ‘/run/svnserve’: Permission denied
    find: ‘/run/user/0’: Permission denied
    find: ‘/run/httpd’: Permission denied
    find: ‘/run/log/journal/869d0ce114dd4010b68fbd8a7524d919’: Permission denied
    find: ‘/run/systemd/inaccessible’: Permission denied
    find: ‘/var/spool/clientmqueue’: Permission denied
    find: ‘/var/spool/mqueue’: Permission denied
    find: ‘/var/log/httpd’: Permission denied
    find: ‘/var/db/sudo’: Permission denied
    find: ‘/var/empty/sshd’: Permission denied
    find: ‘/var/tmp/yum-root-8NJ7Ho’: Permission denied
    find: ‘/var/lib/rsyslog’: Permission denied
    find: ‘/var/lib/dav’: Permission denied
    find: ‘/var/lib/machines’: Permission denied
    find: ‘/var/lib/authconfig’: Permission denied
    find: ‘/var/lib/yum/history/2016-07-21/2’: Permission denied
    find: ‘/var/lib/yum/history/2016-07-21/1’: Permission denied
    find: ‘/var/lib/tpm’: Permission denied
    find: ‘/var/cache/httpd’: Permission denied
    find: ‘/var/cache/ldconfig’: Permission denied
    /usr/pgsql-9.5/bin/pg_config
    find: ‘/usr/lib/jelastic’: Permission denied
    find: ‘/root’: Permission denied
    find: ‘/lost+found’: Permission denied
    find: ‘/.cpt_hardlink_dir_a920e4ddc233afddc9fb53d26c392319’: Permission denied
  • Как прописать PATH к postgres?

    @DaniPy Автор вопроса
    which pg_config
    /usr/bin/which: no pg_config in (/usr/lib/postgresql/X.Y/bin/:/opt/repo/myenv/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/repo/versions/2.4/bin:/Applications/Postgres.app/Contents/Versions/9.5/bin/)
  • Объясните как настроить статику Django?

    @DaniPy Автор вопроса
    Также интересно про MEDIA_ROOT и URL. Из документации:
    " FileField.upload_to
    Изменено в Django 1.7:

    upload_to был обязателен в предыдущих версиях Django.

    Путь в файловой системе относительно значения настройки MEDIA_ROOT для определения url."
    Для чего здесь MEDIA_URL тогда нужен?
  • Объясните как настроить статику Django?

    @DaniPy Автор вопроса
    Roman Kitaev: выборка в html шаблоне файла стилей
  • Объясните как настроить статику Django?

    @DaniPy Автор вопроса
    Roman Kitaev: разве за выборку статики не static dirs отвечает?
  • Объясните как настроить статику Django?

    @DaniPy Автор вопроса
    Roman Kitaev: что делать static_url? static root указывает путь к выборке для nginx и указывает, где все файлы, static dirs указывает относительно каких директорий искать и откуда кидать файлы в рут.
  • Объясните как настроить статику Django?

    @DaniPy Автор вопроса
    Файл будет грузиться из /static/ или из /app/static/ ?
  • Ошибка в админке Django. В чем проблема?

    @DaniPy Автор вопроса
    FireGM: я пересоздал бд, и теперь такая ошибка:
    RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
    Но makemigrate отлично создает файл миграции.
  • Не находит django-admin шаблоны. В чем проблема?

    @DaniPy Автор вопроса
    А разве шаблоны админки у меня в приложении валяются?
  • Не находит django-admin шаблоны. В чем проблема?

    @DaniPy Автор вопроса
    sim3x: а разве шаблоны админки у меня в приложении валяются?