Skip to content
项目

manjurulhoque/django-social-network

在 GitHub 查看

关于

基于 Django 的社交网络。

效率与自动化

这些数字如何统计

可以做什么

  • Login/Register as a user.
  • Create posts and comment on the particular post.
  • Receive notification when someone comment on your post.
  • Send friend request and accept request.

实测星标增长

24小时
-1
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Django Social Network

A Django 4.0 -based open source social network application.

Badges

MIT License GitHub issues Forks Starts Tweet

Features

  • Login/Register as a user.
  • Create posts and comment on the particular post.
  • Receive notification when someone comment on your post.
  • Send friend request and accept request.
  • Live chat with friends.

Installation

  1. Clone or download this repository and open it in your editor of choice:
git clone https://github.com/manjurulhoque/django-social-network.git
  1. cd into project repository.
 cd django-social-network
  1. To get this project up and running you should start by having Python installed on your computer. It's advised you create a virtual environment to store your projects dependencies separately. You can install virtualenv with
sudo apt install python3-venv
  1. Within the directory run the following command to create your new virtual environment:
python3 -m venv my-project-env

The command above creates a directory called my-project-env, which contains a copy of the Python binary, the Pip package manager, the standard Python library and other supporting files.

  1. To start using this virtual environment, you need to activate it by running the activate script:
source my-project-env/bin/activate.

Once activated, the virtual environment’s bin directory will be added at the beginning of the $PATH variable. Also your shell’s prompt will change and it will show the name of the virtual environment you’re currently using. In our case that is

(my-project-env) $

Now that the virtual environment is activated, we can start installing, upgrading, and removing packages using pip.

  1. The first step is to install the module,using the Python package manager, pip:
pip install -r requirements.txt

Modify django-social-network/setting.py with database settings if you want to connect database other than default sqlite db.

  1. Run the following commands in the root folder.
python manage.py makemigrations
python manage.py migrate
  1. Also create a superuser by :
python manage.py createsuperuser
  1. To get start runserver localy by:
python manage.py runserver

Open up a browser and visit: http://127.0.0.1:8000/ , then you will see the application.

Screenshots

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Support

Show your support by 🌟 the project!!

探索相关项目

加载中…