2.5 KiB
setting.py is in detective_book folder you can see the settings of this project
ira-lex Project Readme
Welcome to the documentation for the ira-lex Django project! This document serves as a guide to understanding the project's structure, functionality, and how to get it up and running on your local machine.
Table of Contents
Project Overview
[Project Name] is a Django-based web application designed to [briefly describe the project's main purpose and features].
Features
- admin panel and customer panel (this repo contains just customer repo)
Getting Started
Follow these instructions to set up and run the project on your local machine.
Prerequisites
- Python [version 3.10]
- [Database] (MongoDB, PostgreSQL, Redis)[you don't need setup database in you local system. the database is run from server]
- [python celery and another library in requirements.txt file]
Installation
-
Clone this repository to your local machine:
git clone [git@gitlab.com:yo3ef.amini/iralex-backend.git] cd [iralex-backend] -
Create a virtual environment:
virtualenv venv -p python3.10 -
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate -
On macOS and Linux:
source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
Configuration
-
Copy the
.env.examplefile to.env:cp .env.example .env -
Edit the
.envfile and set the necessary environment variables:SECRET_KEY: Django secret key for securityDEBUG: Set toTruefor development,Falsefor productionDATABASE_URL: URL to your database- [Other configuration variables]
Usage
-
Apply database migrations:
python manage.py migrate -
Create a superuser account:
python manage.py createsuperuser -
Start the development server:
python manage.py runserver -
Access the application in your web browser at
http://127.0.0.1:8000/.
Thank you for your interest in the [ira-lex] project. If you have any questions or need further assistance, please don't hesitate to [https://gitlab.com/ehsangheychisaz]. Happy coding!