Suraksha Sakhi is a project aimed at creating a safe and supportive environment for women. It provides a platform for women to connect with trusted individuals who can offer assistance and support in times of need.
To run Suraksha Sakhi on your localhost, follow these steps:
-
Fork this repository by clicking
fork
button in upper-right corner -
Clone the repository:
git clone https://github.com/your-username/SurakshaSakhi.git
- Navigate to the project directory:
cd SurakshaSakhi/mysite
- Install the dependencies:
pip install -r requirements.txt
- Create a superuser:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
- Open your web browser and visit
http://localhost:8000
to access Suraksha Sakhi.
To send mail through an SMTP server in your application, you need to follow these steps: 1.Create an app in your Gmail account:
- Go to your Google Account settings
- Click on "Security" in the left sidebar.
- Scroll down to the "Third-party apps with account access" section and click on "Manage third-party access".
- Click on "Add app" or "Manage apps"
- Search for "Suraksha Sakhi" or enter a custom name for your app
- Click on "Create" or "Next" to generate an app password.
- After creating the app, you will be provided with an app password
- Copy the generated app password as you will need it to authenticate your application
3.Configure your application to use the app password:
In the mail.py
file do necessary changes:
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your-app-password'
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Replace '[email protected]'
with your Gmail account email address and 'your-app-password'
with the app password you generated.
We welcome contributions from the community to make Suraksha Sakhi even better. To contribute, please follow these steps:
-
Fork the repository on GitHub.
-
Clone your forked repository:
git clone https://github.com/your-username/SurakshaSakhi.git
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Add your commit message here"
-
Push your changes to your forked repository:
git push origin feature/your-feature-name
-
Open a pull request on the original repository.
Please ensure that your contributions adhere to our code of conduct and contribution guidelines.
This project is licensed under the MIT License.