Соц сеть на питон

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Социальная сеть на Django

BU-Marina/Yatube

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Читайте также:  Css shadow effect images

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Социальная сеть для просмотра постов на Django.

Yatube — социальная сеть, в которой можно создать учетную запись, публиковать посты, подписываться на любимых авторов и комментировать их записи.

Python 3.7.9 Django==2.2.16 mixer==7.1.2 Pillow==8.3.1 pytest==6.2.4 pytest-django==4.4.0 pytest-pythonpath==0.7.3 requests==2.26.0 six==1.16.0 sorl-thumbnail==12.7.0 Faker==12.0.1 

Как запустить проект в dev-режиме:

Клонировать репозиторий и перейти в него в командной строке:

git clone https://github.com/Marina-ui/Yatube 

Cоздать и активировать виртуальное окружение:

Установить зависимости из файла requirements.txt:

python -m pip install --upgrade pip 
pip install -r requirements.txt 

Выполнить миграции из директории с файлом manage.py:

python manage.py runserver 

Запуск тестов из директории Yatube:

python manage.py loaddata dump.json 

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

naturalkind/social-network

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

social-network — очередная реализация социальной сети на python

При создании, учитывал возможность использовать в проектах с высокой нагрузкой.
Демонстрация http://сообщество.com/

  • Django 4.x — работа с БД
  • Channels 4.x — websocket
  • Channels-redis 4.x — django channels, используют Redis в качестве резервного хранилища
  • Daphne 4.x — ASGI сервер протоколов Django
  • Gunicorn — python WSGI HTTP сервер для UNIX
  • PostgreSQL — основное хранилище
  • Redis — дополнительное хранилище

установка нужных компонентов

sudo add-apt-repository ppa:redislabs/redis sudo apt-get update sudo apt-get install redis /etc/init.d/redis-server restart 

Виртуальная среда для работы с Django

python3.9 -m venv source /bin/activate 
pip install -r requirements.txt 

синхронизация с postgresql

./manage.py makemigrations ./manage.py migrate auth ./manage.py migrate --run-syncdb ./manage.py createsuperuser 
python manage.py runserver 192.168.1.50:8888 python manage.py runworker nnapp python manage.py index 

Иллюстрация к проекту

  • aioredis 2
  • выполнения ресурсоемких задач в очереди
  • улучшить страницу пользователя
  • инструменты для обучения ChatGPT
  • подключить natural-motion
  • инструменты генирации изображения
  • стартовая страница для незарегестрированных пользователей
  • исправить работу history state клиентской части
  • оптимизация для поисковых ботов
  • загрузка файлов
  • CKEditor 5
  • полнотекстовый поиск
  • уведомление личных сообщений
  • следить за активностью пользователя
  • ссылка на страницу пользователя по псевдониму с проверкой
  • редактировать изображение
  • шифрование данных
  • хранение переписки на устройствах пользователя
  • мультичат с настройками

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Social network builded with flask

petkoxray/flask_social_network

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Simple social network built with Flask

  • Authentication (regiser, login, reset password)
  • Users can create posts
  • Users can follow / unfollow other users and can see their posts on home page if followed
  • Users can edit their account info and use gravatar for avatar
  • Users can write private messages to other users and receive notifications if there is a new message
  • Simple search functionality for posts (using elasticsearch)
git clone https://github.com/petkoxray/flask_social_network cd flask_social_network python3 -m venv venv source venv/bin/activate pip install -r requirements.txt flask db upgrade set FLASK_APP=run.py flask run

You should configure your environment variables in config.py

Here you can see working demo deployed in Heroku — https://f-social-network.herokuapp.com/home

Example login: test@test.com password: 123

Источник

Оцените статью