Fully functional Django App that looks ecxatly like real Twitter.
- Python
- Django
- SQL
- JavaScript
- Jquery
- Ajax
- CSS
- Bootstrap
- Enter the directory where the script is located then type the following to the console
$ git clone https://github.com/sherif-abdallah/social-club social-club
- Install Python 3.8 venv, pip and compiler
$ sudo apt-get install python3.8 python3.8-venv python3-venv
- Create a virtual environment to install dependencies in and activate it:
$ python3.8 -m venv venv
$ source venv/bin/activate
- Then install the dependencies:
(venv)$ cd social-club
(venv)$ python -m pip install --upgrade pip
(venv)$ python -m pip install -r requirements.txt
Note the (venv)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by virtualenv
.
Once pip
has finished downloading the dependencies:
Go the .env
file and Change DEBUG = True
PRODUCTION = False
- then you will have to migrate the db
(venv)$ python manage.py migrate --run-syncdb
- Collect all the static files your are using in all the apps even the third party apps you installed by pip
(venv)$ python manage.py collectstatic
- Finally run The Server
(venv)$ python manage.py runserver
- And navigate to
http://127.0.0.1:8000
.