- How to run this project
- file structure
.
├── ft_transcendence.pdf
├── makefile
├── README.md
├── requirements.txt
└── User_manage
├── Auth
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── migrations
│ │ └── __init__.py
│ ├── models.py
│ ├── __pycache__
│ │ ├── __init__.cpython-310.pyc
│ │ ├── urls.cpython-310.pyc
│ │ └── views.cpython-310.pyc
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── db.sqlite3
├── manage.py
└── User_manage
├── asgi.py
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-310.pyc
│ ├── settings.cpython-310.pyc
│ ├── urls.cpython-310.pyc
│ └── wsgi.cpython-310.pyc
├── settings.py
├── urls.py
└── wsgi.py
- create virtial env:
python3 -m venv env
so you will got this:
$>ls env ft_transcendence.pdf makefile README.md requirements.txt User_manage
-
activate env:
source env/bin/activate
( rundeactivate
for deactivate env) -
install python module (used modules are listed in
requirements.txt
):
pip3 install -r requirements.txt
- create
.env
file with content:
SECRET_KEY = "xxxx"
UID = "xxxx"
CLIENT_SECRET = "xxxx"
REDIRECT_URI = "http://127.0.0.1:9000"
- of course `xxxx` is Secret, but you will know if you are colaborator
- run django server:
python3 User_manage/manage.py runserver 8000
so now, you server will available at 127.0.0.1:8000
for example: 127.0.0.1:8000/Auth
you will got: Hello, world. You're at the polls index.