Working.mp4
This is a Django project that utilizes the Django framework (v4.2.6) along with other dependencies such as django_environ
(v0.11.2), torch
(v2.1.0), and transformers
(v4.34.1).
Follow these steps to set up and run the project locally:
-
Clone the repository to your local machine:
git clone https://github.com/thisisankit27/TranslationGPT.git
-
Navigate to the repo directory:
cd TranslationGPT
-
Create a virtual environment (optional but recommended):
python -m venv venv
or
pip install virtualenvwrapper-win mkvirtualenv translationEnv
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
or
workon translationEnv
-
On macOS and Linux:
source venv/bin/activate
-
-
Install the project dependencies:
pip install -r requirements.txt
-
Navigate to the project directory:
cd project
-
Open IDE in the same environment:
code .
-
Set up your environment variables:
Create a
.env
file in the same directory assettings.py
and add the following:SECRET_KEY=<your_secret_key>
Replace
<your_secret_key>
with your custom secret key. -
Migrate the database:
python manage.py migrate
-
Run the development server:
python manage.py runserver
The project should now be accessible at
http://127.0.0.1:8000
.
- Make sure to keep your secret key confidential and do not share it publicly.
- For any issues or inquiries, feel free to contact us.
Happy coding!